Re: [PATCH] D18478: python bindings: expose the clang version string

2016-05-11 Thread John Törnblom via cfe-commits
john.tornblom added a comment. Any suggestions on how to test this? Just check for non-empty string? http://reviews.llvm.org/D18478 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Re: r269270 - [VFS] Reapply r269100: Reconstruct the VFS overlay tree for more accurate lookup

2016-05-11 Thread Bruno Cardoso Lopes via cfe-commits
Thanks, Reverted r269276 On Wed, May 11, 2016 at 9:38 PM, NAKAMURA Takumi wrote: > Bruno, it still fails. See; > http://lab.llvm.org:8011/builders/clang-x64-ninja-win7/builds/12119 > http://bb.pgr.jp/builders/ninja-clang-i686-msc19-R/builds/2847 > > On Thu, May 12, 2016 at 12:29 PM Bruno Cardoso

r269276 - Revert "[VFS] Reapply r269100: Reconstruct the VFS overlay tree for more accurate lookup"

2016-05-11 Thread Bruno Cardoso Lopes via cfe-commits
Author: bruno Date: Wed May 11 23:43:27 2016 New Revision: 269276 URL: http://llvm.org/viewvc/llvm-project?rev=269276&view=rev Log: Revert "[VFS] Reapply r269100: Reconstruct the VFS overlay tree for more accurate lookup" Reverts r269270, buildbots still failing: http://lab.llvm.org:8011/builder

Re: r269270 - [VFS] Reapply r269100: Reconstruct the VFS overlay tree for more accurate lookup

2016-05-11 Thread NAKAMURA Takumi via cfe-commits
Bruno, it still fails. See; http://lab.llvm.org:8011/builders/clang-x64-ninja-win7/builds/12119 http://bb.pgr.jp/builders/ninja-clang-i686-msc19-R/builds/2847 On Thu, May 12, 2016 at 12:29 PM Bruno Cardoso Lopes via cfe-commits < cfe-commits@lists.llvm.org> wrote: > Author: bruno > Date: Wed May

[clang-tools-extra] r269275 - [clang-tidy] Improve misc-redundant-expression and decrease false-positive

2016-05-11 Thread Etienne Bergeron via cfe-commits
Author: etienneb Date: Wed May 11 23:32:47 2016 New Revision: 269275 URL: http://llvm.org/viewvc/llvm-project?rev=269275&view=rev Log: [clang-tidy] Improve misc-redundant-expression and decrease false-positive Summary: This patch is adding support for conditional expression and overloaded operat

r269274 - Add an AST matcher for string-literal length

2016-05-11 Thread Etienne Bergeron via cfe-commits
Author: etienneb Date: Wed May 11 23:20:04 2016 New Revision: 269274 URL: http://llvm.org/viewvc/llvm-project?rev=269274&view=rev Log: Add an AST matcher for string-literal length Summary: This patch is adding support for a matcher to check string literal length. This matcher is used in clang-ti

r269271 - [MS ABI] Don't crash when zero-initializing a vbase which contains a vbase

2016-05-11 Thread David Majnemer via cfe-commits
Author: majnemer Date: Wed May 11 22:51:52 2016 New Revision: 269271 URL: http://llvm.org/viewvc/llvm-project?rev=269271&view=rev Log: [MS ABI] Don't crash when zero-initializing a vbase which contains a vbase Bases can be zero-initialized: the storage is zero-initialized before the base construc

r269270 - [VFS] Reapply r269100: Reconstruct the VFS overlay tree for more accurate lookup

2016-05-11 Thread Bruno Cardoso Lopes via cfe-commits
Author: bruno Date: Wed May 11 22:23:36 2016 New Revision: 269270 URL: http://llvm.org/viewvc/llvm-project?rev=269270&view=rev Log: [VFS] Reapply r269100: Reconstruct the VFS overlay tree for more accurate lookup The way we currently build the internal VFS overlay representation leads to ineffici

Re: r269100 - [VFS] Reconstruct the VFS overlay tree for more accurate lookup

2016-05-11 Thread Bruno Cardoso Lopes via cfe-commits
> What are the platform-specifics for crash reproducing? Shouldn't it > basically be saving some files and storing some data for reconstructing? Feature-wise the crash reproducer for modules could "just" work for windows, there should not be anything platform-specific, I never tested it on windows

Re: r268721 - [OPENMP 4.0] Codegen for 'declare simd' directive.

2016-05-11 Thread Alexey Bataev via cfe-commits
Yes, mangled names for vector versions are added as attributes to the original function. Best regards, Alexey Bataev = Software Engineer Intel Compiler Team 12.05.2016 6:00, Hal Finkel пишет: > Hi Alexey, > > As I recall, Xinmin's RFC discussed encoding the various possible manglings

Re: r268721 - [OPENMP 4.0] Codegen for 'declare simd' directive.

2016-05-11 Thread Hal Finkel via cfe-commits
Hi Alexey, As I recall, Xinmin's RFC discussed encoding the various possible manglings for vector functions in some attribute. Is that what this does? It is difficult to tell from the test case what's actually happing here. -Hal - Original Message - > From: "Alexey Bataev" > To: "Hal

Re: r268721 - [OPENMP 4.0] Codegen for 'declare simd' directive.

2016-05-11 Thread Alexey Bataev via cfe-commits
Hal, According to Xinmin's RFC the codegen for 'declare simd' in clang includes only generation of special (Vector ABI) mangled names for future vectorized versions of elemental functions. Actual vector versions must be generated by a backend. Xinmin and his team are working on this. The mang

