Re: [PATCH] D13909: clang-offload-bundler - offload files bundling/unbundling tool

2016-08-16 Thread Jonas Hahnfeld via cfe-commits
Hahnfeld added inline comments. Comment at: test/CMakeLists.txt:27-33 @@ -26,8 +26,9 @@ list(APPEND CLANG_TEST_DEPS clang clang-headers clang-format c-index-test diagtool clang-tblgen + clang-offload-bundler ) Most users will get it anyway b

r278783 - [X86] Add xgetbv/x[X86] Add xgetbv xsetbv intrinsics to non-windows platforms

2016-08-16 Thread Marina Yatsina via cfe-commits
Author: myatsina Date: Tue Aug 16 03:13:36 2016 New Revision: 278783 URL: http://llvm.org/viewvc/llvm-project?rev=278783&view=rev Log: [X86] Add xgetbv/x[X86] Add xgetbv xsetbv intrinsics to non-windows platforms commit on behalf of guyblank Differential Revision: https://reviews.llvm.org/D21959

Re: [PATCH] D21959: [X86] Add xgetbv xsetbv intrinsics

2016-08-16 Thread Marina Yatsina via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL278783: [X86] Add xgetbv/x[X86] Add xgetbv xsetbv intrinsics to non-windows platforms (authored by myatsina). Changed prior to commit: https://reviews.llvm.org/D21959?vs=65676&id=68146#toc Repository:

Re: [PATCH] D23353: [clang-tidy] Add check 'misc-use-after-move'

2016-08-16 Thread Martin Böhme via cfe-commits
mboehme updated this revision to Diff 68147. mboehme added a comment. Responses to reviewer comments. https://reviews.llvm.org/D23353 Files: clang-tidy/misc/CMakeLists.txt clang-tidy/misc/MiscTidyModule.cpp clang-tidy/misc/UseAfterMoveCheck.cpp clang-tidy/misc/UseAfterMoveCheck.h docs

Re: [PATCH] D23498: Left shifts of negative values are defined if -fwrapv is set

2016-08-16 Thread James Molloy via cfe-commits
jmolloy added a comment. Hi Filipe, Did this look good to you after those changes? Cheers, James https://reviews.llvm.org/D23498 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Re: [PATCH] D23353: [clang-tidy] Add check 'misc-use-after-move'

2016-08-16 Thread Martin Böhme via cfe-commits
mboehme marked 9 inline comments as done. Comment at: clang-tidy/misc/UseAfterMoveCheck.cpp:493 @@ +492,3 @@ +if (!S) + continue; + For some reason, I thought I had read that they weren't compatible with CFG / CFGBlock -- but obviously I must have been i

Re: [PATCH] D23353: [clang-tidy] Add check 'misc-use-after-move'

2016-08-16 Thread Martin Böhme via cfe-commits
mboehme marked 4 inline comments as done. mboehme added a comment. In https://reviews.llvm.org/D23353#511362, @Prazek wrote: > I will review it later, but my first thoughts: > > 1. I think we should make some other group, because misc seems to be > overloaded. I discussed it with Alex months ago

Re: [PATCH] D7511: [libc++] Change how CMake links libc++ with OS X.

2016-08-16 Thread Eric Fiselier via cfe-commits
EricWF abandoned this revision. EricWF added a comment. Abandoning https://reviews.llvm.org/D7511 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Re: [PATCH] D23498: Left shifts of negative values are defined if -fwrapv is set

2016-08-16 Thread Davide Italiano via cfe-commits
davide added a comment. The `Sema` bits look fine to me. I'll let Filipe comment on the sanitizer part. https://reviews.llvm.org/D23498 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commit

Re: [PATCH] D23498: Left shifts of negative values are defined if -fwrapv is set

2016-08-16 Thread Filipe Cabecinhas via cfe-commits
LGTM. Thank you, Filipe On Tue, Aug 16, 2016 at 10:23 AM, Davide Italiano wrote: > davide added a comment. > > The `Sema` bits look fine to me. I'll let Filipe comment on the sanitizer > part. > > > https://reviews.llvm.org/D23498 > > > ___ cfe-comm

Re: [PATCH] D23353: [clang-tidy] Add check 'misc-use-after-move'

