[clang-tools-extra] r278099 - [clang-rename] fix bug with initializer lists

2016-08-09 Thread Kirill Bobyrev via cfe-commits
Author: omtcyfz Date: Tue Aug 9 02:14:48 2016 New Revision: 278099 URL: http://llvm.org/viewvc/llvm-project?rev=278099&view=rev Log: [clang-rename] fix bug with initializer lists Clang-rename is currently not able to find a symbol in initializer list. This patch fixes described issue. Reviewers

Re: [PATCH] D23193: [clang-rename] fix bug with initializer lists

2016-08-09 Thread Kirill Bobyrev via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL278099: [clang-rename] fix bug with initializer lists (authored by omtcyfz). Changed prior to commit: https://reviews.llvm.org/D23193?vs=67289&id=67290#toc Repository: rL LLVM https://reviews.llvm.o

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

2016-08-09 Thread Daniel Marjamäki via cfe-commits
danielmarjamaki marked an inline comment as done. danielmarjamaki added a comment. In https://reviews.llvm.org/D21134#508511, @aaron.ballman wrote: > Is there a reason we don't want this check to be a part of the clang > frontend, rather than as a clang-tidy check? I discussed this with fronte

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

2016-08-09 Thread Daniel Marjamäki via cfe-commits
danielmarjamaki added a comment. In https://reviews.llvm.org/D21134#508524, @jroelofs wrote: > I think the replacement is wrong for something like: > > int *arr; int offs1, offs2; > offs1[arr + offs2] = 42; > > > which I think would give: > > int *arr; int offs1, offs2; > arr + offs2[offs

Re: [PATCH] D23257: Fix clang-tidy crash when a single fix is applied on multiple files.

2016-08-09 Thread Eric Liu via cfe-commits
ioeric updated this revision to Diff 67292. ioeric marked 4 inline comments as done. ioeric added a comment. - Nits fixed https://reviews.llvm.org/D23257 Files: clang-tidy/ClangTidy.cpp clang-tidy/ClangTidyDiagnosticConsumer.cpp clang-tidy/ClangTidyDiagnosticConsumer.h test/clang-tidy/I

[clang-tools-extra] r278101 - Fix clang-tidy crash when a single fix is applied on multiple files.

2016-08-09 Thread Eric Liu via cfe-commits
Author: ioeric Date: Tue Aug 9 02:54:49 2016 New Revision: 278101 URL: http://llvm.org/viewvc/llvm-project?rev=278101&view=rev Log: Fix clang-tidy crash when a single fix is applied on multiple files. Summary: tooling::Replacements only holds replacements for a single file, so this patch makes F

Re: [PATCH] D23257: Fix clang-tidy crash when a single fix is applied on multiple files.

2016-08-09 Thread Eric Liu via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL278101: Fix clang-tidy crash when a single fix is applied on multiple files. (authored by ioeric). Changed prior to commit: https://reviews.llvm.org/D23257?vs=67292&id=67293#toc Repository: rL LLVM

Re: [PATCH] D23266: [include-fixer] Support processing multiple files in one run.

2016-08-09 Thread Haojian Wu via cfe-commits
hokein updated this revision to Diff 67294. hokein added a comment. Update comments, don't mention absolute file path since this is no guarantee about that. https://reviews.llvm.org/D23266 Files: include-fixer/IncludeFixer.cpp include-fixer/IncludeFixer.h include-fixer/IncludeFixerContext

Re: [libcxxabi] r278058 - Do not depend on unwind when building standalone

