Re: [PATCH] D18648: make __builtin_isfinite more efficient (PR27145)

2016-04-07 Thread Chandler Carruth via cfe-commits
chandlerc accepted this revision. chandlerc added a comment. This revision is now accepted and ready to land. LGTM, nice! http://reviews.llvm.org/D18648 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/li

Re: [PATCH] D18617: Call TargetMachine::addEarlyAsPossiblePasses from BackendUtil.

2016-04-07 Thread Chandler Carruth via cfe-commits
chandlerc accepted this revision. chandlerc added a comment. This revision is now accepted and ready to land. Minor tweak, but with that LGTM once the LLVM side is in place. Comment at: lib/CodeGen/BackendUtil.cpp:347 @@ +346,3 @@ +PassManagerBuilder::EP_EarlyAsPossible,

Re: [PATCH] D18852: [clang-tidy] fix a crash with -fdelayed-template-parsing in UnnecessaryValueParamCheck.

2016-04-07 Thread Kim Gräsman via cfe-commits
kimgr added a subscriber: kimgr. kimgr added a comment. A test case would be nice here. You can repro on all systems by passing `-fdelayed-template-parsing` explicitly. http://reviews.llvm.org/D18852 ___ cfe-commits mailing list cfe-commits@lists.l

Re: [PATCH] D18852: [clang-tidy] fix a crash with -fdelayed-template-parsing in UnnecessaryValueParamCheck.

2016-04-07 Thread Alexander Kornienko via cfe-commits
alexfh added a comment. Please add a test file with -fms-compatibility or -fdelayed-template-parsing. http://reviews.llvm.org/D18852 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Re: [PATCH] D18783: [clang-tidy] add new checker for string literal with NUL character.