2016-08-16 Thread Kirill Bobyrev via cfe-commits
omtcyfz added a subscriber: omtcyfz. Comment at: clang-tidy/misc/UseAfterMoveCheck.cpp:659 @@ +658,3 @@ + UseAfterMove Use; + if (finder.find(FunctionBody, MovingCall, MovedVariable, &Use)) { +emitDiagnostic(MovingCall, MovedVariable, Use, this, Result.Context);

r278786 - Left shifts of negative values are defined if -fwrapv is set

2016-08-16 Thread James Molloy via cfe-commits
Author: jamesm Date: Tue Aug 16 04:45:36 2016 New Revision: 278786 URL: http://llvm.org/viewvc/llvm-project?rev=278786&view=rev Log: Left shifts of negative values are defined if -fwrapv is set This means we shouldn't emit ubsan detection code or warn. Fixes PR25552. Added: cfe/trunk/test/Co

Re: [PATCH] D23498: Left shifts of negative values are defined if -fwrapv is set

2016-08-16 Thread James Molloy via cfe-commits
jmolloy accepted this revision. jmolloy added a reviewer: jmolloy. jmolloy added a comment. This revision is now accepted and ready to land. Thanks, r278786! https://reviews.llvm.org/D23498 ___ cfe-commits mailing list cfe-commits@lists.llvm.org htt

[PATCH] D23544: [clang-tidy] readability-implicit-bool-cast forgets to store its options.

2016-08-16 Thread Haojian Wu via cfe-commits
hokein created this revision. hokein added a reviewer: alexfh. hokein added a subscriber: cfe-commits. https://reviews.llvm.org/D23544 Files: clang-tidy/readability/ImplicitBoolCastCheck.cpp clang-tidy/readability/ImplicitBoolCastCheck.h Index: clang-tidy/readability/ImplicitBoolCastCheck.h

Nomination for 3.9: r278786 - Left shifts of negative values are defined if -fwrapv is set

2016-08-16 Thread James Molloy via cfe-commits
Hi Hans, [cc. Richard as code owner] I'd like to nominate this commit for 3.9. The actual code churn is tiny, and this fixes a problem noticed by and causing pain to the qemu project. Cheers, James On Tue, 16 Aug 2016 at 10:53 James Molloy via cfe-commits < cfe-commits@lists.llvm.org> wrote:

Re: [PATCH] D23544: [clang-tidy] readability-implicit-bool-cast forgets to store its options.

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

Re: [PATCH] D23544: [clang-tidy] readability-implicit-bool-cast forgets to store its options.

2016-08-16 Thread Alexander Kornienko via cfe-commits
alexfh added inline comments. Comment at: clang-tidy/readability/ImplicitBoolCastCheck.h:25 @@ -24,3 +24,3 @@ public: ImplicitBoolCastCheck(StringRef Name, ClangTidyContext *Context) : ClangTidyCheck(Name, Context), BTW, could you move the constructor b

[PATCH] D23546: Remove excessive padding from LineNoCacheTy

2016-08-16 Thread Alexander Shaposhnikov via cfe-commits
alexshap created this revision. alexshap added a reviewer: lattner. alexshap added a subscriber: cfe-commits. alexshap changed the visibility of this Differential Revision from "Public (No Login Required)" to "All Users". The struct LineNoCacheTy is in SourceMgr.cpp inside anonymous namespace. Th

Re: [PATCH] D23546: Remove excessive padding from LineNoCacheTy

2016-08-16 Thread Alexander Shaposhnikov via cfe-commits
alexshap added a comment. F2274214: Screen Shot 2016-08-16 at 3.34.00 AM.png https://reviews.llvm.org/D23546 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/

Re: [PATCH] D23086: [OpenCL] Generate concrete struct type for ndrange_t

2016-08-16 Thread Anastasia Stulova via cfe-commits
Anastasia added a comment. In https://reviews.llvm.org/D23086#515590, @yaxunl wrote: > In https://reviews.llvm.org/D23086#515506, @Anastasia wrote: > > > > > > > > > Surely vendors can re-implement all OpenCL types with an implicit typedef. > > For example this would just work: > > > > > > ty

Re: [PATCH] D23544: [clang-tidy] readability-implicit-bool-cast forgets to store its options.

2016-08-16 Thread Haojian Wu via cfe-commits
hokein updated this revision to Diff 68154. hokein added a comment. Move ctor body to .cpp file. https://reviews.llvm.org/D23544 Files: clang-tidy/readability/ImplicitBoolCastCheck.cpp clang-tidy/readability/ImplicitBoolCastCheck.h Index: clang-tidy/readability/ImplicitBoolCastCheck.h

Re: [PATCH] D23544: [clang-tidy] readability-implicit-bool-cast forgets to store its options.

2016-08-16 Thread Haojian Wu via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL278791: [clang-tidy] readability-implicit-bool-cast forgets to store its options. (authored by hokein). Changed prior to commit: https://reviews.llvm.org/D23544?vs=68154&id=68158#toc Repository: rL L

[clang-tools-extra] r278791 - [clang-tidy] readability-implicit-bool-cast forgets to store its options.

2016-08-16 Thread Haojian Wu via cfe-commits
Author: hokein Date: Tue Aug 16 06:15:05 2016 New Revision: 278791 URL: http://llvm.org/viewvc/llvm-project?rev=278791&view=rev Log: [clang-tidy] readability-implicit-bool-cast forgets to store its options. Reviewers: alexfh Subscribers: cfe-commits Differential Revision: https://reviews.llvm.o

Re: [PATCH] D15227: [analyzer] Valist checkers.

2016-08-16 Thread Gábor Horváth via cfe-commits
xazax.hun updated this revision to Diff 68157. xazax.hun marked 5 inline comments as done. xazax.hun added a comment. - Improvements according to review comments. https://reviews.llvm.org/D15227 Files: include/clang/StaticAnalyzer/Checkers/Checkers.td lib/StaticAnalyzer/Checkers/CMakeLists.

Re: [PATCH] D23284: Add -Rpass-with-hotness

2016-08-16 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. This LGTM, but you should wait for confirmation on the behavior of the R_Group behavior from @dnovillo or @rsmith before committing. https://reviews.llvm.org/D23284 _

Re: [PATCH] D23528: [OpenMP] Sema and parsing for 'teams distribute simd' pragma

2016-08-16 Thread Alexey Bataev via cfe-commits
ABataev requested changes to this revision. ABataev added a comment. This revision now requires changes to proceed. No tests for serialization/deserialization/AST printing https://reviews.llvm.org/D23528 ___ cfe-commits mailing list cfe-commits@list

[PATCH] D23550: [analyzer] Small cleanups when checkers retrieving statements from exploded nodes.

2016-08-16 Thread Gábor Horváth via cfe-commits
xazax.hun created this revision. xazax.hun added reviewers: zaks.anna, dcoughlin, NoQ. xazax.hun added a subscriber: cfe-commits. Small cleanup to utilize PathDiagnosticLocation::getStmt where appropriate. https://reviews.llvm.org/D23550 Files: lib/StaticAnalyzer/Checkers/DynamicTypeChecker.cp

Re: [PATCH] D22515: [analyzer] Added custom hashing to the CloneDetector.

2016-08-16 Thread Raphael Isemann via cfe-commits
teemperor updated this revision to Diff 68170. teemperor added a comment. - Renamed FoldingSetWrapper to FoldingSetNodeIDWrapper - Added missing // end anonymous namespace https://reviews.llvm.org/D22515 Files: include/clang/Analysis/CloneDetection.h lib/Analysis/CloneDetection.cpp lib/St

Re: [PATCH] D22220: [clang-tidy] Add check 'misc-move-forwarding-reference'

2016-08-16 Thread Aaron Ballman via cfe-commits
aaron.ballman added inline comments. Comment at: clang-tidy/misc/MoveForwardingReferenceCheck.cpp:46-56 @@ +45,13 @@ +// std::move(). This will hopefully prevent erroneous replacements if the +// code does unusual things (e.g. create an alias for std::move() in +// ano

Re: [PATCH] D22515: [analyzer] Added custom hashing to the CloneDetector.

2016-08-16 Thread Raphael Isemann via cfe-commits
teemperor marked 2 inline comments as done. teemperor added a comment. https://reviews.llvm.org/D22515 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Re: [PATCH] D23427: [Clang-tidy] Comparison Misuse

2016-08-16 Thread Aaron Ballman via cfe-commits
aaron.ballman added a comment. Thank you for working on this check! We already have a frontend diagnostic for comparisons between string literals and pointers, so I'm not certain of the utility of adding a clang-tidy check for that case (see -Wstring-compare, aka, http://coliru.stacked-crooked

StaticAnalyzer: Fix GCC 6 indention warning in ArrayBoundCheckerV2.cpp

2016-08-16 Thread Christoph Grüninger via cfe-commits
Dear Clang developers, please find attached a tiny patch which fixes a indentation warning from GCC 6 within ArrayBoundCheckerV2.cpp Proposed commit message: > StaticAnalyzer: Fix GCC 6 indention warning in ArrayBoundCheckerV2.cpp > > Patch by Christoph Grüninger Bye Christoph Index: lib/StaticAn

Re: [PATCH] D23343: [clang-tidy] modernize-make-{smart_ptr} private ctor bugfix

2016-08-16 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 with one minor nit (you can fix it during the commit). Comment at: clang-tidy/modernize/MakeSmartPtrCheck.cpp:35 @@ +34,3 @@ + auto CanCallCtor = unless(ha

[PATCH] D23555: [analyzer] CloneDetector now checks template arguments of function calls.

2016-08-16 Thread Raphael Isemann via cfe-commits
teemperor created this revision. teemperor added reviewers: v.g.vassilev, NoQ. teemperor added a subscriber: cfe-commits. The CloneDetector currently ignores template arguments in function calls which leads to false-positive clones such as `isa(S)` and `isa(S)`. This patch adds functionality to

Re: [PATCH] D23533: [clang-tidy] Rewrite compilation database test to not require shell

2016-08-16 Thread Alexander Kornienko via cfe-commits
alexfh added inline comments. Comment at: test/clang-tidy/clang-tidy-run-with-database.cpp:11 @@ -10,3 @@ -// RUN: echo '#include "header.h"' > %T/compilation-database-test/b/d.cpp -// RUN: sed 's|test_dir|%T/compilation-database-test|g' %S/Inputs/compilation-database/template.js

Re: [PATCH] D22515: [analyzer] Added custom hashing to the CloneDetector.

2016-08-16 Thread Raphael Isemann via cfe-commits
teemperor planned changes to this revision. teemperor added a comment. - As the hash_stream patch will take a while to land upstream, we will change this to use FoldingSetNodeID and change it to hash_stream once that landed. https://reviews.llvm.org/D22515 ___

r278806 - Add empty --gcc-toolchain empty to cuda-detect test.

2016-08-16 Thread Samuel Antao via cfe-commits
Author: sfantao Date: Tue Aug 16 09:31:39 2016 New Revision: 278806 URL: http://llvm.org/viewvc/llvm-project?rev=278806&view=rev Log: Add empty --gcc-toolchain empty to cuda-detect test. Unless we overload the default gcc toolchain with an empty string the system root used in the tests will be i

r278811 - Reorder stderr redirection in test command.

2016-08-16 Thread Samuel Antao via cfe-commits
Author: sfantao Date: Tue Aug 16 09:38:39 2016 New Revision: 278811 URL: http://llvm.org/viewvc/llvm-project?rev=278811&view=rev Log: Reorder stderr redirection in test command. Modified: cfe/trunk/test/Driver/cuda-detect.cu Modified: cfe/trunk/test/Driver/cuda-detect.cu URL: http://llvm.or

r278812 - Reduce the number of allocations required for AST attributes. In test cases, the max resident memory changed from 65760k to 64476k which is 1.9% improvement. Allocations in grow_pod changed

2016-08-16 Thread Aaron Ballman via cfe-commits
Author: aaronballman Date: Tue Aug 16 09:48:39 2016 New Revision: 278812 URL: http://llvm.org/viewvc/llvm-project?rev=278812&view=rev Log: Reduce the number of allocations required for AST attributes. In test cases, the max resident memory changed from 65760k to 64476k which is 1.9% improvement.

Re: [PATCH] D23329: [NFC] Reducing allocations in AST attributes

2016-08-16 Thread Aaron Ballman via cfe-commits
aaron.ballman added a subscriber: aaron.ballman. aaron.ballman closed this revision. aaron.ballman added a comment. Thank you! I've commit in r278812. https://reviews.llvm.org/D23329 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lis

Re: [PATCH] D15332: new clang-tidy checker readability-non-const-parameter

2016-08-16 Thread Alexander Kornienko via cfe-commits
alexfh requested changes to this revision. This revision now requires changes to proceed. Comment at: clang-tidy/readability/NonConstParameterCheck.cpp:95-98 @@ +94,6 @@ +const QualType T = VD->getType(); +if (T->isPointerType() && !T->getPointeeType().isConstQualified())

Re: [PATCH] D22515: [analyzer] Added custom hashing to the CloneDetector.

2016-08-16 Thread Vassil Vassilev via cfe-commits
v.g.vassilev accepted this revision. v.g.vassilev added a comment. LGTM. https://reviews.llvm.org/D22515 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Re: [PATCH] D23462: Emit debug info for dynamic classes if they are imported from a DLL

2016-08-16 Thread Reid Kleckner via cfe-commits
rnk added inline comments. Comment at: lib/CodeGen/CGDebugInfo.cpp:1688-1689 @@ -1687,3 +1687,4 @@ - if (CXXDecl->hasDefinition() && CXXDecl->isDynamicClass()) + if (CXXDecl->hasDefinition() && CXXDecl->isDynamicClass() && + !CXXDecl->hasAttr()) return true;

Re: [PATCH] D23531: [Darwin] Stop linking libclang_rt.eprintf.a

2016-08-16 Thread Daniel Dunbar via cfe-commits
The original motivation for organizing things this way was to try and always be in the situation where, when linking against the latest deployment target, we should never need the extra library (because the content will be present in libSystem). This is useful in helping to ensure we don't unnecess

Re: [PATCH] D23086: [OpenCL] Generate concrete struct type for ndrange_t

2016-08-16 Thread Yaxun Liu via cfe-commits
yaxunl added a comment. In https://reviews.llvm.org/D23086#516365, @Anastasia wrote: > Why not to just identify the type by the name? It seems much easier and also > gives flexibility to implement the type in different ways if needed. > Considering that similar approach is already used for some

Re: [PATCH] D23546: Remove excessive padding from LineNoCacheTy

2016-08-16 Thread Chris Lattner via cfe-commits
lattner resigned from this revision. lattner removed a reviewer: lattner. lattner added a comment. Seems obvious to me, but it would be best to find another reviewer, I haven't worked on this code for some time. https://reviews.llvm.org/D23546 ___

r278814 - Revert "[X86] Add xgetbv/x[X86] Add xgetbv xsetbv intrinsics to non-windows platforms"

2016-08-16 Thread Reid Kleckner via cfe-commits
Author: rnk Date: Tue Aug 16 11:04:14 2016 New Revision: 278814 URL: http://llvm.org/viewvc/llvm-project?rev=278814&view=rev Log: Revert "[X86] Add xgetbv/x[X86] Add xgetbv xsetbv intrinsics to non-windows platforms" This reverts commit r278783. It breaks usage of _xgetbv on Windows. Modified:

Re: r278783 - [X86] Add xgetbv/x[X86] Add xgetbv xsetbv intrinsics to non-windows platforms

2016-08-16 Thread Reid Kleckner via cfe-commits
Reverted in r278814, it appears to break usage of _xgetbv on Windows: https://build.chromium.org/p/chromium.fyi/builders/ClangToTWin%28dll%29/builds/5846/steps/compile/logs/stdio ../../base/cpu.cc(194,10): error: use of undeclared identifier '_xgetbv' (_xgetbv(0) & 6) == 6 /* XSAVE enabled

[clang-tools-extra] r278815 - Remove most instances of REQUIRES: shell from the tools/extra tests

2016-08-16 Thread Reid Kleckner via cfe-commits
Author: rnk Date: Tue Aug 16 11:07:46 2016 New Revision: 278815 URL: http://llvm.org/viewvc/llvm-project?rev=278815&view=rev Log: Remove most instances of REQUIRES: shell from the tools/extra tests None of these tests actually require bash, they just have quoting bugs when paths contain backslash

Re: [PATCH] D21959: [X86] Add xgetbv xsetbv intrinsics

2016-08-16 Thread Reid Kleckner via cfe-commits
rnk added a subscriber: rnk. rnk added a comment. Reverted in r278814, it appears to break usage of _xgetbv on Windows: https://build.chromium.org/p/chromium.fyi/builders/ClangToTWin%28dll%29/builds/5846/steps/compile/logs/stdio ../../base/cpu.cc(194,10): error: use of undeclared identifier '_xge

Re: [PATCH] D23455: [Tooling] Parse compilation database command lines properly on Windows

2016-08-16 Thread Alexander Kornienko via cfe-commits
alexfh added a comment. In https://reviews.llvm.org/D23455#515527, @rnk wrote: > In https://reviews.llvm.org/D23455#515486, @brad.king wrote: > > > > the feasibility of emitting 'arguments' instead of 'command' into the > > > JSON compilation database. > > > > > > CMake constructs the command li

Re: [PATCH] D23455: [Tooling] Parse compilation database command lines properly on Windows

2016-08-16 Thread Alexander Kornienko via cfe-commits
alexfh added a comment. Adding Aaron, since he seems to have interest in Windows support for clang-tidy. https://reviews.llvm.org/D23455 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commi

Re: r278763 - PR28978: If we need overload resolution for the move constructor of an

2016-08-16 Thread Hans Wennborg via cfe-commits
r278817. Many thanks. On Mon, Aug 15, 2016 at 5:36 PM, Richard Smith wrote: > Hi Hans, Eric Fiselier requested that we fix this bug for 3.9 (it affects > libc++'s std::optional implementation), so this would be a good candidate > for the branch. > > On Mon, Aug 15, 2016 at 5:13 PM, Richard Smith

RE: r278783 - [X86] Add xgetbv/x[X86] Add xgetbv xsetbv intrinsics to non-windows platforms

2016-08-16 Thread Yatsina, Marina via cfe-commits
Adding Guy, the author of this commit. From: Reid Kleckner [mailto:r...@google.com] Sent: Tuesday, August 16, 2016 19:14 To: Yatsina, Marina Cc: cfe-commits Subject: Re: r278783 - [X86] Add xgetbv/x[X86] Add xgetbv xsetbv intrinsics to non-windows platforms Reverted in r278814, it appears to b

Re: Nomination for 3.9: r278786 - Left shifts of negative values are defined if -fwrapv is set

2016-08-16 Thread Hans Wennborg via cfe-commits
Seems reasonable to me if Richard agrees. On Tue, Aug 16, 2016 at 3:01 AM, James Molloy wrote: > Hi Hans, > > [cc. Richard as code owner] > > I'd like to nominate this commit for 3.9. The actual code churn is tiny, and > this fixes a problem noticed by and causing pain to the qemu project. > > Ch

Re: [PATCH] D23455: [Tooling] Parse compilation database command lines properly on Windows

2016-08-16 Thread Zachary Turner via cfe-commits
zturner added a comment. In https://reviews.llvm.org/D23455#516753, @alexfh wrote: > In https://reviews.llvm.org/D23455#515527, @rnk wrote: > > > In https://reviews.llvm.org/D23455#515486, @brad.king wrote: > > > > > > the feasibility of emitting 'arguments' instead of 'command' into the > > > >

Re: [PATCH] D21134: clang-tidy: new check readability-misplaced-array-index

2016-08-16 Thread Alexander Kornienko via cfe-commits
alexfh requested changes to this revision. This revision now requires changes to proceed. Comment at: clang-tidy/readability/MisplacedArrayIndexCheck.cpp:56 @@ +55,3 @@ + if (hasMacroID(ArraySubscriptE) || + !Result.SourceManager->isWrittenInSameFile(ArraySubscriptE->getLoc

Re: Nomination for 3.9: r278786 - Left shifts of negative values are defined if -fwrapv is set

2016-08-16 Thread Aaron Ballman via cfe-commits
I'm not Richard, but I agree with merging it into 3.9 nonetheless. :-) ~Aaron On Tue, Aug 16, 2016 at 12:30 PM, Hans Wennborg via cfe-commits wrote: > Seems reasonable to me if Richard agrees. > > On Tue, Aug 16, 2016 at 3:01 AM, James Molloy wrote: >> Hi Hans, >> >> [cc. Richard as code owner]

Re: [PATCH] D23086: [OpenCL] Generate concrete struct type for ndrange_t

2016-08-16 Thread Anastasia Stulova via cfe-commits
Anastasia added a comment. In https://reviews.llvm.org/D23086#516741, @yaxunl wrote: > In https://reviews.llvm.org/D23086#516365, @Anastasia wrote: > > > Why not to just identify the type by the name? It seems much easier and > > also gives flexibility to implement the type in different ways if

r278826 - [ObjC] Warn on unguarded use of partial declaration

2016-08-16 Thread Erik Pilkington via cfe-commits
Author: epilk Date: Tue Aug 16 12:44:11 2016 New Revision: 278826 URL: http://llvm.org/viewvc/llvm-project?rev=278826&view=rev Log: [ObjC] Warn on unguarded use of partial declaration This commit adds a traversal of the AST after Sema of a function that diagnoses unguarded references to declarati

Re: [PATCH] D23003: [ObjC Availability] Warn upon unguarded use of partially available declaration

2016-08-16 Thread Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL278826: [ObjC] Warn on unguarded use of partial declaration (authored by epilk). Changed prior to commit: https://reviews.llvm.org/D23003?vs=67713&id=68218#toc Repository: rL LLVM https://reviews.ll

Re: [PATCH] D23455: [Tooling] Parse compilation database command lines properly on Windows

2016-08-16 Thread Manuel Klimek via cfe-commits
klimek added a reviewer: diltsman. klimek added a comment. +Daniel dilts who wrote the arguments support One problem is that getting into the game of parsing arbitrary shell modes is rather ugly. https://reviews.llvm.org/D23455 ___ cfe-commits mai

Re: [PATCH] D23462: Emit debug info for dynamic classes if they are imported from a DLL

2016-08-16 Thread Adrian McCarthy via cfe-commits
amccarth updated this revision to Diff 68225. amccarth added a comment. Add comment as requested. https://reviews.llvm.org/D23462 Files: lib/CodeGen/CGDebugInfo.cpp test/CodeGenCXX/debug-info-dllimport-base-class.cpp Index: test/CodeGenCXX/debug-info-dllimport-base-class.cpp ==

Re: [PATCH] D23462: Emit debug info for dynamic classes if they are imported from a DLL

2016-08-16 Thread Adrian McCarthy via cfe-commits
amccarth added inline comments. Comment at: lib/CodeGen/CGDebugInfo.cpp:1688-1689 @@ -1687,3 +1687,4 @@ - if (CXXDecl->hasDefinition() && CXXDecl->isDynamicClass()) + if (CXXDecl->hasDefinition() && CXXDecl->isDynamicClass() && + !CXXDecl->hasAttr()) return true; ---

[PATCH] D23573: [OpenCL] Add extension cl_khr_subgroups to clang

2016-08-16 Thread Aaron En Ye Shi via cfe-commits
ashi1 created this revision. ashi1 added reviewers: yaxunl, Anastasia. ashi1 added a subscriber: cfe-commits. ashi1 set the repository for this revision to rL LLVM. Adding extension cl_khr_subgroups to clang's OpenCL Extensions and initiated inside AMDGPU Target. Similar to https://reviews.llvm.o

Re: [PATCH] D23531: [Darwin] Stop linking libclang_rt.eprintf.a

2016-08-16 Thread Chris Bieneman via cfe-commits
Today, the code includes the eprintf archive on all linker invocations for i386 that include the OS X archive. Removing the eprintf library from the command and including eprintf only for i386 in the OS X archive should be equivalent to what we have today. -Chris > On Aug 16, 2016, at 8:27 AM,

Re: [PATCH] D23375: Add kfree( ) to MallocChecker.cpp

2016-08-16 Thread Devin Coughlin via cfe-commits
dcoughlin added a comment. I would recommend putting the tests in existing test files next to tests that for similar diagnostics for other allocation/free schemes. So the test for printExpectedAllocName() should go in test/Analysis/free.c and the test for printExpectedDeallocName() should proba

Re: [PATCH] D23546: Remove excessive padding from LineNoCacheTy

2016-08-16 Thread Benjamin Kramer via cfe-commits
bkramer accepted this revision. bkramer added a comment. This revision is now accepted and ready to land. looks good, thanks. Do you have commit access? https://reviews.llvm.org/D23546 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://l

Re: [PATCH] D23546: Remove excessive padding from LineNoCacheTy

2016-08-16 Thread Alexander Shaposhnikov via cfe-commits
alexshap added a comment. Thanks, no, i don't. I will be grateful to you if you land this patch. https://reviews.llvm.org/D23546 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Re: [PATCH] D23361: [OpenCL] AMDGCN: Fix size_t type

2016-08-16 Thread Yaxun Liu via cfe-commits
yaxunl added inline comments. Comment at: lib/CodeGen/CodeGenModule.cpp:101 @@ -100,3 +100,3 @@ DoubleTy = llvm::Type::getDoubleTy(LLVMContext); PointerWidthInBits = C.getTargetInfo().getPointerWidth(0); PointerAlignInBytes = joey wrote: > What if you cre

Re: [PATCH] D23555: [analyzer] CloneDetector now checks template arguments of function calls.

2016-08-16 Thread Artem Dergachev via cfe-commits
NoQ added inline comments. Comment at: lib/Analysis/CloneDetection.cpp:154 @@ -153,2 +153,3 @@ // Function pointers don't have a callee and we just skip hashing it. -if (S->getDirectCallee()) +if (S->getDirectCallee()) { + // If the function is a template instant

Re: [PATCH] D23546: Remove excessive padding from LineNoCacheTy

2016-08-16 Thread Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL278838: Remove excessive padding from LineNoCacheTy (authored by d0k). Changed prior to commit: https://reviews.llvm.org/D23546?vs=68153&id=68240#toc Repository: rL LLVM https://reviews.llvm.org/D23

Re: [PATCH] D23361: [OpenCL] AMDGCN: Fix size_t type

2016-08-16 Thread Yaxun Liu via cfe-commits
yaxunl updated this revision to Diff 68241. yaxunl added a comment. Remove language dependency. Choose proper integer types for pointer arithmetic. https://reviews.llvm.org/D23361 Files: include/clang/Basic/TargetInfo.h lib/Basic/TargetInfo.cpp lib/Basic/Targets.cpp lib/CodeGen/CGExprSc

Re: [PATCH] D23573: [OpenCL] Add extension cl_khr_subgroups to clang

2016-08-16 Thread Yaxun Liu via cfe-commits
yaxunl accepted this revision. yaxunl added a comment. This revision is now accepted and ready to land. LGTM. Thanks! Better update the title to be `[OpenCL] AMDGPU: add support of cl_khr_subgroups` since cl_khr_subgroups is already in clang. Repository: rL LLVM https://reviews.llvm.org/D23

Re: [PATCH] D22794: [Sema] Propagate nullability when deducing type of auto

2016-08-16 Thread Akira Hatanaka via cfe-commits
ahatanak added a comment. I didn't think of this case, but no, it isn't a good idea. We shouldn't issue a warning unless we know the returned pointer is nullable. Comment at: lib/Sema/SemaDecl.cpp:9739 @@ +9738,3 @@ + DeducedType = DeducedType.setNullability( + In

r278842 - Try to work around an MSVC 2013 bug around defaulted default ctors

2016-08-16 Thread Reid Kleckner via cfe-commits
Author: rnk Date: Tue Aug 16 15:20:56 2016 New Revision: 278842 URL: http://llvm.org/viewvc/llvm-project?rev=278842&view=rev Log: Try to work around an MSVC 2013 bug around defaulted default ctors An UnresolvedSetIterator() is supposed to be zeroed out, but MSVC 2013 does not do that. Modified:

Re: [PATCH] D23536: Remove excessive padding from ImmOp and RegOp.

2016-08-16 Thread Matt Arsenault via cfe-commits
arsenm closed this revision. arsenm added a comment. r278844 https://reviews.llvm.org/D23536 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Re: [PATCH] D23361: [OpenCL] AMDGCN: Fix size_t type

2016-08-16 Thread Matt Arsenault via cfe-commits
arsenm added inline comments. Comment at: lib/CodeGen/CodeGenModule.h:664 @@ +663,3 @@ + /// Get integer type of the same size as a pointer type. + llvm::IntegerType *getIntPtrTy(llvm::PointerType *PT); + This has the same purpose as DataLayout::getIntPtrType, s

r278850 - [CMake] Fixing typo in Info.plist generation

2016-08-16 Thread Chris Bieneman via cfe-commits
Author: cbieneman Date: Tue Aug 16 15:49:49 2016 New Revision: 278850 URL: http://llvm.org/viewvc/llvm-project?rev=278850&view=rev Log: [CMake] Fixing typo in Info.plist generation This is causing an error in the generation of the clang info plist. Modified: cfe/trunk/tools/driver/Info.plist

r278851 - [OpenCL] AMDGPU: Add extensions cl_amd_media_ops and cl_amd_media_ops2

2016-08-16 Thread Yaxun Liu via cfe-commits
Author: yaxunl Date: Tue Aug 16 15:49:49 2016 New Revision: 278851 URL: http://llvm.org/viewvc/llvm-project?rev=278851&view=rev Log: [OpenCL] AMDGPU: Add extensions cl_amd_media_ops and cl_amd_media_ops2 Differential Revision: https://reviews.llvm.org/D23322 Modified: cfe/trunk/include/clang

Re: [PATCH] D23322: [OpenCL] AMDGPU: Add extensions cl_amd_media_ops and cl_amd_media_ops2

2016-08-16 Thread Yaxun Liu via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL278851: [OpenCL] AMDGPU: Add extensions cl_amd_media_ops and cl_amd_media_ops2 (authored by yaxunl). Changed prior to commit: https://reviews.llvm.org/D23322?vs=67358&id=68250#toc Repository: rL LLVM

r278849 - [CMake] [Apple Cache] Set CLANG_VENDOR_UTI for Apple builds

2016-08-16 Thread Chris Bieneman via cfe-commits
Author: cbieneman Date: Tue Aug 16 15:44:58 2016 New Revision: 278849 URL: http://llvm.org/viewvc/llvm-project?rev=278849&view=rev Log: [CMake] [Apple Cache] Set CLANG_VENDOR_UTI for Apple builds This is just a minor update to the Apple packaging configuration. Modified: cfe/trunk/cmake/cach

Re: r266775 - Pass dwarf-version to cc1as.

2016-08-16 Thread Dimitry Andric via cfe-commits
Hi Hans, Can we please merge this one to release_39 too? I forgot all about it, sorry. Doug, can you please approve? -Dimitry > On 19 Apr 2016, at 19:43, Douglas Katzman via cfe-commits > wrote: > > Author: dougk > Date: Tue Apr 19 12:43:54 2016 > New Revision: 266775 > > URL: http://llvm.

[PATCH] D23581: [GraphWriter] Change GraphWriter to use NodeRef in GraphTraits

2016-08-16 Thread Tim Shen via cfe-commits
timshen created this revision. timshen added a reviewer: dblaikie. timshen added a subscriber: cfe-commits. Corresponding LLVM patch: D23580 https://reviews.llvm.org/D23581 Files: lib/Serialization/ModuleManager.cpp Index: lib/Serialization/ModuleManager.cpp ==

Re: [PATCH] D23462: Emit debug info for dynamic classes if they are imported from a DLL

2016-08-16 Thread Reid Kleckner via cfe-commits
rnk accepted this revision. rnk added a comment. This revision is now accepted and ready to land. lgtm https://reviews.llvm.org/D23462 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Re: [PATCH] D9403: llvm.noalias - Clang CodeGen for local restrict-qualified pointers

2016-08-16 Thread Hal Finkel via cfe-commits
hfinkel added inline comments. Comment at: lib/CodeGen/CGStmt.cpp:537 @@ +536,3 @@ + llvm::LLVMContext::MD_noalias), + NewScopeList)); + rjmccall wrote: > This is a very strange representati

Re: [PATCH] D22929: [CodeGen][ObjC] Fix infinite recursion in getObjCEncodingForTypeImpl

2016-08-16 Thread Akira Hatanaka via cfe-commits
ahatanak added inline comments. Comment at: test/CodeGenObjCXX/encode.mm:231 @@ +230,3 @@ +struct S { + typedef T Ty; + Ty *t; manmanren wrote: > I wonder if we can further reduce the testing case. Is this necessary to > cause the infinite recursion? Yes. If I

Re: [PATCH] D9403: llvm.noalias - Clang CodeGen for local restrict-qualified pointers

2016-08-16 Thread John McCall via cfe-commits
rjmccall added inline comments. Comment at: lib/CodeGen/CGStmt.cpp:525 @@ +524,3 @@ +void CodeGenFunction::LexicalNoAliasInfo::addNoAliasMD() { + if (MemoryInsts.empty() || NoAliasScopes.empty()) +return; It's much more likely that NoAliasScopes will be empty

r278861 - Emit debug info for dynamic classes if they are imported from a DLL.

2016-08-16 Thread Adrian McCarthy via cfe-commits
Author: amccarth Date: Tue Aug 16 17:11:18 2016 New Revision: 278861 URL: http://llvm.org/viewvc/llvm-project?rev=278861&view=rev Log: Emit debug info for dynamic classes if they are imported from a DLL. With -debug-info-kind=limited, we omit debug info for dynamic classes that live in other TUs

r278862 - [CMake] Workflow improvements to PGO generation

2016-08-16 Thread Chris Bieneman via cfe-commits
Author: cbieneman Date: Tue Aug 16 17:16:29 2016 New Revision: 278862 URL: http://llvm.org/viewvc/llvm-project?rev=278862&view=rev Log: [CMake] Workflow improvements to PGO generation This patch adds a few new convenience options used by the PGO CMake cache to setup options on bootstrap stages.

Re: [PATCH] D23462: Emit debug info for dynamic classes if they are imported from a DLL

2016-08-16 Thread Adrian McCarthy via cfe-commits
amccarth closed this revision. amccarth added a comment. Closed by r278861 https://reviews.llvm.org/D23462 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Re: [PATCH] D23343: [clang-tidy] modernize-make-{smart_ptr} private ctor bugfix

2016-08-16 Thread Piotr Padlewski via cfe-commits
Prazek added inline comments. Comment at: clang-tidy/modernize/MakeSmartPtrCheck.cpp:35 @@ +34,3 @@ + auto CanCallCtor = unless(has(ignoringImpCasts(cxxConstructExpr( + hasDeclaration(decl(anyOf(isPrivate(), isProtected(; + aaron.ballman wrote: > Per

Re: [PATCH] D23343: [clang-tidy] modernize-make-{smart_ptr} private ctor bugfix

2016-08-16 Thread Aaron Ballman via cfe-commits
aaron.ballman added inline comments. Comment at: clang-tidy/modernize/MakeSmartPtrCheck.cpp:35 @@ +34,3 @@ + auto CanCallCtor = unless(has(ignoringImpCasts(cxxConstructExpr( + hasDeclaration(decl(anyOf(isPrivate(), isProtected(; + Prazek wrote: > aar

[PATCH] D23585: [ASTMatchers] Add narrowing matcher: hasExternalFormalLinkage

2016-08-16 Thread Visoiu Mistrih Francis via cfe-commits
thegameg created this revision. thegameg added reviewers: bkramer, alexfh, hokein. thegameg added a subscriber: cfe-commits. Herald added a subscriber: klimek. Matches NamedDecl nodes whose linkage is external. https://reviews.llvm.org/D23585 Files: docs/LibASTMatchersReference.html include/

Re: [PATCH] D23585: [ASTMatchers] Add narrowing matcher: hasExternalFormalLinkage

2016-08-16 Thread Aaron Ballman via cfe-commits
aaron.ballman added a subscriber: aaron.ballman. aaron.ballman added a reviewer: aaron.ballman. aaron.ballman added a comment. A few minor nits, but thank you for the patch! Comment at: include/clang/ASTMatchers/ASTMatchers.h:5481 @@ +5480,3 @@ +/// +/// Example matches only z (

Re: r266775 - Pass dwarf-version to cc1as.

2016-08-16 Thread Hans Wennborg via cfe-commits
Looks like it was committed back in April, so unless I'm missing something it should already be in the branch (which was cut mid-July). Thanks, Hans On Tue, Aug 16, 2016 at 2:16 PM, Dimitry Andric wrote: > Hi Hans, > > Can we please merge this one to release_39 too? I forgot all about it, sorry

Re: [PATCH] D22929: [CodeGen][ObjC] Fix infinite recursion in getObjCEncodingForTypeImpl

2016-08-16 Thread Manman Ren via cfe-commits
manmanren accepted this revision. manmanren added a reviewer: manmanren. manmanren added a comment. This revision is now accepted and ready to land. LGTM. Manman https://reviews.llvm.org/D22929 ___ cfe-commits mailing list cfe-commits@lists.llvm.or

Re: [PATCH] D23585: [ASTMatchers] Add narrowing matcher: hasExternalFormalLinkage

2016-08-16 Thread Visoiu Mistrih Francis via cfe-commits
thegameg marked an inline comment as done. thegameg added a comment. https://reviews.llvm.org/D23585 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Re: [PATCH] D23585: [ASTMatchers] Add narrowing matcher: hasExternalFormalLinkage

2016-08-16 Thread Visoiu Mistrih Francis via cfe-commits
thegameg marked an inline comment as done. thegameg added a comment. https://reviews.llvm.org/D23585 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Re: [PATCH] D23585: [ASTMatchers] Add narrowing matcher: hasExternalFormalLinkage

2016-08-16 Thread Visoiu Mistrih Francis via cfe-commits
thegameg updated this revision to Diff 68288. thegameg added a comment. Mention UniqueExternalLinkage type, add a test according to it. `EXPECT_FALSE(matches(` -> `EXPECT_TRUE(notMatches(` https://reviews.llvm.org/D23585 Files: include/clang/ASTMatchers/ASTMatchers.h unittests/ASTMatchers/A

  1   2   >