[PATCH] D20194: [ModuleMap][CrashReproducer] Collect headers from inner frameworks

2016-05-11 Thread Bruno Cardoso Lopes via cfe-commits
bruno created this revision. bruno added a reviewer: benlangmuir. bruno added a subscriber: cfe-commits. (1) Collect headers under inner frameworks (frameworks inside other other frameworks). (2) Make sure we also collect the right header files inside them. More info on (2): Consider a dummy fra

Re: r269100 - [VFS] Reconstruct the VFS overlay tree for more accurate lookup

2016-05-11 Thread Sean Silva via cfe-commits
On Wed, May 11, 2016 at 10:46 AM, Bruno Cardoso Lopes < bruno.card...@gmail.com> wrote: > > I'm glad to help, but it makes me uneasy to have somebody working on a > > filesystem abstraction that does not have ready access to test and debug > > their changes across the major host platforms that LLV

[PATCH] D20192: [Sema] Fix bug to do with lookup of template friend function in namespace

2016-05-11 Thread Erik Pilkington via cfe-commits
erik.pilkington created this revision. erik.pilkington added a reviewer: rsmith. erik.pilkington added a subscriber: cfe-commits. Clang erroneously rejects the following code because it does not find the default argument for `makeType` : ``` namespace n { template struct Type { template

r269257 - [tooling] Remove redundant inline keyword

2016-05-11 Thread Etienne Bergeron via cfe-commits
Author: etienneb Date: Wed May 11 19:22:28 2016 New Revision: 269257 URL: http://llvm.org/viewvc/llvm-project?rev=269257&view=rev Log: [tooling] Remove redundant inline keyword Summary: The inline keywords are redundant. Introduce by this commit to try to fix broken build bots: http://reviews.l

Re: [PATCH] D18575: [clang-tidy] New checker to replace deprecated throw() specifications

2016-05-11 Thread don hinton via cfe-commits
hintonda added inline comments. Comment at: clang-tidy/modernize/UseNoexceptCheck.cpp:36 @@ +35,3 @@ + +bool UseNoexceptCheck::helper(const MatchFinder::MatchResult &Result, + const SourceRange &Range, alexfh wrote: > The name "helper"

Re: [PATCH] D20180: [tooling] Fix missing inline keyworkd, breaking build bot.

2016-05-11 Thread Etienne Bergeron via cfe-commits
etienneb added a comment. In http://reviews.llvm.org/D20180#427893, @rnk wrote: > In http://reviews.llvm.org/D20180#427840, @alexfh wrote: > > > `inline` seems to be completely redundant here. Can you try removing it and > > running whatever build configurations were failing without > > http://

Re: [PATCH] D20189: [tooling] Remove redundant inline keyword

2016-05-11 Thread Alexander Kornienko via cfe-commits
alexfh accepted this revision. alexfh added a comment. This revision is now accepted and ready to land. LG http://reviews.llvm.org/D20189 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-comm

Re: [PATCH] D18575: [clang-tidy] New checker to replace deprecated throw() specifications

2016-05-11 Thread Alexander Kornienko via cfe-commits
alexfh requested changes to this revision. This revision now requires changes to proceed. Comment at: clang-tidy/modernize/UseNoexceptCheck.cpp:36 @@ +35,3 @@ + +bool UseNoexceptCheck::helper(const MatchFinder::MatchResult &Result, + const SourceRange

[libcxxabi] r269255 - libc++abi: make __cxa_call_unexpected visible

2016-05-11 Thread Saleem Abdulrasool via cfe-commits
Author: compnerd Date: Wed May 11 18:56:37 2016 New Revision: 269255 URL: http://llvm.org/viewvc/llvm-project?rev=269255&view=rev Log: libc++abi: make __cxa_call_unexpected visible This may be invoked by the compiler, and needs to be made available so that the users can reference it. Modified:

[PATCH] D20189: [tooling] Remove redundant inline keyword

2016-05-11 Thread Etienne Bergeron via cfe-commits
etienneb created this revision. etienneb added a reviewer: alexfh. etienneb added a subscriber: cfe-commits. Herald added a subscriber: klimek. The inline keywords are redundant. Introduce by this commit to try to fix broken build bots: http://reviews.llvm.org/D20180 Tested on Debug and Release

Re: [PATCH] D20180: [tooling] Fix missing inline keyworkd, breaking build bot.

2016-05-11 Thread Reid Kleckner via cfe-commits
rnk added a comment. In http://reviews.llvm.org/D20180#427840, @alexfh wrote: > `inline` seems to be completely redundant here. Can you try removing it and > running whatever build configurations were failing without > http://reviews.llvm.org/D20182? My bad, it's explicit function template sp

Re: [PATCH] D18575: [clang-tidy] New checker to replace deprecated throw() specifications

2016-05-11 Thread don hinton via cfe-commits
hintonda updated this revision to Diff 56984. hintonda added a comment. Created helper function and moved most logic there. Also address a few comments. http://reviews.llvm.org/D18575 Files: clang-tidy/modernize/CMakeLists.txt clang-tidy/modernize/ModernizeTidyModule.cpp clang-tidy/moder

Re: [PATCH] D20180: [tooling] Fix missing inline keyworkd, breaking build bot.

2016-05-11 Thread Etienne Bergeron via cfe-commits
etienneb added a comment. I'm sure you're right: they are redundant keywords. I'm preparing the revert patch, and I'm running tests over multiple build types. Repository: rL LLVM http://reviews.llvm.org/D20180 ___ cfe-commits mailing list cfe-com

Re: [PATCH] D20180: [tooling] Fix missing inline keyworkd, breaking build bot.

2016-05-11 Thread Alexander Kornienko via cfe-commits
alexfh added a subscriber: alexfh. alexfh added a comment. `inline` seems to be completely redundant here. Can you try removing it and running whatever build configurations were failing without http://reviews.llvm.org/D20182? Repository: rL LLVM http://reviews.llvm.org/D20180 ___

Re: [PATCH] D20182: [clang-tidy] Add missing dependency of libtooling to misc module

2016-05-11 Thread Alexander Kornienko via cfe-commits
alexfh added a comment. LG. Thanks for fixing. Repository: rL LLVM http://reviews.llvm.org/D20182 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Re: [PATCH] D18424: [Clang] Fix Clang-tidy modernize-deprecated-headers warnings; other minor fixes

2016-05-11 Thread Eugene Zelenko via cfe-commits
Eugene.Zelenko updated this revision to Diff 56959. Eugene.Zelenko added a comment. Herald added subscribers: dschuff, jfb. Updated from trunk. More Include What You Use warnings fixes. Repository: rL LLVM http://reviews.llvm.org/D18424 Files: include/clang-c/Index.h include/clang/Analys

r269242 - Fixed msvc warnings

2016-05-11 Thread Simon Pilgrim via cfe-commits
Author: rksimon Date: Wed May 11 16:55:37 2016 New Revision: 269242 URL: http://llvm.org/viewvc/llvm-project?rev=269242&view=rev Log: Fixed msvc warnings Modified: cfe/trunk/lib/CodeGen/BackendUtil.cpp Modified: cfe/trunk/lib/CodeGen/BackendUtil.cpp URL: http://llvm.org/viewvc/llvm-project/

Re: Patch submission for bug 27400

2016-05-11 Thread Vedant Kumar via cfe-commits
Hi, Thanks for the patch! This patch is missing a small, lit-style test case. You can find examples of test cases here: extra/test/clang-tidy/ Apart from that, my only other nit-pick is that llvm uses 2-space indents, and spaces between "if" and "(". If you reply to this list with an updat

Re: [PATCH] D20182: [clang-tidy] Add missing dependency of libtooling to misc module

2016-05-11 Thread Etienne Bergeron via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL269240: [clang-tidy] Add missing dependency of libtooling to misc module (authored by etienneb). Changed prior to commit: http://reviews.llvm.org/D20182?vs=56963&id=56966#toc Repository: rL LLVM htt

[clang-tools-extra] r269240 - [clang-tidy] Add missing dependency of libtooling to misc module

2016-05-11 Thread Etienne Bergeron via cfe-commits
Author: etienneb Date: Wed May 11 16:32:29 2016 New Revision: 269240 URL: http://llvm.org/viewvc/llvm-project?rev=269240&view=rev Log: [clang-tidy] Add missing dependency of libtooling to misc module Summary: The new API for fixit is in libtooling and the library misc in clang-tidy didn't had the

Re: [PATCH] D20132: [libclang] Add clang_getAllSkippedRanges function

2016-05-11 Thread Cameron via cfe-commits
cameron314 updated this revision to Diff 56964. cameron314 added a comment. Here's a test! http://reviews.llvm.org/D20132 Files: include/clang-c/Index.h tools/libclang/CIndex.cpp unittests/libclang/LibclangTest.cpp Index: unittests/libclang/LibclangTest.cpp ==

Re: [PATCH] D20136: Get default -fms-compatibility-version from cl.exe's version

2016-05-11 Thread Nico Weber via cfe-commits
thakis added a comment. Ok, that seems fine then. Thanks much for checking! http://reviews.llvm.org/D20136 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[PATCH] D20182: [clang-tidy] Add missing dependency of libtooling to misc module

2016-05-11 Thread Etienne Bergeron via cfe-commits
etienneb created this revision. etienneb added reviewers: alexfh, rnk. etienneb added a subscriber: cfe-commits. The new API for fixit is in libtooling and the library misc in clang-tidy didn't had the appropriate dependency. This commit was breaking some build bots: http://reviews.llvm.org/D1954

Re: [PATCH] D20131: Fixed crash during code completion in file included within declaration

2016-05-11 Thread Cameron via cfe-commits
cameron314 added inline comments. Comment at: lib/Lex/PPLexerChange.cpp:380-383 @@ -379,4 +379,6 @@ CurLexer->FormTokenWithChars(Result, CurLexer->BufferEnd, tok::eof); CurLexer.reset(); +if (CurLexerKind == CLK_Lexer) + CurLexerKind = CLK_Cachin

Re: [PATCH] D20131: Fixed crash during code completion in file included within declaration

2016-05-11 Thread Cameron via cfe-commits
cameron314 updated this revision to Diff 56961. cameron314 added a comment. Ah, perfect, thanks. Behold, a test that fails without the patch and passes with it :-) http://reviews.llvm.org/D20131 Files: lib/Lex/PPLexerChange.cpp test/CodeCompletion/include-within-declaration.c Index: test/C

Re: [PATCH] D20136: Get default -fms-compatibility-version from cl.exe's version

2016-05-11 Thread Adrian McCarthy via cfe-commits
amccarth added inline comments. Comment at: lib/Driver/MSVCToolChain.cpp:478 @@ +477,3 @@ + + const DWORD VersionSize = ::GetFileVersionInfoSizeW(ClExeWide.c_str(), + nullptr); amccarth wrote: > thakis wrote: >

Re: [PATCH] D20131: Fixed crash during code completion in file included within declaration

2016-05-11 Thread Richard Smith via cfe-commits
rsmith added a comment. In http://reviews.llvm.org/D20131#427717, @cameron314 wrote: > I have no way to distinguish between a crash and the normal errors (with > hidden completions). Is there any other way to test this? If you use `// RUN: not %clang_cc1 -code-completion-at=[...]`, the test sh

