Re: [PATCH] D12358: [Analyzer] Handling constant bound loops

2015-09-02 Thread Ted Kremenek via cfe-commits
krememek added a comment. In http://reviews.llvm.org/D12358#238303, @seaneveson wrote: > In http://reviews.llvm.org/D12358#237099, @krememek wrote: > > > To get the conservative invalidation that Anna suggests (actually, a little > > less conservative), I think you can just pass in a two MemRegi

Re: [PATCH] D12579: AST: simplify handling of the mangling

2015-09-02 Thread Saleem Abdulrasool via cfe-commits
compnerd added inline comments. Comment at: lib/AST/Mangle.cpp:139 @@ -149,2 +138,3 @@ - Out << '\01'; + // shouldMangleCXXName lies sometimes for the MS-ABI, so check the CC mangling + // when targeting MS-ABI (it doesnt consider CC which take precedence over --

Re: [PATCH] D12579: AST: simplify handling of the mangling

2015-09-02 Thread David Majnemer via cfe-commits
majnemer added a subscriber: majnemer. Comment at: lib/AST/Mangle.cpp:130 @@ +129,3 @@ + // ObjectiveC/C++ cannot support alternate calling conventions due to method + // dispatch. Honour the mangling irrespective of the annotations. + if (const ObjCMethodDecl *OMD = dyn_cast(

RE: r246646 - Silence a -Wsign-compare warning; NFC.

2015-09-02 Thread Daniel Marjamäki via cfe-commits
Hello! In general I am scared of such fixes. I assume we know that Info::MaxTables is never a negative value now. However if it would (by mistake) get a negative value in the future then you are hiding an important TP warning here. I assume we know that Info::MaxTables is never larger than in

Re: [PATCH] D12002: Initial WebAssembly support in clang

2015-09-02 Thread Eric Christopher via cfe-commits
echristo accepted this revision. echristo added a reviewer: echristo. echristo added a comment. A couple things inline that need changing, but feel free to commit after without a repost. -eric Comment at: lib/Basic/Targets.cpp:6943-6944 @@ +6942,4 @@ + + Diags.Report(diag

Re: [PATCH] D12462: [PATCH] [clang-tidy] Add inconsistent declaration parameter name check

2015-09-02 Thread Piotr Dziwinski via cfe-commits
piotrdz updated this revision to Diff 33879. piotrdz added a comment. In this third version I did the following: - fixed problems which I noticed with template specializations, - changed output diagnostics to be more detailed, covering multiple declarations - added FixIt hints to refactor inconsi

Re: [PATCH] D12580: Added StrictVTablePointers linking requirement

2015-09-02 Thread Richard Smith via cfe-commits
rsmith added a comment. Functionally LGTM, but please add a test case. Is there any precedent for how to spell these module flags (StrictVTablePointers / strict_vtable_pointers / strict.vtable.pointers)? http://reviews.llvm.org/D12580 ___ cfe-comm

Re: [PATCH] __attribute__((enable_if)) and non-overloaded member functions

2015-09-02 Thread Ettore Speziale via cfe-commits
Gently ping. > On Aug 26, 2015, at 2:40 PM, Ettore Speziale > wrote: > > Forward to the right ML: > >>> Sorry about the extreme delay. This patch slipped through the cracks, and I >>> only noticed it again when searching my email for enable_if. Committed in >>> r245985! In the future, please

[PATCH] D12580: Added StrictVTablePointers linking requirement

2015-09-02 Thread Piotr Padlewski via cfe-commits
Prazek created this revision. Prazek added reviewers: rsmith, rjmccall, majnemer, nlewycky. Prazek added a subscriber: cfe-commits. Generates code like this !llvm.module.flags = !{!0, !1} !0 = !{i32 1, !"StrictVTablePointers", i32 1} !1 = !{i32 3, !"StrictVTablePointersRequirement", !2} !2 = !{!

Re: [PATCH] D12022: Refactored dtor sanitizing into EHScopeStack

2015-09-02 Thread Richard Smith via cfe-commits
rsmith added a comment. I'd like to see some tests for poisoning bitfields, and particularly anonymous bitfields (I think the code works fine in those cases, but they're a bit special so explicitly testing them is useful). Comment at: lib/CodeGen/CGCXX.cpp:151 @@ +150,3 @@ +

Re: [PATCH] D12022: Refactored dtor sanitizing into EHScopeStack

2015-09-02 Thread Evgeniy Stepanov via cfe-commits
eugenis added a comment. LGTM but please wait for Richard's answer Comment at: lib/CodeGen/CGClass.cpp:1551 @@ +1550,3 @@ + // Prevent the current stack frame from disappearing from the stack trace. + CGF.CurFn->addFnAttr("disable-tail-calls", "true"); + -

Re: [PATCH] D12022: Refactored dtor sanitizing into EHScopeStack

2015-09-02 Thread Naomi Musgrave via cfe-commits
nmusgrave updated this revision to Diff 33887. nmusgrave marked 4 inline comments as done. nmusgrave added a comment. - Update comments, consistent style for attribute checking. http://reviews.llvm.org/D12022 Files: lib/CodeGen/CGCXX.cpp lib/CodeGen/CGClass.cpp lib/CodeGen/CodeGenModule.h

Re: [PATCH] D12579: AST: simplify handling of the mangling

2015-09-02 Thread Saleem Abdulrasool via cfe-commits
compnerd added inline comments. Comment at: lib/AST/Mangle.cpp:191 @@ -199,3 +190,3 @@ else -Out << "_block_invoke_" << discriminator+1; +Out << "_block_invoke_" << discriminator + 1; } Drive by reformat. Comment at: test/CodeGen/pr96