2016-08-09 Thread Asiri Rathnayake via cfe-commits
He Petr, This commit (and #121757) have broken a couple of builders, see: http://lab.llvm.org:8011/builders/libcxx-libcxxabi-libunwind-x86_64-linux-debian/builds/135 We are also seeing this on our downstream builders. Cheers, / Asiri On Mon, Aug 8, 2016 at 11:09 PM, Petr Hosek via cfe-commits

[clang-tools-extra] r278102 - [include-fixer] Support processing multiple files in one run.

2016-08-09 Thread Haojian Wu via cfe-commits
Author: hokein Date: Tue Aug 9 03:26:19 2016 New Revision: 278102 URL: http://llvm.org/viewvc/llvm-project?rev=278102&view=rev Log: [include-fixer] Support processing multiple files in one run. Summary: Previously, if we pass multiple files or a file pattern (e.g. /path/to/*.cc) to include-fixer

Re: [PATCH] D23266: [include-fixer] Support processing multiple files in one run.

2016-08-09 Thread Haojian Wu via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL278102: [include-fixer] Support processing multiple files in one run. (authored by hokein). Changed prior to commit: https://reviews.llvm.org/D23266?vs=67294&id=67296#toc Repository: rL LLVM https:/

[PATCH] D23298: [clang-rename] nit: use isWritten

2016-08-09 Thread Alexander Shaposhnikov via cfe-commits
alexshap created this revision. alexshap added reviewers: omtcyfz, alexfh. alexshap added a subscriber: cfe-commits. alexshap changed the visibility of this Differential Revision from "Public (No Login Required)" to "All Users". nit: use isWritten and const auto *Initializer in NamedDeclFindingA

Re: [PATCH] D23272: [analyzer][Rewrite] Fix boxes and shadows in HTML rewrites in Firefox.

2016-08-09 Thread Artem Dergachev via cfe-commits
NoQ added inline comments. Comment at: lib/Rewrite/HTMLRewrite.cpp:304 @@ -303,2 +303,3 @@ + " border-radius:5px; box-shadow:1px 1px 7px #000; " " -webkit-border-radius:5px; -webkit-box-shadow:1px 1px 7px #000; " "position: absolute; top: -1em; l

Re: [PATCH] D23279: clang-reorder-fields

2016-08-09 Thread Kirill Bobyrev via cfe-commits
omtcyfz added a subscriber: omtcyfz. omtcyfz added a comment. In https://reviews.llvm.org/D23279#509047, @Eugene.Zelenko wrote: > May be this could be Clang-rename mode? Definitely not. I think this is in scope of `clang-tidy`. In https://reviews.llvm.org/D23279#509076, @compnerd wrote: > Th

Re: [PATCH] D23279: clang-reorder-fields

2016-08-09 Thread Kirill Bobyrev via cfe-commits
omtcyfz added a comment. And actually it makes much more sense for C than for C++. In C++ you just do `s/struct/class/g`, insert `public:` and you're golden. P.S. It actually breaks code. I haven't looked into that, but bar::Foo foo = { &x, 17, 1.29, 0 }; // CHECK: bar::Foo foo = { 1.29, 0, 1

Re: [PATCH] D23279: clang-reorder-fields

2016-08-09 Thread Manuel Klimek via cfe-commits
klimek added a comment. In https://reviews.llvm.org/D23279#509568, @omtcyfz wrote: > And actually it makes much more sense for C than for C++. In C++ you just do > `s/struct/class/g`, insert `public:` and you're golden. That doesn't work if you want to minimize object size, though? Repositor

Re: [PATCH] D23298: [clang-rename] nit: use isWritten

2016-08-09 Thread Kirill Bobyrev via cfe-commits
omtcyfz added a comment. Please fix the same thing @ `USRLocFinder.cpp:47`. Other than that, looks OK - a bit more readable. Thanks. https://reviews.llvm.org/D23298 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-b

Re: [PATCH] D23298: [clang-rename] nit: use isWritten

2016-08-09 Thread Alexander Shaposhnikov via cfe-commits
alexshap updated this revision to Diff 67301. alexshap added a comment. Fix clang-rename/USRLocFinder.cpp:47 as well https://reviews.llvm.org/D23298 Files: clang-rename/USRFinder.cpp clang-rename/USRLocFinder.cpp Index: clang-rename/USRLocFinder.cpp

Re: [PATCH] D23279: clang-reorder-fields

2016-08-09 Thread Kirill Bobyrev via cfe-commits
omtcyfz added a comment. In https://reviews.llvm.org/D23279#509567, @omtcyfz wrote: > In https://reviews.llvm.org/D23279#509047, @Eugene.Zelenko wrote: > > > May be this could be Clang-rename mode? > > > Definitely not. > > I think this is in scope of `clang-tidy`. > > In https://reviews.llvm.org

Re: [PATCH] D23279: clang-reorder-fields

2016-08-09 Thread Kirill Bobyrev via cfe-commits
omtcyfz added a comment. In https://reviews.llvm.org/D23279#509570, @klimek wrote: > In https://reviews.llvm.org/D23279#509568, @omtcyfz wrote: > > > And actually it makes much more sense for C than for C++. In C++ you just > > do `s/struct/class/g`, insert `public:` and you're golden. > > > Tha

Re: [PATCH] D23298: [clang-rename] nit: use isWritten

2016-08-09 Thread Kirill Bobyrev via cfe-commits
omtcyfz accepted this revision. omtcyfz added a comment. This revision is now accepted and ready to land. LGTM Thanks! Do you have a commit access or do you need me to land the patch? https://reviews.llvm.org/D23298 ___ cfe-commits mailing list cf

Re: [PATCH] D23298: [clang-rename] nit: use isWritten

2016-08-09 Thread Alexander Shaposhnikov via cfe-commits
alexshap added a comment. > Do you have a commit access or do you need me to land the patch? No, I don't. I will be grateful to you if you land the patch. Thanks. https://reviews.llvm.org/D23298 ___ cfe-commits mailing list cfe-commits@lists.llvm.

Re: [PATCH] D23298: [clang-rename] nit: use isWritten

2016-08-09 Thread Kirill Bobyrev via cfe-commits
omtcyfz added a comment. Sure. https://reviews.llvm.org/D23298 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

r278110 - [analyzer] Try to fix coverity CID 1360469.

2016-08-09 Thread Vassil Vassilev via cfe-commits
Author: vvassilev Date: Tue Aug 9 05:00:23 2016 New Revision: 278110 URL: http://llvm.org/viewvc/llvm-project?rev=278110&view=rev Log: [analyzer] Try to fix coverity CID 1360469. Patch by Raphael Isemann! Modified: cfe/trunk/lib/Analysis/CloneDetection.cpp Modified: cfe/trunk/lib/Analysis/

Re: [PATCH] D23279: clang-reorder-fields

2016-08-09 Thread Manuel Klimek via cfe-commits
klimek added a comment. In https://reviews.llvm.org/D23279#509606, @omtcyfz wrote: > In https://reviews.llvm.org/D23279#509567, @omtcyfz wrote: > > > In https://reviews.llvm.org/D23279#509047, @Eugene.Zelenko wrote: > > > > > May be this could be Clang-rename mode? > > > > > > Definitely not. > >

[clang-tools-extra] r278111 - Fix Wdocumentation unknown parameter warning

2016-08-09 Thread Simon Pilgrim via cfe-commits
Author: rksimon Date: Tue Aug 9 05:02:11 2016 New Revision: 278111 URL: http://llvm.org/viewvc/llvm-project?rev=278111&view=rev Log: Fix Wdocumentation unknown parameter warning Modified: clang-tools-extra/trunk/include-fixer/IncludeFixer.h Modified: clang-tools-extra/trunk/include-fixer/In

[clang-tools-extra] r278112 - [clang-rename] cleanup: use isWritten

2016-08-09 Thread Kirill Bobyrev via cfe-commits
Author: omtcyfz Date: Tue Aug 9 05:03:33 2016 New Revision: 278112 URL: http://llvm.org/viewvc/llvm-project?rev=278112&view=rev Log: [clang-rename] cleanup: use isWritten nit: use isWritten and const auto *Initializer in NamedDeclFindingASTVisitor::VisitCXXConstructorDecl method. Test plan: make

Re: [PATCH] D23298: [clang-rename] nit: use isWritten

2016-08-09 Thread Kirill Bobyrev via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL278112: [clang-rename] cleanup: use isWritten (authored by omtcyfz). Changed prior to commit: https://reviews.llvm.org/D23298?vs=67301&id=67309#toc Repository: rL LLVM https://reviews.llvm.org/D2329

Re: [PATCH] D23298: [clang-rename] nit: use isWritten

2016-08-09 Thread Kirill Bobyrev via cfe-commits
omtcyfz added a comment. FYI: I think the diff (accessible by `Download Raw Diff`) is corrupted for some reason; at least I don't see `Index: test/clang-rename/USRLocFinder.cpp` line in the end, which should be present, I guess. Repository: rL LLVM https://reviews.llvm.org/D23298 ___

Re: [PATCH] D23300: [analyzer] Add "Assuming..." diagnostic pieces for unsupported condition expressions.

2016-08-09 Thread Gábor Horváth via cfe-commits
xazax.hun added a comment. In case there is a more complex condition does it only highligh the part that influenced taking the branch? E.g.: if (a || b) { // HIghlight only a, if a was true and b was not evaluated } https://reviews.llvm.org/D23300 ___

Re: [PATCH] D10807: clang-format: Add SpaceAfterTemplate

2016-08-09 Thread Sylvestre Ledru via cfe-commits
sylvestre.ledru added a comment. To be clear, this is blocking Mozilla to use much more clang-format https://reviews.llvm.org/D10807 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Re: [PATCH] D10807: clang-format: Add SpaceAfterTemplate

2016-08-09 Thread Michael Rybakov via cfe-commits
opilarium added a comment. It's the huge deal for my company too. It would be nice if you reconsider. https://reviews.llvm.org/D10807 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Re: [PATCH] D10807: clang-format: Add SpaceAfterTemplate

2016-08-09 Thread Michael Rybakov via cfe-commits
opilarium added a comment. Can we just accept this merge request? It's backward compatible and helps Mozilla to adapt clang-format. https://reviews.llvm.org/D10807 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bi

Re: [PATCH] D10807: clang-format: Add SpaceAfterTemplate

2016-08-09 Thread Daniel Jasper via cfe-commits
djasper added a comment. I still believe it's wrong to care about this in particular, but I also don't want to hold clang-format hostage for my own beliefs. Obviously, enough people care and the costs are limited. Comment at: include/clang/Format/Format.h:356 @@ +355,3 @@ + /

Re: [PATCH] D10807: clang-format: Add SpaceAfterTemplate

2016-08-09 Thread Sylvestre Ledru via cfe-commits
sylvestre.ledru added a comment. Thanks. I am rebasing and updating the patch. I don't know if poiru is still around. https://reviews.llvm.org/D10807 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listi

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

2016-08-09 Thread Daniel Marjamäki via cfe-commits
danielmarjamaki updated this revision to Diff 67322. danielmarjamaki added a comment. take care of review comments https://reviews.llvm.org/D21134 Files: clang-tidy/readability/CMakeLists.txt clang-tidy/readability/MisplacedArrayIndexCheck.cpp clang-tidy/readability/MisplacedArrayIndexChe

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

2016-08-09 Thread Daniel Marjamäki via cfe-commits
danielmarjamaki marked 4 inline comments as done. danielmarjamaki added a comment. as far as I see the only unsolved review comment now is about macros. if it can be handled better. Comment at: clang-tidy/readability/MisplacedArrayIndexCheck.cpp:28-29 @@ +27,4 @@ +

Re: [PATCH] D21695: [clang] Version support for UBSan handlers

2016-08-09 Thread Filipe Cabecinhas via cfe-commits
filcab added a comment. Ping! https://reviews.llvm.org/D21695 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Re: [PATCH] D22725: [clang-tidy] Add check 'modernize-use-algorithm'

2016-08-09 Thread Aaron Ballman via cfe-commits
On Mon, Aug 8, 2016 at 11:36 PM, Piotr Padlewski wrote: > > > 2016-08-08 8:33 GMT-07:00 Aaron Ballman : >> >> aaron.ballman added inline comments. >> >> >> Comment at: clang-tidy/modernize/UseAlgorithmCheck.cpp:59-61 >> @@ +58,5 @@ >> + IncludeStyle(utils::IncludeSorter::pars

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

2016-08-09 Thread Aaron Ballman via cfe-commits
aaron.ballman added inline comments. Comment at: test/clang-tidy/readability-misplaced-array-index.cpp:31 @@ +30,3 @@ + x[10] = 0; + dostuff(0[0 + ABC]); +} Why is this considered to be "normal syntax" and not worth getting a diagnostic? https://reviews.llvm.o

Re: [PATCH] D10807: clang-format: Add SpaceAfterTemplate

2016-08-09 Thread Michael Rybakov via cfe-commits
opilarium added a comment. > Thanks. I am rebasing and updating the patch. Waiting for you. https://reviews.llvm.org/D10807 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Re: [PATCH] D18073: Add memory allocating functions

2016-08-09 Thread Aaron Ballman via cfe-commits
On Mon, Aug 8, 2016 at 8:13 PM, Alexander Riccio wrote: > ariccio added a comment. > > In https://reviews.llvm.org/D18073#504216, @dcoughlin wrote: > >> No. The identifier info will be null for C++ operators. > > > I assume you mean `operator new/new[]/delete/delete[] Correct. ~Aaron > >> > Thu

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

2016-08-09 Thread Daniel Marjamäki via cfe-commits
danielmarjamaki marked 2 inline comments as done. Comment at: test/clang-tidy/readability-misplaced-array-index.cpp:31 @@ +30,3 @@ + x[10] = 0; + dostuff(0[0 + ABC]); +} aaron.ballman wrote: > Why is this considered to be "normal syntax" and not worth getting a

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

2016-08-09 Thread Aaron Ballman via cfe-commits
aaron.ballman added inline comments. Comment at: include/clang/Basic/DiagnosticDriverKinds.td:186 @@ +185,3 @@ +def warn_drv_argument_requires : Warning< + "argument '%0' requires %1">, + InGroup; Given that there's only one driver option that requires this diag

Re: [PATCH] D21678: Fix For pr28288 - Error message in shift of vector values

2016-08-09 Thread Vladimir Yakovlev via cfe-commits
vbyakovl added inline comments. Comment at: llvm/tools/clang/lib/Sema/SemaExpr.cpp:8681-8683 @@ -8680,5 +8676,3 @@ } -return CheckVectorOperands(LHS, RHS, Loc, IsCompAssign, - /*AllowBothBool*/true, - /*AllowBool

Re: [PATCH] D21678: Fix For pr28288 - Error message in shift of vector values

2016-08-09 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, but I am also not well-versed in vector operations, so you may want to wait a day or two for @uweigand or someone else to sign off as well. Comment at: ll

Re: [PATCH] D17990: [clang-tidy] minor improvements in modernise-deprecated-headers check

2016-08-09 Thread Kirill Bobyrev via cfe-commits
omtcyf0 updated this revision to Diff 67328. omtcyf0 added a comment. Address comments Alex made. https://reviews.llvm.org/D17990 Files: clang-tidy/modernize/DeprecatedHeadersCheck.cpp docs/clang-tidy/checks/modernize-deprecated-headers.rst test/clang-tidy/modernize-deprecated-headers-cxx

Re: r266719 - Warn if function or variable cannot be implicitly instantiated

2016-08-09 Thread Nico Weber via cfe-commits
With 3.9 coming around, I'd like to suggest that we pull this warning from 3.9 and maybe trunk. It sounds like Sean found it only possible to deploy this warning since they already had a workaround for a different compiler bug (!). In Chromium, we can't enable this warning since one of our (admitte

[PATCH] D23314: [analyzer] CloneDetector allows comparing clones for suspicious variable pattern errors.

2016-08-09 Thread Raphael Isemann via cfe-commits
teemperor created this revision. teemperor added reviewers: v.g.vassilev, NoQ, zaks.anna. teemperor added subscribers: cfe-commits, vsk. One of the goals of the project was to find bugs caused by copy-pasting, which happen when a piece of code is copied but not all variables in this piece of cod

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

2016-08-09 Thread Jonathan Roelofs via cfe-commits
jroelofs added a comment. In https://reviews.llvm.org/D21134#509522, @danielmarjamaki wrote: > In https://reviews.llvm.org/D21134#508524, @jroelofs wrote: > > > I think the replacement is wrong for something like: > > > > int *arr; int offs1, offs2; > > offs1[arr + offs2] = 42; > > > > > > wh

[PATCH] D23316: [analyzer] Fixed the false-positives caused by macro generated code.

2016-08-09 Thread Raphael Isemann via cfe-commits
teemperor created this revision. teemperor added reviewers: v.g.vassilev, NoQ, zaks.anna. teemperor added a subscriber: cfe-commits. So far macro-generated code was treated by the CloneDetector as normal code. This caused that some macros where reported as false-positive clones because their gen

Re: [PATCH] D17990: [clang-tidy] minor improvements in modernise-deprecated-headers check

2016-08-09 Thread Kirill Bobyrev via cfe-commits
omtcyf0 updated this revision to Diff 67334. omtcyf0 marked 3 inline comments as done. omtcyf0 added a comment. Address remaining comments. https://reviews.llvm.org/D17990 Files: clang-tidy/modernize/DeprecatedHeadersCheck.cpp docs/clang-tidy/checks/modernize-deprecated-headers.rst test/c

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

2016-08-09 Thread Daniel Marjamäki via cfe-commits
danielmarjamaki updated this revision to Diff 67337. danielmarjamaki added a comment. More generic diagnostic. Diagnose all integerType[pointerType] expressions. https://reviews.llvm.org/D21134 Files: clang-tidy/readability/CMakeLists.txt clang-tidy/readability/MisplacedArrayIndexCheck.cpp

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

2016-08-09 Thread Daniel Marjamäki via cfe-commits
danielmarjamaki updated this revision to Diff 67338. danielmarjamaki added a comment. ran clang-format https://reviews.llvm.org/D21134 Files: clang-tidy/readability/CMakeLists.txt clang-tidy/readability/MisplacedArrayIndexCheck.cpp clang-tidy/readability/MisplacedArrayIndexCheck.h clang

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

2016-08-09 Thread Daniel Marjamäki via cfe-commits
danielmarjamaki marked an inline comment as done. danielmarjamaki added a comment. https://reviews.llvm.org/D21134 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Re: [PATCH] D22946: [CUDA] Regression test to make sure C++ include path are forwarded to host and device frontends.

2016-08-09 Thread Samuel Antao via cfe-commits
sfantao updated this revision to Diff 67335. sfantao marked an inline comment as done. sfantao added a comment. - Move CUDA C++ include path tests to cuda-detect.cu. Address other Art's comments. https://reviews.llvm.org/D22946 Files: test/Driver/cuda-detect.cu Index: test/Driver/cuda-detec

[PATCH] D23317: clang-format: Add SpaceAfterTemplate

2016-08-09 Thread Sylvestre Ledru via cfe-commits
sylvestre.ledru created this revision. sylvestre.ledru added a reviewer: djasper. sylvestre.ledru added subscribers: opilarium, cfe-commits, klimek. This is required for compliance with the Mozilla style guide. This is a rebase+minor change of Birunthan Mohanathas's patch https://reviews.llvm.o

Re: [PATCH] D10807: clang-format: Add SpaceAfterTemplate

2016-08-09 Thread Sylvestre Ledru via cfe-commits
sylvestre.ledru added a comment. Done in https://reviews.llvm.org/D23317 https://reviews.llvm.org/D10807 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Re: [PATCH] D23317: clang-format: Add SpaceAfterTemplate

2016-08-09 Thread Daniel Jasper via cfe-commits
djasper accepted this revision. djasper added a comment. This revision is now accepted and ready to land. Looks good. https://reviews.llvm.org/D23317 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listi

Re: [PATCH] D23317: clang-format: Add SpaceAfterTemplate

2016-08-09 Thread Sylvestre Ledru via cfe-commits
sylvestre.ledru added a comment. Thanks! I don't think you want it but do you want me to add this to the 4.0 release notes? https://reviews.llvm.org/D23317 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailma

r278121 - clang-format: Add SpaceAfterTemplate

2016-08-09 Thread Sylvestre Ledru via cfe-commits
Author: sylvestre Date: Tue Aug 9 09:24:40 2016 New Revision: 278121 URL: http://llvm.org/viewvc/llvm-project?rev=278121&view=rev Log: clang-format: Add SpaceAfterTemplate Summary: This is required for compliance with the Mozilla style guide. This is a rebase+minor change of Birunthan Mohanatha

Re: [PATCH] D23279: clang-reorder-fields

2016-08-09 Thread Saleem Abdulrasool via cfe-commits
compnerd added a comment. If the argument really is that we want to minimize the tools then Id argue that `clang-rename` also belongs in `clang-tidy` as it would be used to rename fields to match the naming convention (tidying up your code base). `clang-tidy` could work, but it does seem to be

Re: [PATCH] D23265: [clang-tidy] enhance readability-else-after-return

2016-08-09 Thread Kirill Bobyrev via cfe-commits
omtcyfz updated this revision to Diff 67347. omtcyfz marked 2 inline comments as done. omtcyfz added a comment. Address the comments. https://reviews.llvm.org/D23265 Files: clang-tidy/readability/ElseAfterReturnCheck.cpp docs/clang-tidy/checks/readability-else-after-return.rst test/clang-

[PATCH] D23320: [analyzer] Fixed crash in CloneDetector in function calls.

2016-08-09 Thread Raphael Isemann via cfe-commits
teemperor created this revision. teemperor added reviewers: v.g.vassilev, NoQ, zaks.anna. teemperor added subscribers: cfe-commits, vsk. StmtDataCollector currently crashes on function calls because they don't have a callee. This patch fixes this. https://reviews.llvm.org/D23320 Files: lib/An

Re: [libcxx] r278032 - CMakeLists.txt cleanups: synchronize version with rest of LLVM, consistent spacing.

2016-08-09 Thread Saleem Abdulrasool via cfe-commits
On Mon, Aug 8, 2016 at 1:20 PM, Hans Wennborg wrote: > I didn't merge this one to 3.9 because the PACKAGE_VERSION seems to > have always been trunk-svn, and it's at least not as misleading as > having the wrong number. > > I wonder if PACKAGE_VERSION is actually important for anything in > libcxx

Re: [PATCH] D22666: Frontend: Fix mcount inlining bug

2016-08-09 Thread Saleem Abdulrasool via cfe-commits
compnerd added a comment. Theres a frontend mangler and a backend mangler. You should try this on Windows GNU environments :-). https://reviews.llvm.org/D22666 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/m

Re: [PATCH] D23198: clang-rename rename-all: support reading old/newname pairs from a YAML file

2016-08-09 Thread Kirill Bobyrev via cfe-commits
omtcyfz added inline comments. Comment at: clang-rename/tool/ClangRename.cpp:65 @@ +64,3 @@ + + RenameAllInfo() : Offset(0) {} +}; AFAIK there's no need to do that, integer types are by default initialized with 0, aren't they? https://reviews.llvm.org/D23198

Re: [PATCH] D23300: [analyzer] Add "Assuming..." diagnostic pieces for unsupported condition expressions.

2016-08-09 Thread Artem Dergachev via cfe-commits
NoQ added a comment. In https://reviews.llvm.org/D23300#509665, @xazax.hun wrote: > In case there is a more complex condition does it only highligh the part that > influenced taking the branch? > > E.g.: > > if (a || b) { // HIghlight only a, if a was true and b was not evaluated > } > No

Re: [PATCH] D23198: clang-rename rename-all: support reading old/newname pairs from a YAML file

2016-08-09 Thread Miklos Vajna via cfe-commits
vmiklos added inline comments. Comment at: clang-rename/tool/ClangRename.cpp:65 @@ +64,3 @@ + + RenameAllInfo() : Offset(0) {} +}; omtcyfz wrote: > AFAIK there's no need to do that, integer types are by default initialized > with 0, aren't they? Are you sure? He

r278123 - [ASTMatchers] Add matchers canReferToDecl() and hasUnderlyingDecl()

2016-08-09 Thread Martin Bohme via cfe-commits
Author: mboehme Date: Tue Aug 9 10:07:52 2016 New Revision: 278123 URL: http://llvm.org/viewvc/llvm-project?rev=278123&view=rev Log: [ASTMatchers] Add matchers canReferToDecl() and hasUnderlyingDecl() Summary: Required for D0 Reviewers: sbenza, klimek, aaron.ballman, alexfh Subscribers: al

Re: [PATCH] D23004: [ASTMatchers] Add matchers canReferToDecl() and hasUnderlyingDecl()

2016-08-09 Thread Martin Böhme via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL278123: [ASTMatchers] Add matchers canReferToDecl() and hasUnderlyingDecl() (authored by mboehme). Changed prior to commit: https://reviews.llvm.org/D23004?vs=66912&id=67353#toc Repository: rL LLVM

Re: [PATCH] D23317: clang-format: Add SpaceAfterTemplate

2016-08-09 Thread Michael Rybakov via cfe-commits
opilarium added a comment. Thanks a lot! https://reviews.llvm.org/D23317 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Re: [PATCH] D23265: [clang-tidy] enhance readability-else-after-return

2016-08-09 Thread Alexander Kornienko via cfe-commits
alexfh added inline comments. Comment at: clang-tidy/readability/ElseAfterReturnCheck.cpp:45 @@ +44,3 @@ + for (const auto &BindingName : + {"return", "continue", "break", "goto", "throw"}) { +if (Result.Nodes.getNodeAs(BindingName)) { This won't work i

Re: [PATCH] D17990: [clang-tidy] minor improvements in modernise-deprecated-headers check

2016-08-09 Thread Alexander Kornienko via cfe-commits
alexfh requested changes to this revision. This revision now requires changes to proceed. Comment at: clang-tidy/modernize/DeprecatedHeadersCheck.cpp:55 @@ +54,3 @@ + CStyledHeaderToCxx = + {{"assert.h", "cassert"}, +{"complex.h", "complex"}, ---

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

2016-08-09 Thread Yaxun Liu via cfe-commits
yaxunl created this revision. yaxunl added reviewers: nhaustov, Anastasia. yaxunl added subscribers: cfe-commits, tstellarAMD. Herald added a reviewer: tstellarAMD. Herald added a subscriber: kzhuravl. https://reviews.llvm.org/D23322 Files: include/clang/Basic/OpenCLExtensions.def lib/Basic/T

Re: [PATCH] D23320: [analyzer] Fixed crash in CloneDetector in function calls.

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

Re: [PATCH] D23317: clang-format: Add SpaceAfterTemplate

2016-08-09 Thread Daniel Jasper via cfe-commits
djasper added a comment. I don't think this is worth a release note. https://reviews.llvm.org/D23317 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Re: [PATCH] D23279: clang-reorder-fields

2016-08-09 Thread Kirill Bobyrev via cfe-commits
omtcyfz added a comment. In https://reviews.llvm.org/D23279#509896, @compnerd wrote: > If the argument really is that we want to minimize the tools then Id argue > that `clang-rename` also belongs in `clang-tidy` as it would be used to > rename fields to match the naming convention (tidying up

Re: [PATCH] D23279: clang-reorder-fields

2016-08-09 Thread Aaron Ballman via cfe-commits
aaron.ballman added a comment. In https://reviews.llvm.org/D23279#510002, @omtcyfz wrote: > In https://reviews.llvm.org/D23279#509896, @compnerd wrote: > > > If the argument really is that we want to minimize the tools then Id argue > > that `clang-rename` also belongs in `clang-tidy` as it woul

Re: [PATCH] D23125: Modules: add command line option to support loading prebuilt modules on demand, without parsing any module map

2016-08-09 Thread Ben Langmuir via cfe-commits
benlangmuir added a comment. Sorry for the delay, I apparently forgot to hit submit. Replied inline. Comment at: lib/Frontend/CompilerInstance.cpp:1491 @@ +1490,3 @@ +false/*IsExplicit*/).first; +Module->IsSystem = true; +Module->IsFromModuleFile = tr