r269234 - [VFS][Unittests] Make dir iteration tests depend only on content

2016-05-11 Thread Bruno Cardoso Lopes via cfe-commits
Author: bruno Date: Wed May 11 15:58:47 2016 New Revision: 269234 URL: http://llvm.org/viewvc/llvm-project?rev=269234&view=rev Log: [VFS][Unittests] Make dir iteration tests depend only on content Do not rely on any specific order while comparing the results of directory iteration. Modified:

Re: [PATCH] D20131: Fixed crash during code completion in file included within declaration

2016-05-11 Thread Cameron via cfe-commits
cameron314 added a comment. I fixed this last July so the details are a little hazy, but fortunately it turns out I documented what I had found: > It seems when clang parses an enum declaration, it first parses the > declaration specifiers, then stops if a semicolon is present. > The trouble

r269231 - Preserve the FoundDecl when performing overload resolution for constructors.

2016-05-11 Thread Richard Smith via cfe-commits
Author: rsmith Date: Wed May 11 15:37:46 2016 New Revision: 269231 URL: http://llvm.org/viewvc/llvm-project?rev=269231&view=rev Log: Preserve the FoundDecl when performing overload resolution for constructors. This is in preparation for C++ P0136R1, which switches the model for inheriting construc

[clang-tools-extra] r269229 - [Clang-tidy] modernize-use-bool-literals: documentation style.