[PATCH] D12579: AST: simplify handling of the mangling

2015-09-02 Thread Saleem Abdulrasool via cfe-commits
compnerd created this revision. compnerd added reviewers: rafael, rnk. compnerd added a subscriber: cfe-commits. Simplify the mangling handling. This allows for the correct handling of extern "C" symbols in C++ input. The observable difference with this simplification that additional symbols ar

Re: [PATCH] D11279: Initial patch for PS4 toolchain

2015-09-02 Thread Katya Romanova via cfe-commits
kromanova added inline comments. Comment at: lib/Frontend/InitHeaderSearch.cpp:340 @@ +339,3 @@ +BaseSDKPath = P.str(); + } +} jroelofs wrote: > The lifetime of `P` ends here, yet a reference to it lives on because of the > `= P.str()`. Using it

Re: [PATCH] D12022: Refactored dtor sanitizing into EHScopeStack

2015-09-02 Thread Evgeniy Stepanov via cfe-commits
eugenis added inline comments. Comment at: lib/CodeGen/CGCXX.cpp:45 @@ +44,3 @@ + // destructors. + if (getCodeGenOpts().SanitizeMemoryUseAfterDtor) +return true; This simply suppresses all dtor alias under UseAfterDtor, effectively disabling the second che

Re: [PATCH] D11279: Initial patch for PS4 toolchain

2015-09-02 Thread Jonathan Roelofs via cfe-commits
jroelofs added a subscriber: jroelofs. Comment at: lib/Frontend/InitHeaderSearch.cpp:340 @@ +339,3 @@ +BaseSDKPath = P.str(); + } +} The lifetime of `P` ends here, yet a reference to it lives on because of the `= P.str()`. Using it later on line

Re: [PATCH] D12547: Add support for function attribute "disable_tail_calls"