[PATCH] D23325: [WIP] Binding of references to packed fields

2016-08-09 Thread Roger Ferrer Ibanez via cfe-commits
rogfer01 created this revision. rogfer01 added reviewers: aaron.ballman, rsmith. rogfer01 added subscribers: cfe-commits, rsmith. This is a WIP for PR28571. As suggested by @rsmith it introduces a new ObjectKind for PackedField's modeled similarly in spirit to BitField's. If the reference is con

Re: [PATCH] D23325: [WIP] Binding of references to packed fields

2016-08-09 Thread Roger Ferrer Ibanez via cfe-commits
rogfer01 added inline comments. Comment at: lib/Sema/SemaInit.cpp:4202-4204 @@ +4201,5 @@ + + It is not possible to bind w to a temporary of a.x because this + would require (recursively) invoking the copy constructor of + std::vector to obtain first a (properly

Re: [PATCH] D23279: clang-reorder-fields

2016-08-09 Thread Kirill Bobyrev via cfe-commits
omtcyfz added a comment. In https://reviews.llvm.org/D23279#510011, @aaron.ballman wrote: > In https://reviews.llvm.org/D23279#510002, @omtcyfz wrote: > > > In https://reviews.llvm.org/D23279#509896, @compnerd wrote: > > > > > If the argument really is that we want to minimize the tools then Id

Re: r266719 - Warn if function or variable cannot be implicitly instantiated

2016-08-09 Thread Serge Pavlov via cfe-commits
Whether enable this warning or not should be determined by user feedback. The warning was implemented to help users in complicated cases that arise in module-enabled builds. It seems however that it makes troubles for other users. Based on feedback on this list I feel that it is better to make this

Re: [PATCH] D23265: [clang-tidy] enhance readability-else-after-return

2016-08-09 Thread Alexander Kornienko via cfe-commits
alexfh requested changes to this revision. This revision now requires changes to proceed. Comment at: clang-tidy/readability/ElseAfterReturnCheck.cpp:25 @@ +24,3 @@ + forEach(ifStmt(hasThen(stmt(anyOf( + returnStmt().bind("return"), +

Re: [PATCH] D23279: clang-reorder-fields

2016-08-09 Thread Aaron Ballman via cfe-commits
On Tue, Aug 9, 2016 at 12:14 PM, Kirill Bobyrev wrote: > omtcyfz added a comment. > > In https://reviews.llvm.org/D23279#510011, @aaron.ballman wrote: > >> In https://reviews.llvm.org/D23279#510002, @omtcyfz wrote: >> >> > In https://reviews.llvm.org/D23279#509896, @compnerd wrote: >> > >> > > If

Re: [PATCH] D23198: clang-rename rename-all: support reading old/newname pairs from a YAML file

2016-08-09 Thread Kirill Bobyrev via cfe-commits
omtcyfz accepted this revision. omtcyfz added a comment. This revision is now accepted and ready to land. LGTM Comment at: clang-rename/tool/ClangRename.cpp:65 @@ +64,3 @@ + + RenameAllInfo() : Offset(0) {} +}; vmiklos wrote: > omtcyfz wrote: > > AFAIK there's

Re: [PATCH] D23198: clang-rename rename-all: support reading old/newname pairs from a YAML file

2016-08-09 Thread Kirill Bobyrev via cfe-commits
omtcyfz added inline comments. Comment at: clang-rename/tool/ClangRename.cpp:65 @@ +64,3 @@ + + RenameAllInfo() : Offset(0) {} +}; omtcyfz wrote: > vmiklos wrote: > > omtcyfz wrote: > > > AFAIK there's no need to do that, integer types are by default > > > initi

Re: [PATCH] D23279: clang-reorder-fields

2016-08-09 Thread Alexander Shaposhnikov via cfe-commits
alexshap added a comment. First of all, many thanks for the comments & proposal of clang-refactor. 1. Regarding high-level project organization: clang-refactor - that can be a good place for various refactoring techniques like the existing clang-rename, my simple tool, etc - essentially what Kir

Re: [PATCH] D23239: [CUDA] Add __device__ overloads for placement new and delete.

2016-08-09 Thread Artem Belevich via cfe-commits
tra accepted this revision. tra added a comment. This revision is now accepted and ready to land. LGTM. https://reviews.llvm.org/D23239 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commit

Re: [PATCH] D22946: [CUDA] Regression test to make sure C++ include path are forwarded to host and device frontends.

2016-08-09 Thread Artem Belevich via cfe-commits
tra added inline comments. Comment at: test/Driver/cuda-detect.cu:75-77 @@ -74,1 +74,5 @@ +// Verify that compiler accepts CUDA syntax with "-x cuda-cpp-output". +// RUN: %clang -Werror -fsyntax-only -x cuda-cpp-output -c %s +// +// Verify that C++ include paths are passed for b

Re: [PATCH] D23279: clang-reorder-fields

2016-08-09 Thread Ben Craig via cfe-commits
bcraig added a subscriber: bcraig. bcraig added a comment. In https://reviews.llvm.org/D23279#509017, @Eugene.Zelenko wrote: > Do we really need standalone tool for this purpose? If I'm not mistaken, > Static Analyzer already has clang-analyzer-optin.performance.Padding check, > which is also a

Re: [PATCH] D23279: clang-reorder-fields

2016-08-09 Thread Ben Craig via cfe-commits
bcraig added a comment. It is very common for developers to put comments near a field. If this tool doesn't move the "anchored" comments, then its utility will be severely limited. Does this tool also reorder C++ member initializer lists? If it doesn't, then running this tool will introduce w

Re: [PATCH] D23279: clang-reorder-fields

2016-08-09 Thread Alexander Shaposhnikov via cfe-commits
alexshap added a comment. > The excess padding checker doesn't provide a fix-it. yup, although i think it would be useful to add one of the optimal layouts to the report (i have a diff for that (still in the oven), i have not sent it for code review yet). But as i mentioned above - it seems to

Re: [PATCH] D22946: [CUDA] Regression test to make sure C++ include path are forwarded to host and device frontends.

2016-08-09 Thread Samuel Antao via cfe-commits
sfantao updated this revision to Diff 67366. sfantao marked an inline comment as done. sfantao added a comment. - Remove redundant test - copied by mistake. https://reviews.llvm.org/D22946 Files: test/Driver/cuda-detect.cu Index: test/Driver/cuda-detect.cu ===

Re: [PATCH] D22946: [CUDA] Regression test to make sure C++ include path are forwarded to host and device frontends.

2016-08-09 Thread Samuel Antao via cfe-commits
sfantao added inline comments. Comment at: test/Driver/cuda-detect.cu:75-77 @@ -74,1 +74,5 @@ +// Verify that compiler accepts CUDA syntax with "-x cuda-cpp-output". +// RUN: %clang -Werror -fsyntax-only -x cuda-cpp-output -c %s +// +// Verify that C++ include paths are passed f

Re: [PATCH] D23241: Add the notion of deferred diagnostics.

2016-08-09 Thread Justin Lebar via cfe-commits
jlebar updated this revision to Diff 67367. jlebar marked an inline comment as done. jlebar added a comment. Address review comments, and don't abort codegen'ing a function if it has only deferred warnings -- check specifically for errors. https://reviews.llvm.org/D23241 Files: clang/include/

Re: [PATCH] D23241: Add the notion of deferred diagnostics.

2016-08-09 Thread Justin Lebar via cfe-commits
jlebar added a comment. Reid, I'd still like you to have a look at this one if you don't mind, since it's outside my and Art's core competencies. Comment at: clang/lib/CodeGen/CodeGenModule.cpp:2886 @@ +2885,3 @@ + // Check if this function has diagnostics that should be emitt

Re: [PATCH] D23279: clang-reorder-fields

2016-08-09 Thread Kirill Bobyrev via cfe-commits
omtcyfz added a comment. In https://reviews.llvm.org/D23279#510061, @alexshap wrote: > First of all, many thanks for the comments & proposal of clang-refactor. > > 1. Regarding high-level project organization: clang-refactor - that can be a > good place for various refactoring techniques like th

Re: [PATCH] D22946: [CUDA] Regression test to make sure C++ include path are forwarded to host and device frontends.

2016-08-09 Thread Artem Belevich via cfe-commits
tra accepted this revision. tra added a comment. This revision is now accepted and ready to land. LGTM. https://reviews.llvm.org/D22946 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commit

  1   2   >