2016-05-11 Thread Eugene Zelenko via cfe-commits
Author: eugenezelenko Date: Wed May 11 15:31:50 2016 New Revision: 269229 URL: http://llvm.org/viewvc/llvm-project?rev=269229&view=rev Log: [Clang-tidy] modernize-use-bool-literals: documentation style. Fix readability-redundant-control-flow warnings in regression test. Modified: clang-tools

r269227 - [analyzer] Fix crash in ObjCGenericsChecker

2016-05-11 Thread Devin Coughlin via cfe-commits
Author: dcoughlin Date: Wed May 11 15:28:41 2016 New Revision: 269227 URL: http://llvm.org/viewvc/llvm-project?rev=269227&view=rev Log: [analyzer] Fix crash in ObjCGenericsChecker Fix a crash in the generics checker where DynamicTypePropagation tries to get the superclass of a root class. This i

Re: r269224 - [tooling] Fix missing inline keyworkd, breaking build bot.

2016-05-11 Thread Richard Smith via cfe-commits
On Wed, May 11, 2016 at 1:09 PM, Etienne Bergeron via cfe-commits < cfe-commits@lists.llvm.org> wrote: > Author: etienneb > Date: Wed May 11 15:09:17 2016 > New Revision: 269224 > > URL: http://llvm.org/viewvc/llvm-project?rev=269224&view=rev > Log: > [tooling] Fix missing inline keyworkd, breakin

Re: [PATCH] D20180: [tooling] Fix missing inline keyworkd, breaking build bot.

2016-05-11 Thread Etienne Bergeron via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL269224: [tooling] Fix missing inline keyworkd, breaking build bot. (authored by etienneb). Changed prior to commit: http://reviews.llvm.org/D20180?vs=56949&id=56954#toc Repository: rL LLVM http://re

r269224 - [tooling] Fix missing inline keyworkd, breaking build bot.

2016-05-11 Thread Etienne Bergeron via cfe-commits
Author: etienneb Date: Wed May 11 15:09:17 2016 New Revision: 269224 URL: http://llvm.org/viewvc/llvm-project?rev=269224&view=rev Log: [tooling] Fix missing inline keyworkd, breaking build bot. Summary: The missing keyword "inline" is causing some buildbot to fail. The symbol is not available. s

[libcxx][RFC] Make (w)cin/(w)cout/(w)cerr works under Windows

2016-05-11 Thread Yi-Hong Lyu via cfe-commits
Hello all, According to that Windows mangler takes data type into account. Reference of std::cin would be translated into ?cin@__1@std@@3V?$basic_istream@DU ?$char_traits@D@__1@std@@@12@A (class std::__1::basic_istream > std::__1::cin). Definition of std::cin, in contrast, would be translated into

Re: [PATCH] D20053: [clang-tidy] Add misc-unnecessary-mutable check.

2016-05-11 Thread Aaron Ballman via cfe-commits
aaron.ballman added a subscriber: aaron.ballman. aaron.ballman added a comment. One quick thought: we should probably have a test that includes a macro to make sure nothing explodes. e.g., #define FIELD(T, N) mutable T N class C { FIELD(int, RemoveMutable); FIELD(int, KeepMutable)

Re: [PATCH] D20052: Add new ASTMatcher that matches dynamic exception specifications.

2016-05-11 Thread don hinton via cfe-commits
hintonda added a comment. Great, thanks. Btw, I don't have commit access, so could you land it for me? http://reviews.llvm.org/D20052 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Re: [PATCH] D20052: Add new ASTMatcher that matches dynamic exception specifications.