2015-09-02 Thread Akira Hatanaka via cfe-commits
ahatanak added inline comments. Comment at: include/clang/Basic/Attr.td:894 @@ -893,1 +893,3 @@ +def DisableTailCalls : InheritableAttr { + let Spellings = [GNU<"disable_tail_calls">]; aaron.ballman wrote: > We already have an attribute that is tangentially rel

Re: [PATCH] D12547: Add support for function attribute "disable_tail_calls"

2015-09-02 Thread Akira Hatanaka via cfe-commits
ahatanak updated this revision to Diff 33882. http://reviews.llvm.org/D12547 Files: include/clang/Basic/Attr.td include/clang/Basic/AttrDocs.td lib/CodeGen/CGCall.cpp lib/Sema/SemaDeclAttr.cpp test/CodeGen/attr-disable-tail-calls.c Index: test/CodeGen/attr-disable-tail-calls.c

Re: [PATCH] D11279: Initial patch for PS4 toolchain

2015-09-02 Thread Katya Romanova via cfe-commits
kromanova added inline comments. Comment at: lib/Frontend/InitHeaderSearch.cpp:325-344 @@ +324,22 @@ + case llvm::Triple::PS4: { +// gets prepended later in AddPath(). +std::string BaseSDKPath = ""; +if (!HasSysroot) { + const char *envValue = getenv("SCE_PS4_SD

Re: [PATCH] D11737: Add -linker (and -linker=) alias for -fuse-ld=

2015-09-02 Thread Katya Romanova via cfe-commits
kromanova added inline comments. Comment at: include/clang/Driver/Options.td:1853-1854 @@ -1853,2 +1852,4 @@ +def fuse_ld_EQ : Joined<["-"], "fuse-ld=">, HelpText<"Use linker ">, Group; +def linker_EQ : Joined<["-"], "linker=">, Alias, MetaVarName<"">; defm align_functions :

Re: [PATCH] D11279: Initial patch for PS4 toolchain

2015-09-02 Thread Eric Christopher via cfe-commits
echristo added a comment. Replying to the inline comments. I know we're waiting on the linker stuff, but Katya made me realize I hadn't replied to your comments. -eric Comment at: include/clang/Basic/DiagnosticDriverKinds.td:203-208 @@ +202,8 @@ + InGroup; +def warn_drv_ps4_s

Re: [PATCH] D11279: Initial patch for PS4 toolchain

2015-09-02 Thread Katya Romanova via cfe-commits
kromanova added inline comments. Comment at: lib/Frontend/InitHeaderSearch.cpp:325-344 @@ +324,22 @@ + case llvm::Triple::PS4: { +// gets prepended later in AddPath(). +std::string BaseSDKPath = ""; +if (!HasSysroot) { + const char *envValue = getenv("SCE_PS4_SD

Re: [PATCH] D12169: Relax constexpr rules to improve __builtin_object_size's accuracy

2015-09-02 Thread George Burgess IV via cfe-commits
george.burgess.iv updated this revision to Diff 33875. george.burgess.iv marked 16 inline comments as done. george.burgess.iv added a comment. Addressed all feedback; backed out support for more questionable features (negative indices, non-object-boundary offsets, etc), added logic to ignore poi

Re: [PATCH] D12087: always_inline codegen rewrite

2015-09-02 Thread Evgeniy Stepanov via cfe-commits
eugenis updated this revision to Diff 33868. eugenis marked 6 inline comments as done. Repository: rL LLVM http://reviews.llvm.org/D12087 Files: lib/CodeGen/CGCXX.cpp lib/CodeGen/CGClass.cpp lib/CodeGen/CGOpenMPRuntime.cpp lib/CodeGen/CodeGenModule.cpp lib/CodeGen/CodeGenModule.h l

Re: [PATCH] D12541: [Sparc][Shave]: Empower the toolchain formerly known as SHAVE to do more.

2015-09-02 Thread James Y Knight via cfe-commits
jyknight added inline comments. Comment at: lib/Driver/ToolChains.cpp:3936 @@ -3914,9 +3935,3 @@ -SHAVEToolChain::SHAVEToolChain(const Driver &D, const llvm::Triple &Triple, - const ArgList &Args) -: Generic_GCC(D, Triple, Args) {} - -SHAVEToolC

r246715 - Remove inadvertent debug output from prior change.

2015-09-02 Thread Douglas Katzman via cfe-commits
Author: dougk Date: Wed Sep 2 16:18:10 2015 New Revision: 246715 URL: http://llvm.org/viewvc/llvm-project?rev=246715&view=rev Log: Remove inadvertent debug output from prior change. Modified: cfe/trunk/lib/Driver/Tools.cpp Modified: cfe/trunk/lib/Driver/Tools.cpp URL: http://llvm.org/viewv

r246714 - Use new utility function to clean leading junk from pathnames. NFC

2015-09-02 Thread Douglas Katzman via cfe-commits
Author: dougk Date: Wed Sep 2 16:14:53 2015 New Revision: 246714 URL: http://llvm.org/viewvc/llvm-project?rev=246714&view=rev Log: Use new utility function to clean leading junk from pathnames. NFC Modified: cfe/trunk/lib/Driver/Tools.cpp cfe/trunk/lib/Frontend/DependencyFile.cpp Modifi

Re: [PATCH] D6551: Improvements to scan-build.

2015-09-02 Thread Антон Ярцев via cfe-commits
ayartsev added a comment. Removed trailing whitespaces and committed as r246710. Thanks for reviews and assistance! http://reviews.llvm.org/D6551 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/

Re: [PATCH] D3197: Remove undefined behavior from list::push_back/front, emplace_back/front.

2015-09-02 Thread Marshall Clow via cfe-commits
mclow.lists abandoned this revision. mclow.lists added a comment. There are other suggested fixes for this problem, and this has gotten stale. http://reviews.llvm.org/D3197 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.or

r246710 - [analyzer] Refactoring: bring together scan-build options and environment variables.

2015-09-02 Thread Anton Yartsev via cfe-commits
Author: ayartsev Date: Wed Sep 2 16:01:59 2015 New Revision: 246710 URL: http://llvm.org/viewvc/llvm-project?rev=246710&view=rev Log: [analyzer] Refactoring: bring together scan-build options and environment variables. Full list of changes: - all scan-build command-line arguments are now kept i

Re: [PATCH] D12087: always_inline codegen rewrite

2015-09-02 Thread Richard Smith via cfe-commits
rsmith added inline comments. Comment at: lib/CodeGen/CodeGenModule.cpp:485 @@ +484,3 @@ + std::string Name = Fn->getName(); + std::string InlineName = Name + ".inlinefunction"; + Fn->setName(InlineName); I have a slight preference for ".alwaysinline" over ".in

Re: r246610 - Migrate the target attribute parsing code into an extension off of

2015-09-02 Thread Eric Christopher via cfe-commits
And I think I've fixed the other bits in dzur:~/sources/llvm/tools/clang> git svn dcommit Committing to https://llvm.org/svn/llvm-project/cfe/trunk ... M include/clang/Basic/Attr.td M lib/CodeGen/CGCall.cpp Committed r246706 We could eventually cache the parsing etc, but I don't think it's hugely

r246706 - Migrate the target attribute parsing code to returning an instance

2015-09-02 Thread Eric Christopher via cfe-commits
Author: echristo Date: Wed Sep 2 15:40:12 2015 New Revision: 246706 URL: http://llvm.org/viewvc/llvm-project?rev=246706&view=rev Log: Migrate the target attribute parsing code to returning an instance every time it's called rather than attempting to cache the result. It's unlikely to be called fr

r246702 - [modules] Tighten up this test a bit.

2015-09-02 Thread Sean Silva via cfe-commits
Author: silvas Date: Wed Sep 2 15:16:09 2015 New Revision: 246702 URL: http://llvm.org/viewvc/llvm-project?rev=246702&view=rev Log: [modules] Tighten up this test a bit. Modified: cfe/trunk/test/Modules/module-map-path-hash.cpp Modified: cfe/trunk/test/Modules/module-map-path-hash.cpp URL:

Re: r246610 - Migrate the target attribute parsing code into an extension off of

2015-09-02 Thread Eric Christopher via cfe-commits
On Wed, Sep 2, 2015 at 10:11 AM Aaron Ballman wrote: > On Wed, Sep 2, 2015 at 1:07 PM, Eric Christopher > wrote: > > > > > > On Wed, Sep 2, 2015 at 7:24 AM Aaron Ballman > wrote: > >> > >> A few nits in addition to what Ben pointed out... > >> > >> On Tue, Sep 1, 2015 at 8:12 PM, Eric Christoph

Re: r246701 - Update comment for AdditionalMembers with a note to avoid using

2015-09-02 Thread Aaron Ballman via cfe-commits
On Wed, Sep 2, 2015 at 4:13 PM, Eric Christopher via cfe-commits wrote: > Author: echristo > Date: Wed Sep 2 15:13:41 2015 > New Revision: 246701 > > URL: http://llvm.org/viewvc/llvm-project?rev=246701&view=rev > Log: > Update comment for AdditionalMembers with a note to avoid using > additional

r246701 - Update comment for AdditionalMembers with a note to avoid using

2015-09-02 Thread Eric Christopher via cfe-commits
Author: echristo Date: Wed Sep 2 15:13:41 2015 New Revision: 246701 URL: http://llvm.org/viewvc/llvm-project?rev=246701&view=rev Log: Update comment for AdditionalMembers with a note to avoid using additional data members in attributes as they'll leak and provide some guidance as to where they sh

Re: clang-tools-extra code owners

2015-09-02 Thread Manuel Klimek via cfe-commits
Thanks for the cleanup! On Wed, Sep 2, 2015 at 10:02 PM Aaron Ballman wrote: > I've updated the code owners list in r246698. Thanks! > > ~Aaron > > On Wed, Sep 2, 2015 at 3:33 PM, Peter Collingbourne > wrote: > > SGTM. > > > > Peter > > > > On Wed, Sep 02, 2015 at 12:38:41PM -0400, Aaron Ballma

r246700 - Do not include default sanitizer blacklists into -M/-MM/-MD/-MMD output.

2015-09-02 Thread Ivan Krasin via cfe-commits
Author: krasin Date: Wed Sep 2 15:02:38 2015 New Revision: 246700 URL: http://llvm.org/viewvc/llvm-project?rev=246700&view=rev Log: Do not include default sanitizer blacklists into -M/-MM/-MD/-MMD output. Summary: Do not include default sanitizer blacklists into -M/-MM/-MD/-MMD output. Introduc

Re: [PATCH] D12544: Do not include default sanitizer blacklists into -M/-MM/-MD/-MMD output.

2015-09-02 Thread Ivan Krasin via cfe-commits
krasin added inline comments. Comment at: test/Driver/fsanitize-blacklist.c:25 @@ -18,2 +24,3 @@ +// CHECK-DEFAULT-BLACKLIST: -fsanitize-blacklist={{.*}}asan_blacklist.txt // Ignore -fsanitize-blacklist flag if there is no -fsanitize flag. Good idea. Done. ht

Re: [PATCH] D12458: [clang] add __builtin_unpredictable and convert to metadata

2015-09-02 Thread Sanjay Patel via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL246699: add __builtin_unpredictable and convert to metadata (authored by spatel). Changed prior to commit: http://reviews.llvm.org/D12458?vs=33491&id=33850#toc Repository: rL LLVM http://reviews.llv

r246699 - add __builtin_unpredictable and convert to metadata

2015-09-02 Thread Sanjay Patel via cfe-commits
Author: spatel Date: Wed Sep 2 15:01:30 2015 New Revision: 246699 URL: http://llvm.org/viewvc/llvm-project?rev=246699&view=rev Log: add __builtin_unpredictable and convert to metadata This patch depends on r246688 (D12341). The goal is to make LLVM generate different code for these functions fo

Re: [PATCH] D12544: Do not include default sanitizer blacklists into -M/-MM/-MD/-MMD output.

2015-09-02 Thread Ivan Krasin via cfe-commits
krasin updated this revision to Diff 33849. krasin added a comment. Addressed a nit. http://reviews.llvm.org/D12544 Files: include/clang/Driver/Options.td include/clang/Driver/SanitizerArgs.h lib/Driver/SanitizerArgs.cpp lib/Frontend/CompilerInvocation.cpp test/Driver/Inputs/resource_

Re: clang-tools-extra code owners

2015-09-02 Thread Aaron Ballman via cfe-commits
I've updated the code owners list in r246698. Thanks! ~Aaron On Wed, Sep 2, 2015 at 3:33 PM, Peter Collingbourne wrote: > SGTM. > > Peter > > On Wed, Sep 02, 2015 at 12:38:41PM -0400, Aaron Ballman wrote: >> I happened to notice that CODE_OWNERS.TXT for clang-tools-extra is >> rather sparse. The

[clang-tools-extra] r246698 - Updating the code owners list.

2015-09-02 Thread Aaron Ballman via cfe-commits
Author: aaronballman Date: Wed Sep 2 15:00:41 2015 New Revision: 246698 URL: http://llvm.org/viewvc/llvm-project?rev=246698&view=rev Log: Updating the code owners list. Modified: clang-tools-extra/trunk/CODE_OWNERS.TXT Modified: clang-tools-extra/trunk/CODE_OWNERS.TXT URL: http://llvm.org/

Re: clang-tools-extra code owners

2015-09-02 Thread Peter Collingbourne via cfe-commits
SGTM. Peter On Wed, Sep 02, 2015 at 12:38:41PM -0400, Aaron Ballman wrote: > I happened to notice that CODE_OWNERS.TXT for clang-tools-extra is > rather sparse. These tools are starting to get more attention from the > community, and I am wondering whether it would make sense to populate > that s

[PATCH] D12571: [Analyzer] Fix assertions in commit r246345 (pr22954).

2015-09-02 Thread pierre gousseau via cfe-commits
pgousseau created this revision. pgousseau added reviewers: ayartsev, zaks.anna, dcoughlin, xazax.hun, ClockMan. pgousseau added a subscriber: cfe-commits. Fix assertions kindly reported by Gabor Horvath and Piotr Zegar caused by commit r246345 and reverted in r246479. Original review in http://r

Re: [PATCH] D12123: [analyzer] Skip Pre/Post handlers for ObjC calls when receiver is nil.

2015-09-02 Thread Devin Coughlin via cfe-commits
dcoughlin updated this revision to Diff 33836. dcoughlin added a comment. I've updated ExprEngine::VisitObjCMessage to create a pre-statement program point node for the ObjCMessageExpr when the receiver is definitely nil and changed the MessageNil checker handlers to run on a post-statement prog

Re: [PATCH] D10586: Add HSAIL support

2015-09-02 Thread Pekka Jääskeläinen via cfe-commits
pekka.jaaskelainen added a comment. Is there a matching HLC-HSAIL branch for the latest version of the patch? It doesn't work with with hsail-stable-3.7 anymore. http://reviews.llvm.org/D10586 ___ cfe-commits mailing list cfe-commits@lists.llvm.org

r246680 - [modules] Don't waste time reading in the names the module file writer gave to blocks. We don't need these names, and decoding the corresponding bitcode has a significant cost.

2015-09-02 Thread Richard Smith via cfe-commits
Author: rsmith Date: Wed Sep 2 12:45:54 2015 New Revision: 246680 URL: http://llvm.org/viewvc/llvm-project?rev=246680&view=rev Log: [modules] Don't waste time reading in the names the module file writer gave to blocks. We don't need these names, and decoding the corresponding bitcode has a sign

Re: clang-tools-extra code owners

2015-09-02 Thread Edwin Vane via cfe-commits
I don't know of anyone who has a stake in clang-modernize and I probably should be removed from the code-owner role. On 2 September 2015 at 12:48, Manuel Klimek wrote: > I think that basically encodes what the current state is, and we should > have kept that file in a better shape. +Edwin in cas

Re: r246610 - Migrate the target attribute parsing code into an extension off of

2015-09-02 Thread Aaron Ballman via cfe-commits
On Wed, Sep 2, 2015 at 1:07 PM, Eric Christopher wrote: > > > On Wed, Sep 2, 2015 at 7:24 AM Aaron Ballman wrote: >> >> A few nits in addition to what Ben pointed out... >> >> On Tue, Sep 1, 2015 at 8:12 PM, Eric Christopher via cfe-commits >> wrote: >> > Author: echristo >> > Date: Tue Sep 1 1

Re: r246610 - Migrate the target attribute parsing code into an extension off of

2015-09-02 Thread Eric Christopher via cfe-commits
On Wed, Sep 2, 2015 at 7:24 AM Aaron Ballman wrote: > A few nits in addition to what Ben pointed out... > > On Tue, Sep 1, 2015 at 8:12 PM, Eric Christopher via cfe-commits > wrote: > > Author: echristo > > Date: Tue Sep 1 19:12:02 2015 > > New Revision: 246610 > > > > URL: http://llvm.org/view

Re: clang-tools-extra code owners

2015-09-02 Thread Richard Smith via cfe-commits
On Sep 2, 2015 9:38 AM, "Aaron Ballman via cfe-commits" < cfe-commits@lists.llvm.org> wrote: > > I happened to notice that CODE_OWNERS.TXT for clang-tools-extra is > rather sparse. These tools are starting to get more attention from the > community, and I am wondering whether it would make sense to

Re: clang-tools-extra code owners

2015-09-02 Thread Manuel Klimek via cfe-commits
I think that basically encodes what the current state is, and we should have kept that file in a better shape. +Edwin in case he still has a stake in clang-modernize, or knows who might have. On Wed, Sep 2, 2015 at 6:38 PM Aaron Ballman wrote: > I happened to notice that CODE_OWNERS.TXT for clan

Re: clang-tools-extra code owners

2015-09-02 Thread Alexander Kornienko via cfe-commits
LG for clang-tidy. On Wed, Sep 2, 2015 at 6:38 PM, Aaron Ballman wrote: > I happened to notice that CODE_OWNERS.TXT for clang-tools-extra is > rather sparse. These tools are starting to get more attention from the > community, and I am wondering whether it would make sense to populate > that som

clang-tools-extra code owners

2015-09-02 Thread Aaron Ballman via cfe-commits
I happened to notice that CODE_OWNERS.TXT for clang-tools-extra is rather sparse. These tools are starting to get more attention from the community, and I am wondering whether it would make sense to populate that somewhat? If so, I would nominate: Alexander Kornienko for clang-tidy Peter Collingbo

[clang-tools-extra] r246663 - Disable clang-tidy Google checkers when not compiling in C++ mode. None of the checkers require additional testing as the tests will not compile for other languages or mo

2015-09-02 Thread Aaron Ballman via cfe-commits
Author: aaronballman Date: Wed Sep 2 11:20:42 2015 New Revision: 246663 URL: http://llvm.org/viewvc/llvm-project?rev=246663&view=rev Log: Disable clang-tidy Google checkers when not compiling in C++ mode. None of the checkers require additional testing as the tests will not compile for other la

[clang-tools-extra] r246661 - Disable clang-tidy readability checkers when not compiling in C++ mode. None of the checkers require additional testing as the tests will not compile for other languages

2015-09-02 Thread Aaron Ballman via cfe-commits
Author: aaronballman Date: Wed Sep 2 11:05:21 2015 New Revision: 246661 URL: http://llvm.org/viewvc/llvm-project?rev=246661&view=rev Log: Disable clang-tidy readability checkers when not compiling in C++ mode. None of the checkers require additional testing as the tests will not compile for othe

[clang-tools-extra] r246660 - Move some more functionality into the AST consumer creation factory function, before registering matchers with the MatchFinder object. This allows us to set the language

2015-09-02 Thread Aaron Ballman via cfe-commits
Author: aaronballman Date: Wed Sep 2 11:04:15 2015 New Revision: 246660 URL: http://llvm.org/viewvc/llvm-project?rev=246660&view=rev Log: Move some more functionality into the AST consumer creation factory function, before registering matchers with the MatchFinder object. This allows us to set

Re: r246659 - [MS ABI] Number unnamed TagDecls which aren't externally visible

2015-09-02 Thread Rafael Espíndola via cfe-commits
Thanks! On 2 September 2015 at 11:50, David Majnemer via cfe-commits wrote: > Author: majnemer > Date: Wed Sep 2 10:50:38 2015 > New Revision: 246659 > > URL: http://llvm.org/viewvc/llvm-project?rev=246659&view=rev > Log: > [MS ABI] Number unnamed TagDecls which aren't externally visible > > Tag

r246659 - [MS ABI] Number unnamed TagDecls which aren't externally visible

2015-09-02 Thread David Majnemer via cfe-commits
Author: majnemer Date: Wed Sep 2 10:50:38 2015 New Revision: 246659 URL: http://llvm.org/viewvc/llvm-project?rev=246659&view=rev Log: [MS ABI] Number unnamed TagDecls which aren't externally visible TagDecls (structs, enums, etc.) may have the same name for linkage purposes of one another; to di

r246657 - [OpenMP] Make helper functoin static. NFC.

2015-09-02 Thread Benjamin Kramer via cfe-commits
Author: d0k Date: Wed Sep 2 10:31:05 2015 New Revision: 246657 URL: http://llvm.org/viewvc/llvm-project?rev=246657&view=rev Log: [OpenMP] Make helper functoin static. NFC. Modified: cfe/trunk/lib/CodeGen/CGOpenMPRuntime.cpp Modified: cfe/trunk/lib/CodeGen/CGOpenMPRuntime.cpp URL: http://ll

Re: [PATCH] D12358: [Analyzer] Handling constant bound loops

2015-09-02 Thread Sean Eveson via cfe-commits
seaneveson added a comment. In http://reviews.llvm.org/D12358#237099, @krememek wrote: > To get the conservative invalidation that Anna suggests (actually, a little > less conservative), I think you can just pass in a two MemRegions as the > input to that method and get a new ProgramState with

Re: clang-tidy unit tests

2015-09-02 Thread Aaron Ballman via cfe-commits
On Wed, Sep 2, 2015 at 10:44 AM, Alexander Kornienko wrote: > Looks like we need to call both ClangTidyContext::setASTContext, > ClangTidyCheck::registerMatchers and ClangTidyContext::setCurrentFile in > TestClangTidyAction::CreateASTConsumer. Maybe something else will need to > move there as well

Re: clang-tidy unit tests

2015-09-02 Thread Alexander Kornienko via cfe-commits
Looks like we need to call both ClangTidyContext::setASTContext, ClangTidyCheck::registerMatchers and ClangTidyContext::setCurrentFile in TestClangTidyAction::CreateASTConsumer. Maybe something else will need to move there as well. -- Alex On Wed, Sep 2, 2015 at 4:09 PM, Aaron Ballman wrote: >

Re: [PATCH] D12359: New warning -Wnonconst-parameter when a pointer parameter can be const

2015-09-02 Thread Aaron Ballman via cfe-commits
On Wed, Sep 2, 2015 at 2:19 AM, Daniel Marjamäki wrote: > danielmarjamaki added a comment. > >> > > The checker isn't currently path sensitive as it doesn't pay attention > >> > >> > > >> > >> > > to control flow graphs or how pointer values flow through a function > >> > >> > > >> > >> > > body

[clang-tools-extra] r246655 - Fix loop-convert crash.

2015-09-02 Thread Angel Garcia Gomez via cfe-commits
Author: angelgarcia Date: Wed Sep 2 09:25:08 2015 New Revision: 246655 URL: http://llvm.org/viewvc/llvm-project?rev=246655&view=rev Log: Fix loop-convert crash. Summary: loop-convert no longer crashes when calling a member function using a member pointer which is a member of another record. Re

Re: [PATCH] D12555: Fix loop-convert crash.

2015-09-02 Thread Manuel Klimek via cfe-commits
klimek accepted this revision. klimek added a reviewer: klimek. klimek added a comment. This revision is now accepted and ready to land. lg http://reviews.llvm.org/D12555 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/

Re: r246610 - Migrate the target attribute parsing code into an extension off of

2015-09-02 Thread Aaron Ballman via cfe-commits
A few nits in addition to what Ben pointed out... On Tue, Sep 1, 2015 at 8:12 PM, Eric Christopher via cfe-commits wrote: > Author: echristo > Date: Tue Sep 1 19:12:02 2015 > New Revision: 246610 > > URL: http://llvm.org/viewvc/llvm-project?rev=246610&view=rev > Log: > Migrate the target attribu

Re: [PATCH] D12547: Add support for function attribute "disable_tail_calls"

2015-09-02 Thread Aaron Ballman via cfe-commits
aaron.ballman added inline comments. Comment at: include/clang/Basic/Attr.td:894 @@ -893,1 +893,3 @@ +def DisableTailCalls : InheritableAttr { + let Spellings = [GNU<"disable_tail_calls">]; We already have an attribute that is tangentially related: OptimizeNone

[PATCH] D12555: Fix loop-convert crash.

2015-09-02 Thread Angel Garcia via cfe-commits
angelgarcia created this revision. angelgarcia added a reviewer: alexfh. angelgarcia added subscribers: klimek, cfe-commits. loop-convert no longer crashes when calling a member function using a member pointer which is a member of another record. http://reviews.llvm.org/D12555 Files: clang-ti

Re: r246610 - Migrate the target attribute parsing code into an extension off of

2015-09-02 Thread Benjamin Kramer via cfe-commits
> On 02.09.2015, at 02:12, Eric Christopher via cfe-commits > wrote: > > Author: echristo > Date: Tue Sep 1 19:12:02 2015 > New Revision: 246610 > > URL: http://llvm.org/viewvc/llvm-project?rev=246610&view=rev > Log: > Migrate the target attribute parsing code into an extension off of > the m

clang-tidy unit tests

2015-09-02 Thread Aaron Ballman via cfe-commits
I ran into an issue with the runCheckOnCode() function from clang-tidy's unit tests, and I am not familiar enough with the way tool invocation works to suggest a correct fix. ClangTidyContext::setASTContext() is what sets up the language options for the ClangTidyContext object currently. However,

r246652 - [Shave]: pass through more clang options to moviCompile

2015-09-02 Thread Douglas Katzman via cfe-commits
Author: dougk Date: Wed Sep 2 08:42:43 2015 New Revision: 246652 URL: http://llvm.org/viewvc/llvm-project?rev=246652&view=rev Log: [Shave]: pass through more clang options to moviCompile Modified: cfe/trunk/lib/Driver/Tools.cpp cfe/trunk/test/Driver/shave-toolchain.c Modified: cfe/trunk

r246650 - [Sparc]: GCCInstallationDetector should not care if little-endian

2015-09-02 Thread Douglas Katzman via cfe-commits
Author: dougk Date: Wed Sep 2 08:33:42 2015 New Revision: 246650 URL: http://llvm.org/viewvc/llvm-project?rev=246650&view=rev Log: [Sparc]: GCCInstallationDetector should not care if little-endian Modified: cfe/trunk/lib/Driver/ToolChains.cpp Modified: cfe/trunk/lib/Driver/ToolChains.cpp UR

Re: Move createEliminateAvailableExternallyPass earlier

2015-09-02 Thread Teresa Johnson via cfe-commits
Hi Yaron, This is to handle the case of pre-built (real .o) files. The available externally functions are kept in the -c -flto compile (the pass isn't run) so that they are available for inlining in the LTO pipeline. If the available externally function is in a pre-built object file it wouldn't be

Re: [PATCH] D12400: Fix store detection for return value in CGCall

2015-09-02 Thread Arnaud de Grandmaison via cfe-commits
aadg added a comment. Yet another comment (see below). Comment at: lib/CodeGen/CGCall.cpp:2332 @@ -2331,2 +2331,3 @@ if (!store) return nullptr; + if (store->getPointerOperand() != CGF.ReturnValue) return nullptr; aadg wrote: > It might be worth stating in

r246646 - Silence a -Wsign-compare warning; NFC.

2015-09-02 Thread Aaron Ballman via cfe-commits
Author: aaronballman Date: Wed Sep 2 07:50:12 2015 New Revision: 246646 URL: http://llvm.org/viewvc/llvm-project?rev=246646&view=rev Log: Silence a -Wsign-compare warning; NFC. Modified: cfe/trunk/lib/Serialization/MultiOnDiskHashTable.h Modified: cfe/trunk/lib/Serialization/MultiOnDiskHash

Re: [PATCH] D12400: Fix store detection for return value in CGCall

2015-09-02 Thread Arnaud de Grandmaison via cfe-commits
aadg added a subscriber: aadg. aadg added a comment. Just a minor nitpick (see below) Comment at: lib/CodeGen/CGCall.cpp:2332 @@ -2331,2 +2331,3 @@ if (!store) return nullptr; + if (store->getPointerOperand() != CGF.ReturnValue) return nullptr; It might be

Re: [PATCH] D11815: Pass subtarget feature "force-align-stack"

2015-09-02 Thread Vasileios Kalintiris via cfe-commits
vkalintiris added a comment. In http://reviews.llvm.org/D11815#237541, @ahatanak wrote: > In http://reviews.llvm.org/D11815#236368, @vkalintiris wrote: > > > In http://reviews.llvm.org/D11815#235394, @ahatanak wrote: > > > > > > > > > > > > > For example, on a Mips target, where the O32 ABI requi

[clang-tools-extra] r246643 - [clang-tidy] Updated the check name in the doc.

2015-09-02 Thread Alexander Kornienko via cfe-commits
Author: alexfh Date: Wed Sep 2 07:01:51 2015 New Revision: 246643 URL: http://llvm.org/viewvc/llvm-project?rev=246643&view=rev Log: [clang-tidy] Updated the check name in the doc. Modified: clang-tools-extra/trunk/docs/clang-tidy/checks/modernize-shrink-to-fit.rst Modified: clang-tools-ext

Re: [PATCH] D12244: Implement ACLE 2.0 macros of chapters 6.4 and 6.5 for [ARM] and [Aarch64] targets

2015-09-02 Thread Alexandros Lamprineas via cfe-commits
labrinea added a comment. Could I have some feedback please? http://reviews.llvm.org/D12244 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Re: [PATCH] D3583: Sema: Implement DR244

2015-09-02 Thread Johnny Willemsen via cfe-commits
jwillemsen added a comment. Just tested 3.7.0, this issue is not fixed in this new release of today Repository: rL LLVM http://reviews.llvm.org/D3583 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/li

Re: [PATCH] D12400: Fix store detection for return value in CGCall

2015-09-02 Thread Jakub Kuderski via cfe-commits
kuhar added a comment. ping Repository: rL LLVM http://reviews.llvm.org/D12400 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] r246638 - Fix use-auto-check.

2015-09-02 Thread Angel Garcia Gomez via cfe-commits
Author: angelgarcia Date: Wed Sep 2 05:20:00 2015 New Revision: 246638 URL: http://llvm.org/viewvc/llvm-project?rev=246638&view=rev Log: Fix use-auto-check. Summary: Fix a bug where use-auto check would crash when the definition of a type is in the same statement than its instantiation with new

Re: [PATCH] D12551: Fix use-auto-check.

2015-09-02 Thread Alexander Kornienko via cfe-commits
alexfh accepted this revision. alexfh added a comment. This revision is now accepted and ready to land. Looks good. Thank you! http://reviews.llvm.org/D12551 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailm

[PATCH] D12551: Fix use-auto-check.

2015-09-02 Thread Angel Garcia via cfe-commits
angelgarcia created this revision. angelgarcia added a reviewer: alexfh. angelgarcia added subscribers: klimek, cfe-commits. Fix a bug where use-auto check would crash when the definition of a type is in the same statement than its instantiation with new. http://reviews.llvm.org/D12551 Files:

Re: [PATCH] D12262: [OpenMP] Capture global variables in target regions.

2015-09-02 Thread Alexey Bataev via cfe-commits
ABataev added a comment. LGTM http://reviews.llvm.org/D12262 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Re: [PATCH] D11797: [LIbClang] Report the named type for ElaboratedType

2015-09-02 Thread Sergey Kalinichev via cfe-commits
skalinichev retitled this revision from "[libclang] Expose the ElaboratedType" to "[LIbClang] Report the named type for ElaboratedType". skalinichev updated the summary for this revision. skalinichev updated this revision to Diff 33787. skalinichev added a comment. It just occured to me, why do w

Re: [PATCH] D12369: [clang-format] Fix alignConsecutiveAssignments not working properly

2015-09-02 Thread Beren Minor via cfe-commits
berenm marked 5 inline comments as done. berenm added a comment. http://reviews.llvm.org/D12369 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Re: [PATCH] D12369: [clang-format] Fix alignConsecutiveAssignments not working properly

2015-09-02 Thread Beren Minor via cfe-commits
berenm updated this revision to Diff 33783. berenm added a comment. Here it is, with the typos in comments corrected, and rebased over the latest trunk. Thanks for the review! http://reviews.llvm.org/D12369 Files: lib/Format/WhitespaceManager.cpp unittests/Format/FormatTest.cpp Index: un

Re: [PATCH] D12369: [clang-format] Fix alignConsecutiveAssignments not working properly

2015-09-02 Thread Matt Oakes via cfe-commits
matto1990 requested changes to this revision. matto1990 added a comment. This revision now requires changes to proceed. This looks much better than the code I wrote. If all the unit tests are passing, the one change I can see to make is a misspelling in one of the comments. The rest looks excell

Re: Move createEliminateAvailableExternallyPass earlier

2015-09-02 Thread Yaron Keren via cfe-commits
r246619, thanks! About createEliminateAvailableExternallyPass for LTO, I'm missing something. At link time, aren't available externally function supposed to be, well, available as external linkage? Won't the link fail without these versions? if so, why keep the available externally versions at all