2016-04-07 Thread Alexander Kornienko via cfe-commits
alexfh added a comment. A couple of nits. Comment at: clang-tidy/misc/MisplacedWideningCastCheck.cpp:64 @@ -62,5 +63,3 @@ unsigned RHSWidth = getMaxCalculationWidth(Context, Bop->getRHS()); -if (Bop->getOpcode() == BO_Mul) - return LHSWidth + RHSWidth; -if (Bop

Re: [PATCH] D18783: [clang-tidy] add new checker for string literal with NUL character.

2016-04-07 Thread Alexander Kornienko via cfe-commits
alexfh added a comment. Wait, it looks like you've updated the patch from an incorrect branch: I see only clang-tidy/misc/MisplacedWideningCastCheck.cpp file here. http://reviews.llvm.org/D18783 ___ cfe-commits mailing list cfe-commits@lists.llvm.o

Re: [PATCH] D18761: [mips] Enable IAS by default for 32-bit MIPS targets (O32).

2016-04-07 Thread Vasileios Kalintiris via cfe-commits
vkalintiris accepted this revision. vkalintiris added a comment. This revision is now accepted and ready to land. LGTM. http://reviews.llvm.org/D18761 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/list

r265654 - Move class into an anonymous namespace. NFC.

2016-04-07 Thread Benjamin Kramer via cfe-commits
Author: d0k Date: Thu Apr 7 05:14:54 2016 New Revision: 265654 URL: http://llvm.org/viewvc/llvm-project?rev=265654&view=rev Log: Move class into an anonymous namespace. NFC. Modified: cfe/trunk/lib/CodeGen/TargetInfo.cpp Modified: cfe/trunk/lib/CodeGen/TargetInfo.cpp URL: http://llvm.org/v

[clang-tools-extra] r265655 - [docs] Update version (http://llvm.org/PR27253)

2016-04-07 Thread Alexander Kornienko via cfe-commits
Author: alexfh Date: Thu Apr 7 05:17:23 2016 New Revision: 265655 URL: http://llvm.org/viewvc/llvm-project?rev=265655&view=rev Log: [docs] Update version (http://llvm.org/PR27253) Modified: clang-tools-extra/trunk/docs/conf.py Modified: clang-tools-extra/trunk/docs/conf.py URL: http://llvm

Re: r265640 - Basic: thread CodeGenOptions into TargetInfo

2016-04-07 Thread Vassil Vassilev via cfe-commits
On 07/04/16 07:41, Saleem Abdulrasool via cfe-commits wrote: Author: compnerd Date: Thu Apr 7 00:41:11 2016 New Revision: 265640 URL: http://llvm.org/viewvc/llvm-project?rev=265640&view=rev Log: Basic: thread CodeGenOptions into TargetInfo This threads CodeGenOptions into the TargetInfo hierar

Re: [PATCH] D15524: [GCC] Attribute ifunc support in clang

2016-04-07 Thread Dmitry Polukhin via cfe-commits
DmitryPolukhin updated this revision to Diff 52906. DmitryPolukhin added a comment. - rebase after committing llvm patch http://reviews.llvm.org/D15524 Files: include/clang/AST/DeclBase.h include/clang/Basic/Attr.td include/clang/Basic/AttrDocs.td include/clang/Basic/DiagnosticSemaKinds

r265668 - [OPENMP 4.0] Parsing/sema analysis for 'simdlen' clause in 'declare simd'

2016-04-07 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Thu Apr 7 07:45:37 2016 New Revision: 265668 URL: http://llvm.org/viewvc/llvm-project?rev=265668&view=rev Log: [OPENMP 4.0] Parsing/sema analysis for 'simdlen' clause in 'declare simd' construct. OpenMP 4.0 defines '#pragma omp declare simd' construct that may have associat

Re: [PATCH] D18829: [clang-tidy] Fix FP with readability-redundant-string-init for default arguments

2016-04-07 Thread Alexander Kornienko via cfe-commits
alexfh accepted this revision. alexfh added a comment. This revision is now accepted and ready to land. Awesome! Thanks for the fix! http://reviews.llvm.org/D18829 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin

Re: [PATCH] D18833: [clang-tidy] Fix infinite loop in MisplacedWideningCastCheck.

2016-04-07 Thread Alexander Kornienko via cfe-commits
alexfh requested changes to this revision. alexfh added a comment. This revision now requires changes to proceed. Formatting is broken. `clang-format -style=file`, please. http://reviews.llvm.org/D18833 ___ cfe-commits mailing list cfe-commits@lists

Re: [PATCH] D18793: fix for 19986, extra spacing around c++14 lambda capture with initializer

2016-04-07 Thread Jacek Sieka via cfe-commits
arnetheduck planned changes to this revision. arnetheduck added a comment. Thanks for the comments - I'll see when I have time to get back to this as the current patch happens to take care of my (rather limited) use case.. Comment at: lib/Format/UnwrappedLineParser.cpp:1086 @@

Re: [PATCH] D18810: [Clang-tidy] Fix readability-static-definition-in-anonymous-namespace warnings; other minor fixes.

2016-04-07 Thread Alexander Kornienko via cfe-commits
alexfh added a comment. Please regenerate the patch with the full context. Comment at: clang-tidy/ClangTidy.cpp:39 @@ -38,1 +38,3 @@ #include "clang/Tooling/Tooling.h" +#include "llvm/ADT/SmallString.h" +#include "llvm/ADT/SmallVector.h" Did you make these chan

Re: [PATCH] D18510: [cxx1z-constexpr-lambda] Make conversion function constexpr

2016-04-07 Thread Faisal Vali via cfe-commits
faisalv added a comment. *ping* http://reviews.llvm.org/D18510 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Re: [PATCH] D18495: Check default arguments of template template parameters for compatibility.

2016-04-07 Thread Faisal Vali via cfe-commits
faisalv added a comment. *ping* http://reviews.llvm.org/D18495 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] r265671 - [clang-tidy] Fix FP with readability-redundant-string-init for default arguments

2016-04-07 Thread Etienne Bergeron via cfe-commits
Author: etienneb Date: Thu Apr 7 09:18:53 2016 New Revision: 265671 URL: http://llvm.org/viewvc/llvm-project?rev=265671&view=rev Log: [clang-tidy] Fix FP with readability-redundant-string-init for default arguments Summary: Clang-tidy is reporting a warning of redundant string initialisation on

[libcxx] r265672 - Fix bug #27260 - add missing swap(reference, reference) to vector.

2016-04-07 Thread Marshall Clow via cfe-commits
Author: marshall Date: Thu Apr 7 09:20:31 2016 New Revision: 265672 URL: http://llvm.org/viewvc/llvm-project?rev=265672&view=rev Log: Fix bug #27260 - add missing swap(reference, reference) to vector. Added: libcxx/trunk/test/std/containers/sequences/vector.bool/reference.swap.pass.cpp Modi

Re: [PATCH] D18035: [GCC] PR23529 Mangler part of attrbute abi_tag support

2016-04-07 Thread Dmitry Polukhin via cfe-commits
DmitryPolukhin added a comment. Richard, Reid and David, Friendly ping, please take a look to this patch. If there are no more comments/suggestion, I think it is better to commit this patch iterate on GCC abi_tag support based on users' feedback. http://reviews.llvm.org/D18035

Re: [PATCH] D18852: [clang-tidy] fix a crash with -fdelayed-template-parsing in UnnecessaryValueParamCheck.

2016-04-07 Thread Etienne Bergeron via cfe-commits
etienneb updated this revision to Diff 52915. etienneb added a comment. add unittests. http://reviews.llvm.org/D18852 Files: clang-tidy/performance/UnnecessaryValueParamCheck.cpp test/clang-tidy/performance-unnecessary-value-param-delayed.cpp Index: test/clang-tidy/performance-unnecessary-

[libcxx] r265674 - Added a noexcept test

2016-04-07 Thread Marshall Clow via cfe-commits
Author: marshall Date: Thu Apr 7 09:24:16 2016 New Revision: 265674 URL: http://llvm.org/viewvc/llvm-project?rev=265674&view=rev Log: Added a noexcept test Modified: libcxx/trunk/test/std/containers/sequences/vector.bool/reference.swap.pass.cpp Modified: libcxx/trunk/test/std/containers/s

r265675 - make __builtin_isfinite more efficient (PR27145)

2016-04-07 Thread Sanjay Patel via cfe-commits
Author: spatel Date: Thu Apr 7 09:29:05 2016 New Revision: 265675 URL: http://llvm.org/viewvc/llvm-project?rev=265675&view=rev Log: make __builtin_isfinite more efficient (PR27145) isinf (is infinite) and isfinite should be implemented with the same function except we change the comparison opera

Re: [PATCH] D18648: make __builtin_isfinite more efficient (PR27145)

2016-04-07 Thread Sanjay Patel via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL265675: make __builtin_isfinite more efficient (PR27145) (authored by spatel). Changed prior to commit: http://reviews.llvm.org/D18648?vs=52214&id=52917#toc Repository: rL LLVM http://reviews.llvm.o

Re: [PATCH] D18833: [clang-tidy] Fix infinite loop in MisplacedWideningCastCheck.

2016-04-07 Thread Etienne Bergeron via cfe-commits
etienneb updated this revision to Diff 52919. etienneb added a comment. alexfh comments. http://reviews.llvm.org/D18833 Files: clang-tidy/misc/MisplacedWideningCastCheck.cpp Index: clang-tidy/misc/MisplacedWideningCastCheck.cpp

Re: [PATCH] D18833: [clang-tidy] Fix infinite loop in MisplacedWideningCastCheck.

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

Re: [PATCH] D18852: [clang-tidy] fix a crash with -fdelayed-template-parsing in UnnecessaryValueParamCheck.

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

Re: [PATCH] D18833: [clang-tidy] Fix infinite loop in MisplacedWideningCastCheck.

2016-04-07 Thread Etienne Bergeron via cfe-commits
etienneb updated this revision to Diff 52921. etienneb added a comment. nits, lower case names. http://reviews.llvm.org/D18833 Files: clang-tidy/misc/MisplacedWideningCastCheck.cpp Index: clang-tidy/misc/MisplacedWideningCastCheck.cpp =

Re: [PATCH] D18833: [clang-tidy] Fix infinite loop in MisplacedWideningCastCheck.

2016-04-07 Thread Alexander Kornienko via cfe-commits
alexfh added a comment. Missed a couple of nits. Comment at: clang-tidy/misc/MisplacedWideningCastCheck.cpp:98 @@ -96,40 +97,3 @@ -static llvm::SmallDenseMap createRelativeIntSizesMap() { - llvm::SmallDenseMap Result; - Result[BuiltinType::UChar] = 1; - Result[BuiltinType::

r265677 - Fixing duplicate declaration "_mm256 _mm_set_epi32" in revision 262177

2016-04-07 Thread Michael Zuckerman via cfe-commits
Author: mzuckerm Date: Thu Apr 7 09:44:08 2016 New Revision: 265677 URL: http://llvm.org/viewvc/llvm-project?rev=265677&view=rev Log: Fixing duplicate declaration "_mm256 _mm_set_epi32" in revision 262177 Differential Revision: http://reviews.llvm.org/D17685 Modified: cfe/trunk/lib/Headers

Re: [PATCH] D18833: [clang-tidy] Fix infinite loop in MisplacedWideningCastCheck.

2016-04-07 Thread Etienne Bergeron via cfe-commits
etienneb updated this revision to Diff 52924. etienneb marked an inline comment as done. etienneb added a comment. fix nits. http://reviews.llvm.org/D18833 Files: clang-tidy/misc/MisplacedWideningCastCheck.cpp Index: clang-tidy/misc/MisplacedWideningCastCheck.cpp

[clang-tools-extra] r265679 - [clang-tidy] Fix infinite loop in MisplacedWideningCastCheck.

2016-04-07 Thread Etienne Bergeron via cfe-commits
Author: etienneb Date: Thu Apr 7 09:52:52 2016 New Revision: 265679 URL: http://llvm.org/viewvc/llvm-project?rev=265679&view=rev Log: [clang-tidy] Fix infinite loop in MisplacedWideningCastCheck. Summary: In Release mode, the check was infinite looping over chromium code base. It seems there is

[clang-tools-extra] r265680 - [clang-tidy] Remove unnecessary getName() on Decls and Types feeding into a DiagnosticBuilder

2016-04-07 Thread Benjamin Kramer via cfe-commits
Author: d0k Date: Thu Apr 7 09:55:25 2016 New Revision: 265680 URL: http://llvm.org/viewvc/llvm-project?rev=265680&view=rev Log: [clang-tidy] Remove unnecessary getName() on Decls and Types feeding into a DiagnosticBuilder Going through a string removes some of the smarts of the diagnosic print

[clang-tools-extra] r265681 - [clang-tidy] fix a crash with -fdelayed-template-parsing in UnnecessaryValueParamCheck.

2016-04-07 Thread Etienne Bergeron via cfe-commits
Author: etienneb Date: Thu Apr 7 09:58:13 2016 New Revision: 265681 URL: http://llvm.org/viewvc/llvm-project?rev=265681&view=rev Log: [clang-tidy] fix a crash with -fdelayed-template-parsing in UnnecessaryValueParamCheck. Summary: This is the same kind of bug than [[ http://reviews.llvm.org/D18

Re: [clang-tools-extra] r265680 - [clang-tidy] Remove unnecessary getName() on Decls and Types feeding into a DiagnosticBuilder

2016-04-07 Thread Alexander Kornienko via cfe-commits
Thanks! On Thu, Apr 7, 2016 at 4:55 PM, Benjamin Kramer via cfe-commits < cfe-commits@lists.llvm.org> wrote: > Author: d0k > Date: Thu Apr 7 09:55:25 2016 > New Revision: 265680 > > URL: http://llvm.org/viewvc/llvm-project?rev=265680&view=rev > Log: > [clang-tidy] Remove unnecessary getName() on

Re: [PATCH] D18783: [clang-tidy] add new checker for string literal with NUL character.

2016-04-07 Thread Etienne Bergeron via cfe-commits
etienneb updated this revision to Diff 52926. etienneb marked 2 inline comments as done. etienneb added a comment. Revert last diff (invalid patchset). http://reviews.llvm.org/D18783 Files: clang-tidy/misc/CMakeLists.txt clang-tidy/misc/MiscTidyModule.cpp clang-tidy/misc/StringLiteralWith

Re: [PATCH] D18783: [clang-tidy] add new checker for string literal with NUL character.

2016-04-07 Thread Etienne Bergeron via cfe-commits
etienneb updated this revision to Diff 52927. etienneb added a comment. nit http://reviews.llvm.org/D18783 Files: clang-tidy/misc/CMakeLists.txt clang-tidy/misc/MiscTidyModule.cpp clang-tidy/misc/StringLiteralWithEmbeddedNulCheck.cpp clang-tidy/misc/StringLiteralWithEmbeddedNulCheck.h

Re: [PATCH] D18703: [clang-tidy] Add new checker for comparison with runtime string functions.

2016-04-07 Thread Alexander Kornienko via cfe-commits
alexfh added inline comments. Comment at: clang-tidy/misc/SuspiciousStringCompareCheck.cpp:73 @@ +72,3 @@ + functionDecl( + hasAnyName("__builtin_memcmp", + "__builtin_strcasecmp", I'd initialize the list as a comma/semicolon-sep

Re: [PATCH] D18783: [clang-tidy] add new checker for string literal with NUL character.

2016-04-07 Thread Alexander Kornienko via cfe-commits
alexfh requested changes to this revision. This revision now requires changes to proceed. Comment at: docs/clang-tidy/checks/misc-string-literal-with-embedded-nul.rst:6 @@ +5,3 @@ + +Find occurences of string literal with embedded NUL character and validate +their usage. -

Re: [PATCH] D18821: Add modernize-bool-to-integer-conversion

2016-04-07 Thread Alexander Kornienko via cfe-commits
alexfh added a comment. Actually, did you think about adding this as a clang diagnostic? Richard, what do you think about complaining in Clang about `int i = true;` kind of code? Comment at: clang-tidy/modernize/BoolToIntegerConversionCheck.cpp:49 @@ +48,3 @@ +diag(BoolLit

Re: [PATCH] D18783: [clang-tidy] add new checker for string literal with NUL character.

2016-04-07 Thread Etienne Bergeron via cfe-commits
etienneb updated this revision to Diff 52930. etienneb marked 3 inline comments as done. etienneb added a comment. fix doc. http://reviews.llvm.org/D18783 Files: clang-tidy/misc/CMakeLists.txt clang-tidy/misc/MiscTidyModule.cpp clang-tidy/misc/StringLiteralWithEmbeddedNulCheck.cpp clang

Re: [PATCH] D18783: [clang-tidy] add new checker for string literal with NUL character.

2016-04-07 Thread Alexander Kornienko via cfe-commits
alexfh accepted this revision. alexfh added a comment. This revision is now accepted and ready to land. LG with one nit. Comment at: clang-tidy/misc/StringLiteralWithEmbeddedNulCheck.cpp:70 @@ +69,3 @@ +diag(SL->getLocStart(), "suspicious embedded NUL character"); +

Re: [PATCH] D18821: Add modernize-bool-to-integer-conversion

2016-04-07 Thread Piotr Padlewski via cfe-commits
Prazek added a comment. In http://reviews.llvm.org/D18821#394486, @alexfh wrote: > Actually, did you think about adding this as a clang diagnostic? > > Richard, what do you think about complaining in Clang about `int i = true;` > kind of code? Glad to hear that :) http://reviews.llvm.org/D18

Re: [PATCH] D18766: [clang-tidy] Add check misc-multiple-statement-macro

2016-04-07 Thread Alexander Kornienko via cfe-commits
alexfh accepted this revision. alexfh added a comment. This revision is now accepted and ready to land. LG with a nit. Comment at: clang-tidy/misc/MultipleStatementMacroCheck.cpp:99 @@ +98,3 @@ + + diag(InnerRanges.back().first, "multiple statement macro spans unbraced " +

Re: [PATCH] D18821: Add modernize-bool-to-integer-conversion

2016-04-07 Thread Alexander Kornienko via cfe-commits
alexfh added inline comments. Comment at: clang-tidy/modernize/BoolToIntegerConversionCheck.cpp:47 @@ +46,3 @@ + const auto Type = Cast->getType().getLocalUnqualifiedType(); + if (isPreprocessorIndependent(BoolLiteral, Result)) { +diag(BoolLiteral->getLocation(), "implicitly

Re: [PATCH] D18617: Call TargetMachine::addEarlyAsPossiblePasses from BackendUtil.

2016-04-07 Thread Justin Lebar via cfe-commits
jlebar added inline comments. Comment at: lib/CodeGen/BackendUtil.cpp:347 @@ +346,3 @@ +PassManagerBuilder::EP_EarlyAsPossible, +[this](const PassManagerBuilder &, legacy::PassManagerBase &PM) { + TM->addEarlyAsPossiblePasses(PM); chandler

Re: [PATCH] D18797: [Clang-tidy] Mention readability-static-definition-in-anonymous-namespace in release notes

2016-04-07 Thread Alexander Kornienko via cfe-commits
alexfh added a comment. LG Repository: rL LLVM http://reviews.llvm.org/D18797 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Re: [PATCH] D18783: [clang-tidy] add new checker for string literal with NUL character.

2016-04-07 Thread Etienne Bergeron via cfe-commits
etienneb updated this revision to Diff 52935. etienneb added a comment. nit http://reviews.llvm.org/D18783 Files: clang-tidy/misc/CMakeLists.txt clang-tidy/misc/MiscTidyModule.cpp clang-tidy/misc/StringLiteralWithEmbeddedNulCheck.cpp clang-tidy/misc/StringLiteralWithEmbeddedNulCheck.h

[clang-tools-extra] r265691 - [clang-tidy] add new checker for string literal with NUL character.

2016-04-07 Thread Etienne Bergeron via cfe-commits
Author: etienneb Date: Thu Apr 7 11:16:36 2016 New Revision: 265691 URL: http://llvm.org/viewvc/llvm-project?rev=265691&view=rev Log: [clang-tidy] add new checker for string literal with NUL character. Summary: This patch adds the support for detecting suspicious string literals and their //inco

Re: [PATCH] D11958: Add a -gmodules option to the clang driver.

2016-04-07 Thread Adrian Prantl via cfe-commits
aprantl accepted this revision. aprantl added a reviewer: aprantl. aprantl added a comment. This revision is now accepted and ready to land. This landed a long time ago as r246192. Repository: rL LLVM http://reviews.llvm.org/D11958 ___ cfe-commit

Re: [PATCH] D18821: Add modernize-bool-to-integer-conversion

2016-04-07 Thread Sean McBride via cfe-commits
On Thu, 7 Apr 2016 15:48:56 +, Alexander Kornienko via cfe-commits said: >Actually, did you think about adding this as a clang diagnostic? > >Richard, what do you think about complaining in Clang about `int i = >true;` kind of code? If you don't mind a lurker interjecting... :) I think that'

Re: [PATCH] D18797: [Clang-tidy] Mention readability-static-definition-in-anonymous-namespace in release notes

2016-04-07 Thread Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL265698: Mention readability-static-definition-in-anonymous-namespace in release notes. (authored by eugenezelenko). Changed prior to commit: http://reviews.llvm.org/D18797?vs=52712&id=52939#toc Reposi

[clang-tools-extra] r265698 - Mention readability-static-definition-in-anonymous-namespace in release notes.

2016-04-07 Thread Eugene Zelenko via cfe-commits
Author: eugenezelenko Date: Thu Apr 7 12:28:35 2016 New Revision: 265698 URL: http://llvm.org/viewvc/llvm-project?rev=265698&view=rev Log: Mention readability-static-definition-in-anonymous-namespace in release notes. Consistency in using ` and ``. Differential revision: http://reviews.llvm.org

Re: [PATCH] D17821: [OpenCL] Complete image types support

2016-04-07 Thread Anastasia Stulova via cfe-commits
Anastasia added a comment. In http://reviews.llvm.org/D17821#393496, @bader wrote: > In http://reviews.llvm.org/D17821#393387, @Anastasia wrote: > > > Regarding, extending this approach for OpenCL pipe types too. I was > > thinking we could change current implementation to have ReadPipeType and

Re: [PATCH] D17482: [clang-tidy] Allow tests to verify changes made to header files

2016-04-07 Thread Alexander Kornienko via cfe-commits
alexfh added a comment. Let's try to turn this to a productive lane. I'm not against adding this functionality, if it's actually useful, but as is the patch doesn't meet the bar. Right now, there are a few action items. First, could you split the refactorings and send me as a separate patch? Th

r265700 - Minor Wdocumentation fix. NFCI.

2016-04-07 Thread Simon Pilgrim via cfe-commits
Author: rksimon Date: Thu Apr 7 12:38:24 2016 New Revision: 265700 URL: http://llvm.org/viewvc/llvm-project?rev=265700&view=rev Log: Minor Wdocumentation fix. NFCI. Modified: cfe/trunk/include/clang/Parse/Parser.h Modified: cfe/trunk/include/clang/Parse/Parser.h URL: http://llvm.org/viewvc

Re: [PATCH] D17412: PR19957: [OpenCL] incorrectly accepts implicit address space conversion with ternary operator

2016-04-07 Thread Anastasia Stulova via cfe-commits
Anastasia added a comment. In http://reviews.llvm.org/D17412#391351, @Matt wrote: > In http://reviews.llvm.org/D17412#391322, @Anastasia wrote: > > > Cool, thanks! I think we should commit this ASAP. > > > > @Xiuli/@Matt, do you have any more comments here? > > > Hi! I think that "Matt" for this

Re: [PATCH] D18265: [clang-tidy] New: checker misc-assign-operator-return

2016-04-07 Thread Samuel Benzaquen via cfe-commits
sbenza added inline comments. Comment at: clang-tidy/misc/AssignOperatorCheck.cpp:63 @@ +62,3 @@ + + Finder->addMatcher(returnStmt(IsBadReturnStatement, hasAncestor(IsGoodAssign)) + .bind("returnStmt"), baloghadamsoftware wrote: > sbenza

r265702 - Basic: move CodeGenOptions from Frontend

2016-04-07 Thread Saleem Abdulrasool via cfe-commits
Author: compnerd Date: Thu Apr 7 12:49:44 2016 New Revision: 265702 URL: http://llvm.org/viewvc/llvm-project?rev=265702&view=rev Log: Basic: move CodeGenOptions from Frontend This is a mechanical move of CodeGenOptions from libFrontend to libBasic. This fixes the layering violation introduced e

Re: [PATCH] D18694: [ClangTidy] Add an 'explain-checks' option to diagnose where each checks comes from.

2016-04-07 Thread Alexander Kornienko via cfe-commits
alexfh added inline comments. Comment at: clang-tidy/ClangTidyOptions.cpp:269 @@ +268,3 @@ + ->CheckSources[ClangTidyOptions::ConfigCommandlineOptionOrFile] + .push_back(ClangTidyOptions::StringPair(*ParsedOptions->Checks, +

Re: [PATCH] D18694: [ClangTidy] Add an 'explain-checks' option to diagnose where each checks comes from.

2016-04-07 Thread Alexander Kornienko via cfe-commits
alexfh added inline comments. Comment at: clang-tidy/tool/ClangTidyMain.cpp:281 @@ +280,3 @@ +.push_back(ClangTidyOptions::StringPair( +Checks, "command-line option '-checks'")); + } alexfh wrote: > Please pull this string literal to a constan

Re: [PATCH] D18191: [clang-tidy] Add check for function parameters that are const& to builtin types

2016-04-07 Thread Alexander Kornienko via cfe-commits
alexfh added inline comments. Comment at: docs/clang-tidy/checks/misc-const-ref-builtin.rst:28 @@ +27,2 @@ + +The instantiation of g will not be flagged. nit: enclose `g` with double backquotes, please. Same with other inline code snippets (`int`, `double`, etc.)

Re: [PATCH] D18852: [clang-tidy] fix a crash with -fdelayed-template-parsing in UnnecessaryValueParamCheck.

2016-04-07 Thread Kim Gräsman via cfe-commits
kimgr added a comment. The RUN line looks weird to me, but I'm no lit expert... Comment at: test/clang-tidy/performance-unnecessary-value-param-delayed.cpp:1 @@ +1,2 @@ +// RUN: %check_clang_tidy %s performance-unnecessary-value-param %t -- -- -fdelayed-template-parsing + -

Re: [PATCH] D18852: [clang-tidy] fix a crash with -fdelayed-template-parsing in UnnecessaryValueParamCheck.

2016-04-07 Thread Etienne Bergeron via cfe-commits
etienneb marked an inline comment as done. Comment at: test/clang-tidy/performance-unnecessary-value-param-delayed.cpp:1 @@ +1,2 @@ +// RUN: %check_clang_tidy %s performance-unnecessary-value-param %t -- -- -fdelayed-template-parsing + kimgr wrote: > Are the doub

Re: [PATCH] D18584: Complete support for C++ Core Guidelines Type.6: Always initialize a member variable.

2016-04-07 Thread Alexander Kornienko via cfe-commits
alexfh added a comment. A couple of nits. Comment at: clang-tidy/cppcoreguidelines/ProTypeMemberInitCheck.cpp:181 @@ +180,3 @@ + Init->isMemberInitializer() + ? static_cast(Init->getMember()) + : static_cast( If you're doing th

[libcxx] r265706 - Recommit r263036 with additional inlining, so that it will continue to work with existing system dylibs. Implements LWG#2583

2016-04-07 Thread Marshall Clow via cfe-commits
Author: marshall Date: Thu Apr 7 13:13:41 2016 New Revision: 265706 URL: http://llvm.org/viewvc/llvm-project?rev=265706&view=rev Log: Recommit r263036 with additional inlining, so that it will continue to work with existing system dylibs. Implements LWG#2583 Modified: libcxx/trunk/include/s

Re: [PATCH] D18649: [clang-tidy] cppcoreguidelines-interfaces-global-init

2016-04-07 Thread Alexander Kornienko via cfe-commits
alexfh added inline comments. Comment at: test/clang-tidy/cppcoreguidelines-interfaces-global-init.cpp:7 @@ +6,3 @@ + +extern int ExternGlobal; +static int GlobalScopeBadInit1 = ExternGlobal; What happens if you add: extern int ExternGlobal; extern int Extern

Re: [PATCH] D18745: [clang-tidy] Adds modernize-use-bool-literals check.

2016-04-07 Thread Alexander Kornienko via cfe-commits
alexfh requested changes to this revision. This revision now requires changes to proceed. Comment at: clang-tidy/modernize/UseBoolLiteralsCheck.cpp:39 @@ +38,3 @@ + + return LiteralSource.size() >= 1 && isDigit(LiteralSource.front()); +} Use `!x.empty()` instead

Re: [PATCH] D18852: [clang-tidy] fix a crash with -fdelayed-template-parsing in UnnecessaryValueParamCheck.

2016-04-07 Thread Kim Gräsman via cfe-commits
kimgr added inline comments. Comment at: test/clang-tidy/performance-unnecessary-value-param-delayed.cpp:1 @@ +1,2 @@ +// RUN: %check_clang_tidy %s performance-unnecessary-value-param %t -- -- -fdelayed-template-parsing + etienneb wrote: > kimgr wrote: > > Are th

Re: [PATCH] D16183: Added CheckName field to YAML report

2016-04-07 Thread Alexander Kornienko via cfe-commits
alexfh requested changes to this revision. alexfh added a comment. This revision now requires changes to proceed. The main concern here is that the clang-apply-replacements tool should be able to read this format. See the clang/tools/extra/clang-tidy/tool/run-clang-tidy.py script for an example

Re: [PATCH] D17821: [OpenCL] Complete image types support

2016-04-07 Thread Alexey Bader via cfe-commits
bader added a comment. In http://reviews.llvm.org/D17821#394620, @Anastasia wrote: > Yes, I think it's better to go in a separate commit, not to complicate this > one too much. Also since there are not many comment here, I think we should > try to commit it ASAP otherwise rebasing would be an i

Re: [PATCH] D18810: [Clang-tidy] Fix readability-static-definition-in-anonymous-namespace warnings; other minor fixes.

2016-04-07 Thread Alexander Kornienko via cfe-commits
alexfh added a comment. Actually, removal of `static` is not the right thing for LLVM: > Because of this, we have a simple guideline: make anonymous namespaces as > small as possible, and only use them for class declarations. http://llvm.org/docs/CodingStandards.html#anonymous-namespaces Rep

Re: [PATCH] D18271: Avoid -Wshadow warnings about constructor parameters named after fields

2016-04-07 Thread Alexander Kornienko via cfe-commits
alexfh added a comment. Richard, is there anything else that blocks this patch? Comment at: lib/Sema/SemaDecl.cpp:6372 @@ +6371,3 @@ + if (isa(OldDC)) { +if (isa(ShadowedDecl)) + return SDK_Field; How about `return isa(ShadowedDecl) ? SDK_Field : SDK_S

Re: [PATCH] D17362: [Sema] PR23090 Crash when return type or parameter types for extern "C" functions don't have external linkage

2016-04-07 Thread Richard Smith via cfe-commits
rsmith requested changes to this revision. rsmith added a comment. This revision now requires changes to proceed. Why do you think this is ill-formed? Using a type with internal linkage as the type of an extern "C" function is explicitly permitted by the C++ standard. [basic.link]p8 says: "A ty

Re: [PATCH] D17451: PR26448: [Sema] Fix determined type of ternary operator acting on two xvalue class types

2016-04-07 Thread Erik Pilkington via cfe-commits
erik.pilkington added a comment. Ping! http://reviews.llvm.org/D17451 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

r265711 - NFC: simplify code in BuildInstanceMessage.

2016-04-07 Thread Manman Ren via cfe-commits
Author: mren Date: Thu Apr 7 14:30:20 2016 New Revision: 265711 URL: http://llvm.org/viewvc/llvm-project?rev=265711&view=rev Log: NFC: simplify code in BuildInstanceMessage. Instead of searching the global pool multiple times: in LookupFactoryMethodInGlobalPool, LookupInstanceMethodInGlobalPool,

r265712 - [ObjC kindof] Use type bound to filter out the candidate methods.

2016-04-07 Thread Manman Ren via cfe-commits
Author: mren Date: Thu Apr 7 14:32:24 2016 New Revision: 265712 URL: http://llvm.org/viewvc/llvm-project?rev=265712&view=rev Log: [ObjC kindof] Use type bound to filter out the candidate methods. rdar://21306753 Modified: cfe/trunk/include/clang/Sema/Sema.h cfe/trunk/lib/Sema/SemaDeclOb

Re: [PATCH] D18843: Always have clang pass -pie-level and -pic-level values to the code generator

2016-04-07 Thread Sriraman Tallam via cfe-commits
tmsriram updated this revision to Diff 52945. tmsriram added a comment. Cleanup the code to use a local variable to store *Res.getLangOpts() http://reviews.llvm.org/D18843 Files: lib/Frontend/CompilerInvocation.cpp Index: lib/Frontend/CompilerInvocation.cpp ==

[libclc] r265713 - [AMDGPU] Implement get_local_size for amdgcn--amdhsa triple

2016-04-07 Thread Konstantin Zhuravlyov via cfe-commits
Author: kzhuravl Date: Thu Apr 7 14:54:19 2016 New Revision: 265713 URL: http://llvm.org/viewvc/llvm-project?rev=265713&view=rev Log: [AMDGPU] Implement get_local_size for amdgcn--amdhsa triple Differential Revision: http://reviews.llvm.org/D18284 Added: libclc/trunk/amdgcn-amdhsa/ libc

Re: [PATCH] D18271: Avoid -Wshadow warnings about constructor parameters named after fields

2016-04-07 Thread Reid Kleckner via cfe-commits
rnk added a comment. We had a conversation about this change around the office the other week, and people were concerned about false negatives like the trim_in_place one. Basically, I don't have time to discover all the ways you can modify your parameters: struct B { A a; B(A a) : a(

Re: [PATCH] D18271: Avoid -Wshadow warnings about constructor parameters named after fields

2016-04-07 Thread Richard Smith via cfe-commits
rsmith added inline comments. Comment at: lib/Sema/SemaDecl.cpp:1615 @@ -1614,2 +1614,3 @@ IdResolver.RemoveDecl(D); +ShadowingDecls.erase(D); } This'd be a good place to produce a -Wshadow-constructor or similar warning if D is still in the map. ===

Re: [PATCH] D18584: Complete support for C++ Core Guidelines Type.6: Always initialize a member variable.

2016-04-07 Thread Michael Miller via cfe-commits
michael_miller updated this revision to Diff 52950. michael_miller marked 15 inline comments as done. michael_miller added a comment. Removed a superfluous cast and added periods to some comments. http://reviews.llvm.org/D18584 Files: clang-tidy/cppcoreguidelines/ProTypeMemberInitCheck.cpp

r265718 - [modules] Allow differences in flags that only affect preprocessor predefines

2016-04-07 Thread Richard Smith via cfe-commits
Author: rsmith Date: Thu Apr 7 15:47:37 2016 New Revision: 265718 URL: http://llvm.org/viewvc/llvm-project?rev=265718&view=rev Log: [modules] Allow differences in flags that only affect preprocessor predefines (and __has_feature checks) between explicitly-specified module files and the current co

Re: [PATCH] D15031: CFG: Add CFGElement for automatic variables that leave the scope

2016-04-07 Thread Matthias Gehre via cfe-commits
mgehre added a comment. By the way, is there a tool to generate parts of the test based on clang output, i.e. something that will prefix the output of clang with "CHECK: " and "CHECK-NEXT:" so I can copy-and-paste it into my test file? http://reviews.llvm.org/D15031

Re: [PATCH] D15524: [GCC] Attribute ifunc support in clang

2016-04-07 Thread Eric Christopher via cfe-commits
echristo accepted this revision. echristo added a comment. This all seems reasonable to me, one inline rewording comment, and check with rjmccall before committing. Thanks! Comment at: include/clang/Basic/AttrDocs.td:2371 @@ +2370,3 @@ + +Not all targets support this attribute

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

2016-04-07 Thread Jérôme Duval via cfe-commits
korli removed rL LLVM as the repository for this revision. korli updated this revision to Diff 52953. korli added a comment. Thanks for the review, and sorry for the late reply. This updated diff takes rsmith's comments into account, adding a test test/Driver/haiku.c, a case for CST_Libcxx where

[PATCH] D18868: [Sema] PR27155: Fix a template argument deduction bug with base classes

2016-04-07 Thread Erik Pilkington via cfe-commits
erik.pilkington created this revision. erik.pilkington added a reviewer: rsmith. erik.pilkington added a subscriber: cfe-commits. Previously, clang would incorrectly reject the following: ``` struct S {}; template struct D : T {}; template void Foo(D); int fn() { D, 0> v; Foo(v);

r265728 - Replace Sema-level implementation of -fassume-sane-operator-new with a

2016-04-07 Thread Richard Smith via cfe-commits
Author: rsmith Date: Thu Apr 7 16:46:12 2016 New Revision: 265728 URL: http://llvm.org/viewvc/llvm-project?rev=265728&view=rev Log: Replace Sema-level implementation of -fassume-sane-operator-new with a CodeGen-level implementation. Instead of adding an attribute to clang's FunctionDecl, add the

Re: [PATCH] D18868: [Sema] PR27155: Fix a template argument deduction bug with base classes

2016-04-07 Thread Richard Smith via cfe-commits
rsmith added inline comments. Comment at: lib/Sema/SemaTemplateDeduction.cpp:1424-1426 @@ -1423,2 +1423,5 @@ + SmallVector DeducedOrig(Deduced.begin(), + Deduced.end()); + // Try to deduce template arguments fr

Re: [PATCH] D15031: CFG: Add CFGElement for automatic variables that leave the scope

2016-04-07 Thread Matthias Gehre via cfe-commits
mgehre updated this revision to Diff 52959. mgehre added a comment. Update for review comments - Change name from ObjLeavesScope to LifetimeEnds - Make sure that trivially destructible objects end their lifetime after non-trivial destructible objects - Add test - Add analyzer option to enable Li

Re: [PATCH] D15524: [GCC] Attribute ifunc support in clang

2016-04-07 Thread John McCall via cfe-commits
rjmccall added inline comments. Comment at: include/clang/Basic/AttrDocs.td:2371 @@ +2370,3 @@ + +Not all targets support this attribute. ELF targets support this attribute when using binutils v2.20.1 or higher and glibc v2.11.1 or higher. Non-ELF targets currently do not supp

Re: [PATCH] D15524: [GCC] Attribute ifunc support in clang

2016-04-07 Thread Eric Christopher via cfe-commits
echristo added inline comments. Comment at: include/clang/Basic/AttrDocs.td:2371 @@ +2370,3 @@ + +Not all targets support this attribute. ELF targets support this attribute when using binutils v2.20.1 or higher and glibc v2.11.1 or higher. Non-ELF targets currently do not supp

Re: [PATCH] D18868: [Sema] PR27155: Fix a template argument deduction bug with base classes

2016-04-07 Thread Erik Pilkington via cfe-commits
erik.pilkington updated this revision to Diff 52961. erik.pilkington added a comment. Invert some control flow for clarity, avoid unnecessary copy of deduced template arguments. http://reviews.llvm.org/D18868 Files: lib/Sema/SemaTemplateDeduction.cpp test/CXX/temp/temp.fct.spec/temp.deduct

[PATCH] D18876: NFC: unify clang / LLVM atomic ordering

2016-04-07 Thread JF Bastien via cfe-commits
jfb created this revision. jfb added reviewers: jyknight, reames. jfb added a subscriber: cfe-commits. Depends on http://reviews.llvm.org/D18875 This makes the C11 / C++11 *ABI* atomic ordering accessible from LLVM, as discussed in http://reviews.llvm.org/D18200#inline-151433 http://reviews.llv

Re: [PATCH] D18868: [Sema] PR27155: Fix a template argument deduction bug with base classes

2016-04-07 Thread Richard Smith via cfe-commits
rsmith accepted this revision. This revision is now accepted and ready to land. Comment at: lib/Sema/SemaTemplateDeduction.cpp:1449-1451 @@ +1448,5 @@ + + const RecordType *RecordT = Arg->getAs(); + if (!RecordT) +return Result; + Can you move th

[PATCH] D18879: Lit C++11 Compatibility Patch #6

2016-04-07 Thread Charles Li via cfe-commits
tigerleapgorge created this revision. tigerleapgorge added a reviewer: rsmith. tigerleapgorge added a subscriber: cfe-commits. 17 OpenMP tests have their expected diagnostics updated. The changes to each file are identical. http://reviews.llvm.org/D18879 Files: test/OpenMP/for_collapse_message

Re: [PATCH] D15524: [GCC] Attribute ifunc support in clang

2016-04-07 Thread Paul Robinson via cfe-commits
probinson added a subscriber: probinson. Comment at: include/clang/Basic/AttrDocs.td:2371 @@ +2370,3 @@ + +Not all targets support this attribute. ELF targets support this attribute when using binutils v2.20.1 or higher and glibc v2.11.1 or higher. Non-ELF targets currently do

[PATCH] D18882: [CUDA] Tweak math forward declares so we're compatible with libstdc++4.9.

2016-04-07 Thread Justin Lebar via cfe-commits
jlebar created this revision. jlebar added a reviewer: rsmith. jlebar added subscribers: tra, cfe-commits. See comments in patch; we were assuming that some stdlib math functions would be defined in namespace std, when in fact the spec says they should be defined in the global namespace. libstdc+

Re: [PATCH] D18882: [CUDA] Tweak math forward declares so we're compatible with libstdc++4.9.

2016-04-07 Thread Justin Lebar via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL265751: [CUDA] Tweak math forward declares so we're compatible with libstdc++4.9. (authored by jlebar). Changed prior to commit: http://reviews.llvm.org/D18882?vs=52979&id=52980#toc Repository: rL LL

  1   2   >