2016-05-11 Thread Aaron Ballman via cfe-commits
On Wed, May 11, 2016 at 3:58 PM, don hinton wrote: > hintonda added a comment. > > Great, thanks. Btw, I don't have commit access, so could you land it for me? Normally, yes, but I'm traveling this week and don't have a computer that has the source code on it right now. If someone other than me

Re: [PATCH] D19876: Add an AST matcher for string-literal length

2016-05-11 Thread Aaron Ballman via cfe-commits
aaron.ballman accepted this revision. aaron.ballman added a comment. This revision is now accepted and ready to land. LGTM, thank you for this! http://reviews.llvm.org/D19876 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.

Re: [PATCH] D20052: Add new ASTMatcher that matches dynamic exception specifications.

2016-05-11 Thread Aaron Ballman via cfe-commits
aaron.ballman accepted this revision. aaron.ballman added a comment. This revision is now accepted and ready to land. LGTM! Comment at: include/clang/ASTMatchers/ASTMatchers.h:3229 @@ +3228,3 @@ +/// matches the declarations of j, k, and l, but not f, g, h, or i. +AST_MATCHER(

Re: [PATCH] D20180: [tooling] Fix missing inline keyworkd, breaking build bot.

2016-05-11 Thread Reid Kleckner via cfe-commits
rnk accepted this revision. rnk added a comment. This revision is now accepted and ready to land. lgtm I don't see how this could be causing the problem, but it's worth a try. They should be marked inline anyway. http://reviews.llvm.org/D20180 ___

Re: [PATCH] D19780: Output OpenCL version in Clang diagnostics

2016-05-11 Thread Vedran Miletić via cfe-commits
rivanvx added a comment. Could we solve that at a later point? There is one more place where such code is already used, but this would enlarge the scope of this patch. If yes, I am wiling to factor it out after this is merged. http://reviews.llvm.org/D19780 _

[PATCH] D20180: [tooling] Fix missing inline keyworkd, breaking build bot.

2016-05-11 Thread Etienne Bergeron via cfe-commits
etienneb created this revision. etienneb added a reviewer: rnk. etienneb added a subscriber: cfe-commits. Herald added a subscriber: klimek. The missing keyword "inline" is causing some buildbot to fail. The symbol is not available. see: http://lab.llvm.org:8011/builders/clang-ppc64be-linux-mult

Re: [PATCH] D20113: Fix mangled name of method with ns_consumed parameters.

2016-05-11 Thread John McCall via cfe-commits
rjmccall added a comment. In http://reviews.llvm.org/D20113#426884, @sdefresne wrote: > In http://reviews.llvm.org/D20113#425984, @rjmccall wrote: > > > This is a good catch, thanks! > > > Thank you for the quick reply. > > Please excuse me if I misunderstood you or if my remark appear off the ma

Re: [PATCH] D19932: [OpenCL] Add to_{global|local|private} builtin functions.

2016-05-11 Thread Anastasia Stulova via cfe-commits
Anastasia added inline comments. Comment at: test/SemaOpenCL/to_addr_builtin.cl:26 @@ +25,3 @@ +#if __OPENCL_C_VERSION__ < CL_VERSION_2_0 + // expected-error@-2{{'to_global' needs OpenCL version 2.0 or above}} +#else @Xiuli, I think Sam is right. Passing constant

Re: [PATCH] D19780: Output OpenCL version in Clang diagnostics

2016-05-11 Thread Anastasia Stulova via cfe-commits
Anastasia added a comment. Sure! Will do! Thanks! I am thinking to factor out the version computation string into a common function, because we might use it in the other places too. http://reviews.llvm.org/D19780 ___ cfe-commits mailing list cfe-c

Re: [PATCH] D20103: PR27132: Proper mangling for __unaligned qualifier (now with both PR27367 and PR27666 fixed)

2016-05-11 Thread Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL269220: [MSVC] Implementation of __unaligned as a proper type qualifier (authored by asbokhan). Changed prior to commit: http://reviews.llvm.org/D20103?vs=56874&id=56945#toc Repository: rL LLVM http

r269220 - [MSVC] Implementation of __unaligned as a proper type qualifier

2016-05-11 Thread Andrey Bokhanko via cfe-commits
Author: asbokhan Date: Wed May 11 13:38:21 2016 New Revision: 269220 URL: http://llvm.org/viewvc/llvm-project?rev=269220&view=rev Log: [MSVC] Implementation of __unaligned as a proper type qualifier This patch implements __unaligned (MS extension) as a proper type qualifier (before that, it was i

Re: [PATCH] D20052: Add new ASTMatcher that matches dynamic exception specifications.

2016-05-11 Thread don hinton via cfe-commits
hintonda added inline comments. Comment at: include/clang/ASTMatchers/ASTMatchers.h:3229 @@ +3228,3 @@ +/// matches the declarations of j, k, and l, but not f, g, h, or i. +AST_MATCHER(FunctionDecl, hasDynamicExceptionSpec) { + if (const auto *FnTy = Node.getType()->getAs()) --

Re: [PATCH] D19876: Add an AST matcher for string-literal length

2016-05-11 Thread Etienne Bergeron via cfe-commits
etienneb updated this revision to Diff 56942. etienneb added a comment. re-generating doc http://reviews.llvm.org/D19876 Files: docs/LibASTMatchersReference.html include/clang/ASTMatchers/ASTMatchers.h include/clang/ASTMatchers/ASTMatchersInternal.h unittests/ASTMatchers/ASTMatchersTest

Re: [PATCH] D20010: [clang-tidy] UnnecessaryCopyInitialization - Extend to trigger on non-const "this" object argument if it is not modified

2016-05-11 Thread Alexander Kornienko via cfe-commits
alexfh requested changes to this revision. alexfh added a comment. This revision now requires changes to proceed. How many more (in relative numbers) results does this check generate now? Comment at: clang-tidy/performance/UnnecessaryCopyInitialization.cpp:45 @@ -44,7 +44,3 @@

r269214 - Relax -Wcalling-convention-cast when casting to the default convention (cdecl)

2016-05-11 Thread Reid Kleckner via cfe-commits
Author: rnk Date: Wed May 11 12:43:13 2016 New Revision: 269214 URL: http://llvm.org/viewvc/llvm-project?rev=269214&view=rev Log: Relax -Wcalling-convention-cast when casting to the default convention (cdecl) Modified: cfe/trunk/lib/Sema/SemaCast.cpp cfe/trunk/test/Sema/callingconv-cast.c

Re: [PATCH] D20053: [clang-tidy] Add misc-unnecessary-mutable check.

2016-05-11 Thread Alexander Kornienko via cfe-commits
alexfh added a subscriber: alexfh. Comment at: docs/clang-tidy/checks/misc-unnecessary-mutable.rst:9 @@ +8,3 @@ + +.. code-block:: c++ + class SomeClass { Please verify the documentation can be built without errors. On Ubuntu this boils down to: Install sphinx:

Re: r269100 - [VFS] Reconstruct the VFS overlay tree for more accurate lookup

2016-05-11 Thread Bruno Cardoso Lopes via cfe-commits
> I'm glad to help, but it makes me uneasy to have somebody working on a > filesystem abstraction that does not have ready access to test and debug > their changes across the major host platforms that LLVM supports (linux, > mac, windows). Is there any way you can get access? I don't think that > w

Re: r268721 - [OPENMP 4.0] Codegen for 'declare simd' directive.

2016-05-11 Thread Hal Finkel via cfe-commits
Hi Alexey, I'm a bit confused regarding what this patch does, in part because the test case does not test any of the function argument or return types. Does it generate these "simd" functions taking scalar arguments? I'd expect that what this does is that it generates functions taking vector ar

[clang-tools-extra] r269210 - [clang-tidy] Refactoring of FixHintUtils

2016-05-11 Thread Etienne Bergeron via cfe-commits
Author: etienneb Date: Wed May 11 12:38:22 2016 New Revision: 269210 URL: http://llvm.org/viewvc/llvm-project?rev=269210&view=rev Log: [clang-tidy] Refactoring of FixHintUtils Summary: Refactor some checkers to use the tooling re-writing API. see: http://reviews.llvm.org/D19941 Reviewers: klimek

[clang-tools-extra] r269208 - [clang-tidy] Add FixIt for swapping arguments in string-constructor-checker.

2016-05-11 Thread Etienne Bergeron via cfe-commits
Author: etienneb Date: Wed May 11 12:32:12 2016 New Revision: 269208 URL: http://llvm.org/viewvc/llvm-project?rev=269208&view=rev Log: [clang-tidy] Add FixIt for swapping arguments in string-constructor-checker. Summary: Arguments can be swapped using fixit when they are not in macros. This is th

Re: [PATCH] D19865: [clang-tidy] - PerformanceUnnecesaryCopyInitialization - only trigger for decl stmts with single VarDecl.

2016-05-11 Thread Alexander Kornienko via cfe-commits
alexfh accepted this revision. alexfh added a comment. This revision is now accepted and ready to land. LG. http://reviews.llvm.org/D19865 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-com

Re: [PATCH] D16962: clang-tidy: avoid std::bind

2016-05-11 Thread Alexander Kornienko via cfe-commits
alexfh requested changes to this revision. This revision now requires changes to proceed. Comment at: clang-tidy/modernize/AvoidBindCheck.cpp:27 @@ +26,3 @@ + StringRef Tokens; + BindArgumentKind Kind = BK_Other; + size_t PlaceHolderIndex = 0; I wonder whether

Re: [PATCH] D19703: [clang-tidy] Improve misc-redundant-expression and decrease false-positive

2016-05-11 Thread Etienne Bergeron via cfe-commits
etienneb added a comment. + Removed copy of a vector to a set + Fixed some minor coding-style issues Comment at: clang-tidy/misc/RedundantExpressionCheck.cpp:140 @@ +139,3 @@ + const LangOptions &LO = Finder->getASTContext().getLangOpts(); + std::set Names(NameRefs.begin(), Na

Patch submission for bug 27400

2016-05-11 Thread Mads Ravn via cfe-commits
Hi, I would like to submit a patch for https://llvm.org/bugs/show_bug.cgi?id=27400 . Beside attaching the patch, is there anything I should be aware of? I have not submitted a patch before. You can find the patch attached to this mail. Kind regards, Mads Ravn Index: clang-tidy/misc/MacroParenth

Re: [PATCH] D19703: [clang-tidy] Improve misc-redundant-expression and decrease false-positive

2016-05-11 Thread Etienne Bergeron via cfe-commits
etienneb updated this revision to Diff 56937. etienneb added a comment. fix naming nits http://reviews.llvm.org/D19703 Files: clang-tidy/misc/RedundantExpressionCheck.cpp docs/clang-tidy/checks/misc-redundant-expression.rst test/clang-tidy/misc-redundant-expression.cpp Index: test/clang-

Re: [PATCH] D19703: [clang-tidy] Improve misc-redundant-expression and decrease false-positive

2016-05-11 Thread Etienne Bergeron via cfe-commits
etienneb updated this revision to Diff 56935. etienneb marked an inline comment as done. etienneb added a comment. remove useless set creation http://reviews.llvm.org/D19703 Files: clang-tidy/misc/RedundantExpressionCheck.cpp docs/clang-tidy/checks/misc-redundant-expression.rst test/clang

Re: [PATCH] D19547: [clang-tidy] Add FixIt for swapping arguments in string-constructor-checker.

2016-05-11 Thread Alexander Kornienko via cfe-commits
alexfh accepted this revision. alexfh added a comment. This revision is now accepted and ready to land. LG. http://reviews.llvm.org/D19547 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-com

Re: [PATCH] D19703: [clang-tidy] Improve misc-redundant-expression and decrease false-positive

2016-05-11 Thread Etienne Bergeron via cfe-commits
etienneb added a comment. > We should add a hasAnyOverloadedOperatorName matcher at some point. I proposed it to sbenza@ and he told me that the reason he did HasAnyName was for speed issue. I can't tell if that one has speed issue too. But, otherwise, I agree... for code readability... we s

Re: [PATCH] D18575: [clang-tidy] New checker to replace deprecated throw() specifications

2016-05-11 Thread Alexander Kornienko via cfe-commits
alexfh requested changes to this revision. This revision now requires changes to proceed. Comment at: clang-tidy/modernize/UseNoexceptCheck.cpp:39 @@ +38,3 @@ + + const FunctionDecl *FuncDecl = + Result.Nodes.getNodeAs("functionDecl"); s/FunctionDecl/auto/

Re: [PATCH] D19274: Compilation for Intel MCU (Part 2/3)

2016-05-11 Thread Bruno Cardoso Lopes via cfe-commits
bruno added a comment. Hi, Comment at: include/clang/Basic/DiagnosticDriverKinds.td:154 @@ -153,1 +153,3 @@ +def err_drv_cxx_not_supported : Error< + "C++ is not supported for target '%0'">; Are you sure there's no equivalente for this already? I'm surprised!

Re: [PATCH] D20170: [clang-tidy] TypeTraits - Type is not expensive to copy when it has a deleted copy constructor.

2016-05-11 Thread Alexander Kornienko via cfe-commits
alexfh added inline comments. Comment at: clang-tidy/utils/TypeTraits.cpp:20 @@ -18,1 +19,3 @@ +using namespace ::clang::ast_matchers; + aaron.ballman wrote: > I would prefer this be used locally instead of at namespace scope to avoid > potential name collision

Re: r269116 - Add -Wcast-calling-convention to warn when casting away calling conventions

2016-05-11 Thread Reid Kleckner via cfe-commits
On Tue, May 10, 2016 at 5:55 PM, Hans Wennborg wrote: >> This warning is currently off by default while we study its usefulness. > > Turns out this wasn't true :-) For example, it's firing here: > https://build.chromium.org/p/chromium.fyi/builders/ClangToTWin%28dbg%29/builds/5569/steps/compile/log

Re: [PATCH] D19804: Make clang-format cleaner remove redundant commas in list and redundant colon in constructor initializer.

2016-05-11 Thread Eric Liu via cfe-commits
ioeric added a comment. PING http://reviews.llvm.org/D19804 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

r269202 - Embed bitcode in object file (clang cc1 part)

2016-05-11 Thread Steven Wu via cfe-commits
Author: steven_wu Date: Wed May 11 11:26:03 2016 New Revision: 269202 URL: http://llvm.org/viewvc/llvm-project?rev=269202&view=rev Log: Embed bitcode in object file (clang cc1 part) Summary: Teach clang to embed bitcode inside bitcode. When -fembed-bitcode cc1 option is used, clang will embed bot

Re: [PATCH] D17392: Embed bitcode in object file (clang cc1 part)

2016-05-11 Thread Steven Wu via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL269202: Embed bitcode in object file (clang cc1 part) (authored by steven_wu). Changed prior to commit: http://reviews.llvm.org/D17392?vs=56371&id=56930#toc Repository: rL LLVM http://reviews.llvm.o

Re: [PATCH] D19703: [clang-tidy] Improve misc-redundant-expression and decrease false-positive

2016-05-11 Thread Alexander Kornienko via cfe-commits
alexfh accepted this revision. alexfh added a comment. This revision is now accepted and ready to land. LG. Comment at: clang-tidy/misc/RedundantExpressionCheck.cpp:140 @@ +139,3 @@ + const LangOptions &LO = Finder->getASTContext().getLangOpts(); + std::set Names(NameRefs.begi

Re: [PATCH] D16797: Update clang support on recent Haiku

2016-05-11 Thread Reid Kleckner via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL269201: Update clang support on recent Haiku (authored by rnk). Changed prior to commit: http://reviews.llvm.org/D16797?vs=53464&id=56929#toc Repository: rL LLVM http://reviews.llvm.org/D16797 File

r269201 - Update clang support on recent Haiku

2016-05-11 Thread Reid Kleckner via cfe-commits
Author: rnk Date: Wed May 11 11:19:05 2016 New Revision: 269201 URL: http://llvm.org/viewvc/llvm-project?rev=269201&view=rev Log: Update clang support on recent Haiku [ Copied from https://llvm.org/bugs/show_bug.cgi?id=26404 ] clang support on Haiku is lagging a bit, and missing on x86_64. This

Re: [PATCH] D20168: [CodeGen] Handle structs directly in AMDGPUABIInfo

2016-05-11 Thread Matt Arsenault via cfe-commits
arsenm added a comment. Needs tests http://reviews.llvm.org/D20168 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

r269200 - [Hexagon] Avoid spurious failures in test/Driver/hexagon-toolchain-elf.c

2016-05-11 Thread Krzysztof Parzyszek via cfe-commits
Author: kparzysz Date: Wed May 11 11:11:22 2016 New Revision: 269200 URL: http://llvm.org/viewvc/llvm-project?rev=269200&view=rev Log: [Hexagon] Avoid spurious failures in test/Driver/hexagon-toolchain-elf.c Modified: cfe/trunk/test/Driver/hexagon-toolchain-elf.c Modified: cfe/trunk/test/Dri

Re: [Clang] Convergent Attribute

2016-05-11 Thread Ettore Speziale via cfe-commits
Hello, >> CUDA? In any case, I don't see how the restriction helps users, and the >> attribute at the IR level has a well-defined meaning regardless. If a user >> were to have a use case, they'd simply find the restriction arbitrary and >> frustrating. > > Yes, CUDA was already considered as w

Re: [PATCH] D20171: Support for MSVS default calling convention options (/Gd, /Gz, /Gv, /Gr)

2016-05-11 Thread David Majnemer via cfe-commits
majnemer added inline comments. Comment at: lib/AST/ASTContext.cpp:8604-8606 @@ -8603,5 +8603,5 @@ bool IsCXXMethod) const { // Pass through to the C++ ABI object if (IsCXXMethod) return ABI->getDefaultMethodCallConv(

Re: [PATCH] D20171: Support for MSVS default calling convention options (/Gd, /Gz, /Gv, /Gr)

2016-05-11 Thread Reid Kleckner via cfe-commits
rnk added inline comments. Comment at: lib/AST/ASTContext.cpp:8604-8606 @@ -8603,5 +8603,5 @@ bool IsCXXMethod) const { // Pass through to the C++ ABI object if (IsCXXMethod) return ABI->getDefaultMethodCallConv(IsVar

Re: [PATCH] D20103: PR27132: Proper mangling for __unaligned qualifier (now with both PR27367 and PR27666 fixed)

2016-05-11 Thread David Majnemer via cfe-commits
majnemer accepted this revision. majnemer added a comment. This revision is now accepted and ready to land. LGTM, thanks! http://reviews.llvm.org/D20103 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/li

Re: [PATCH] D20171: Support for MSVS default calling convention options (/Gd, /Gz, /Gv, /Gr)

2016-05-11 Thread David Majnemer via cfe-commits
majnemer added a subscriber: majnemer. Comment at: lib/AST/ASTContext.cpp:8604-8606 @@ -8603,5 +8603,5 @@ bool IsCXXMethod) const { // Pass through to the C++ ABI object if (IsCXXMethod) return ABI->getDefaultMethodCa

Re: [PATCH] D19156: [ms][dll] #27212: Generating of implicit special members should take into account MSVC compatibility version

2016-05-11 Thread Reid Kleckner via cfe-commits
rnk added inline comments. Comment at: lib/Sema/SemaDeclCXX.cpp:4816 @@ -4815,1 +4815,3 @@ +if ((MD->isMoveAssignmentOperator() || + (CXXC && CXXC->isMoveConstructor())) && !getLangOpts().isCompatibleWithMSVC(LangOptions::MSVC2015)) ---

Re: [PATCH] D20171: Support for MSVS default calling convention options (/Gd, /Gz, /Gv, /Gr)

2016-05-11 Thread Reid Kleckner via cfe-commits
rnk added inline comments. Comment at: include/clang/Basic/LangOptions.def:220 @@ -218,3 +219,3 @@ LANGOPT(MRTD , 1, 0, "-mrtd calling convention") BENIGN_LANGOPT(DelayedTemplateParsing , 1, 0, "delayed template parsing") Let's get rid of this and have it use

[clang-tools-extra] r269194 - [include-fixer] Also output the location where we found an unknown identifier.

2016-05-11 Thread Benjamin Kramer via cfe-commits
Author: d0k Date: Wed May 11 10:33:28 2016 New Revision: 269194 URL: http://llvm.org/viewvc/llvm-project?rev=269194&view=rev Log: [include-fixer] Also output the location where we found an unknown identifier. For debugging only, makes it a bit easier when there are queries coming out of headers.

Re: [PATCH] D20136: Get default -fms-compatibility-version from cl.exe's version

2016-05-11 Thread Adrian McCarthy via cfe-commits
amccarth added inline comments. Comment at: lib/Driver/MSVCToolChain.cpp:478 @@ +477,3 @@ + + const DWORD VersionSize = ::GetFileVersionInfoSizeW(ClExeWide.c_str(), + nullptr); thakis wrote: > amccarth wrote: >

Re: [PATCH] D19547: [clang-tidy] Add FixIt for swapping arguments in string-constructor-checker.

2016-05-11 Thread Etienne Bergeron via cfe-commits
etienneb updated this revision to Diff 56919. etienneb marked an inline comment as done. etienneb added a comment. use new API. code simplification http://reviews.llvm.org/D19547 Files: clang-tidy/misc/StringConstructorCheck.cpp test/clang-tidy/misc-string-constructor.cpp Index: test/clang

  1   2   >