r266048 - [Clang][BuiltIn][avx512] Adding avx512 (shuf, sqrt{ss|sd}, rsqrt ) builtin to clang

2016-04-12 Thread Michael Zuckerman via cfe-commits
Author: mzuckerm Date: Tue Apr 12 02:59:39 2016 New Revision: 266048 URL: http://llvm.org/viewvc/llvm-project?rev=266048&view=rev Log: [Clang][BuiltIn][avx512] Adding avx512 (shuf,sqrt{ss|sd},rsqrt ) builtin to clang Modified: cfe/trunk/include/clang/Basic/BuiltinsX86.def cfe/trunk/lib/H

Re: [PATCH] D18551: Added Fixer implementation and fix() interface in clang-format for removing redundant code.

2016-04-12 Thread Eric Liu via cfe-commits
ioeric updated this revision to Diff 53370. ioeric added a comment. - minor changes in checkEmptyNamespace. http://reviews.llvm.org/D18551 Files: include/clang/Format/Format.h lib/Format/Format.cpp unittests/Format/CMakeLists.txt unittests/Format/CleanupTest.cpp unittests/Format/Forma

Re: [PATCH] D18961: Add a readability-deleted-default clang-tidy check.

2016-04-12 Thread Alex Pilkiewicz via cfe-commits
pilki updated this revision to Diff 53371. pilki marked an inline comment as done. http://reviews.llvm.org/D18961 Files: clang-tidy/readability/CMakeLists.txt clang-tidy/readability/DeletedDefaultCheck.cpp clang-tidy/readability/DeletedDefaultCheck.h clang-tidy/readability/Readability

Re: [PATCH] D18961: Add a readability-deleted-default clang-tidy check.

2016-04-12 Thread Alex Pilkiewicz via cfe-commits
pilki added inline comments. Comment at: clang-tidy/readability/DeletedDefaultCheck.cpp:35 @@ +34,3 @@ + this); + Finder->addMatcher(cxxMethodDecl(anyOf(isCopyAssignmentOperator(), + isMoveAssignmentOperator()), ---

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

2016-04-12 Thread Haojian Wu via cfe-commits
hokein updated this revision to Diff 53372. hokein added a comment. Keep track all the fields of ClangTidyOptions. http://reviews.llvm.org/D18694 Files: clang-tidy/ClangTidyOptions.cpp clang-tidy/ClangTidyOptions.h clang-tidy/tool/ClangTidyMain.cpp test/clang-tidy/Inputs/explain-config/

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

2016-04-12 Thread Haojian Wu via cfe-commits
hokein marked an inline comment as done. hokein added a comment. In http://reviews.llvm.org/D18694#396797, @alexfh wrote: > I've just realized that the approach is artificially limited to just keeping > track of the origin of the `Checks` option, while it could be easily extended > to track the

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

2016-04-12 Thread Haojian Wu via cfe-commits
hokein updated this revision to Diff 53373. hokein added a comment. Don't modify unrelevant code. http://reviews.llvm.org/D18694 Files: clang-tidy/ClangTidyOptions.cpp clang-tidy/ClangTidyOptions.h clang-tidy/tool/ClangTidyMain.cpp test/clang-tidy/Inputs/explain-config/.clang-tidy tes

r266052 - [OPENMP 4.0] Support for 'aligned' clause in 'declare simd' directive.

2016-04-12 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Tue Apr 12 04:35:56 2016 New Revision: 266052 URL: http://llvm.org/viewvc/llvm-project?rev=266052&view=rev Log: [OPENMP 4.0] Support for 'aligned' clause in 'declare simd' directive. The aligned clause declares that the object to which each list item points is aligned to th

Re: [PATCH] D18961: Add a readability-deleted-default clang-tidy check.

2016-04-12 Thread Alexander Kornienko via cfe-commits
alexfh accepted this revision. alexfh added a comment. This revision is now accepted and ready to land. Looks good. A couple of comments. I'm happy to commit the patch for you once you answer the comments. Thank you for the work! Comment at: clang-tidy/readability/DeletedDefa

r266056 - [OPENMP 4.0] Support for 'linear' clause in 'declare simd' directive.

2016-04-12 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Tue Apr 12 06:02:11 2016 New Revision: 266056 URL: http://llvm.org/viewvc/llvm-project?rev=266056&view=rev Log: [OPENMP 4.0] Support for 'linear' clause in 'declare simd' directive. The linear clause declares one or more list items to be private to a SIMD lane and to have a

Re: [PATCH] D18474: [OPENMP] Enable correct generation of runtime call when target directive is separated from teams directive by multiple curly brackets

2016-04-12 Thread Alexey Bataev via cfe-commits
ABataev added inline comments. Comment at: lib/CodeGen/CGOpenMPRuntime.cpp:4260-4273 @@ -4259,2 +4259,16 @@ +/// \brief look inside a Body stmt for a LF statement discarding any +/// intervening CompoundStmt's +template +const static LF *hasEnclosingOpenMPDirective(const Stmt *

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

2016-04-12 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] D18961: Add a readability-deleted-default clang-tidy check.

2016-04-12 Thread Alex Pilkiewicz via cfe-commits
pilki updated this revision to Diff 53381. pilki marked an inline comment as done. http://reviews.llvm.org/D18961 Files: clang-tidy/readability/CMakeLists.txt clang-tidy/readability/DeletedDefaultCheck.cpp clang-tidy/readability/DeletedDefaultCheck.h clang-tidy/readability/Readability

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

2016-04-12 Thread Michael Miller via cfe-commits
michael_miller updated this revision to Diff 53380. michael_miller marked 2 inline comments as done. michael_miller added a comment. Herald added a subscriber: klimek. Moved isDelegatingConstructor and isUserProvided into clang/include/clang/ASTMatchers/ASTMatchers.h and updated the tests and doc

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

2016-04-12 Thread Michael Miller via cfe-commits
michael_miller marked 3 inline comments as done. michael_miller added a comment. Sounds good! Updated with suggested changes. http://reviews.llvm.org/D18584 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailma

Re: [PATCH] D18961: Add a readability-deleted-default clang-tidy check.

2016-04-12 Thread Alex Pilkiewicz via cfe-commits
pilki added inline comments. Comment at: clang-tidy/readability/DeletedDefaultCheck.cpp:36 @@ +35,3 @@ +} + +void DeletedDefaultCheck::check(const MatchFinder::MatchResult &Result) { alexfh wrote: > I would at least join matchers, since, I believe, it might be mo

r266057 - Remove unused diagnostics. NFC.

2016-04-12 Thread Benjamin Kramer via cfe-commits
Author: d0k Date: Tue Apr 12 06:49:52 2016 New Revision: 266057 URL: http://llvm.org/viewvc/llvm-project?rev=266057&view=rev Log: Remove unused diagnostics. NFC. Modified: cfe/trunk/include/clang/Basic/DiagnosticLexKinds.td cfe/trunk/include/clang/Basic/DiagnosticSemaKinds.td Modified: c

Re: [PATCH] D18953: [ms][dll] #26935 Defining a dllimport function should cause it to be exported

2016-04-12 Thread Andrew V. Tischenko via cfe-commits
avt77 marked an inline comment as done. Comment at: lib/Sema/SemaDecl.cpp:5570 @@ -5565,3 +5569,3 @@ // and qualified friend declarations. - // NB: MSVC converts such a declaration to dllexport. + // NB: MSVC converts such a declaration to dllexport that's why we do it also.

Re: [PATCH] D14286: ASTImporter: expressions, pt.1

2016-04-12 Thread Aleksei Sidorin via cfe-commits
a.sidorin updated this revision to Diff 53389. a.sidorin added a comment. Update to current master; Fix a memory leak introduced in cf8ccff5: an array is allocated in ImportArray and never freed. http://reviews.llvm.org/D14286 Files: include/clang/AST/Type.h lib/AST/ASTImporter.cpp unitt

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

2016-04-12 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 correction (you can correct when committing it). Comment at: unittests/ASTMatchers/ASTMatchersTest.cpp:2343 @@ +2342,3 @@ + +TEST(DestructorD

Re: [PATCH] D18970: Add functions in ctype.h to builtin function database

2016-04-12 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 small nit. Comment at: include/clang/Basic/Builtins.h:97 @@ -96,1 +96,3 @@ + /// \brief Return true if this function has no side effects + boo

Re: [PATCH] D16044: getDescriptiveName() for MemRegion

2016-04-12 Thread Gábor Horváth via cfe-commits
xazax.hun added a comment. What is the status of this? As far as I understand it is blocked on that there is no checker that we could use to test this function with unknown variables as indexes? http://reviews.llvm.org/D16044 ___ cfe-commits maili

Re: [PATCH] D18961: Add a readability-deleted-default clang-tidy check.

2016-04-12 Thread Aaron Ballman via cfe-commits
aaron.ballman added a subscriber: aaron.ballman. aaron.ballman added a comment. I share David's consideration for making this a compiler warning instead of a clang-tidy check. Perhaps it would make sense to gather some data using this check over some large code bases to see how often it triggers

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

2016-04-12 Thread Ilia Gromov via cfe-commits
Elijah_Th added a comment. alexfh, OK. I'll take a look at apply-replacements and fix if needed, in the beginning of the next week! http://reviews.llvm.org/D16183 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bi

Re: [PATCH] D16044: getDescriptiveName() for MemRegion

2016-04-12 Thread Alexander Droste via cfe-commits
Alexander_Droste added a comment. > What is the status of this? > As far as I understand it is blocked on that there is no checker that we > could use to test this function with unknown variables as indexes? Yes, this is blocked due to the MPI-Checker dependency. The best thing I can offer at

Re: [PATCH] D18970: Add functions in ctype.h to builtin function database

2016-04-12 Thread Taewook Oh via cfe-commits
twoh updated this revision to Diff 53395. twoh added a comment. Addressing comments from @aaron.ballman. It would be great if someone can commit this patch for me, as I don't have the privilege yet. http://reviews.llvm.org/D18970 Files: include/clang/Basic/Builtins.def include/clang/Basic/

Re: [PATCH] D18963: PR27216: Only define __ARM_FEATURE_FMA when the target has VFPv4

2016-04-12 Thread silviu.bara...@arm.com via cfe-commits
sbaranga added inline comments. Comment at: test/Sema/arm_vfma.c:1 @@ -1,2 +1,2 @@ -// RUN: %clang_cc1 -triple thumbv7s-apple-ios7.0 -target-feature +neon -fsyntax-only -verify %s +// RUN: %clang_cc1 -triple thumbv7s-apple-ios7.0 -target-feature +neon -target-feature +vfp4 -fsyn

Re: [PATCH] D18914: [clang-tidy] new readability-redundant-inline

2016-04-12 Thread Samuel Benzaquen via cfe-commits
sbenza added inline comments. Comment at: clang-tidy/readability/RedundantInlineCheck.cpp:68 @@ +67,3 @@ + } + llvm_unreachable("InlineTok() did not encounter the 'inline' token"); +} This is still reachable. The token might be hidden through macros, for example

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

2016-04-12 Thread Samuel Benzaquen via cfe-commits
sbenza updated this revision to Diff 53398. sbenza marked an inline comment as done. sbenza added a comment. Change warning message. http://reviews.llvm.org/D18766 Files: clang-tidy/misc/CMakeLists.txt clang-tidy/misc/MiscTidyModule.cpp clang-tidy/misc/MultipleStatementMacroCheck.cpp cl

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

2016-04-12 Thread Samuel Benzaquen via cfe-commits
sbenza added inline comments. Comment at: clang-tidy/misc/MultipleStatementMacroCheck.cpp:99 @@ +98,3 @@ + + diag(InnerRanges.back().first, "multiple statement macro spans unbraced " + "conditional and the following statement"); al

r266079 - Moving clang-test-depends into the Clang tests folder and moving vtables_blacklist into the Misc folder; NFC, this simply cleans up the generated solution so that these targets don't live in

2016-04-12 Thread Aaron Ballman via cfe-commits
Author: aaronballman Date: Tue Apr 12 10:09:17 2016 New Revision: 266079 URL: http://llvm.org/viewvc/llvm-project?rev=266079&view=rev Log: Moving clang-test-depends into the Clang tests folder and moving vtables_blacklist into the Misc folder; NFC, this simply cleans up the generated solution so

Re: [PATCH] D18961: Add a readability-deleted-default clang-tidy check.

2016-04-12 Thread Alex Pilkiewicz via cfe-commits
pilki added a comment. Fixed all the comment but the one about merging the two matchers. http://reviews.llvm.org/D18961 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[PATCH] D19014: [clang-tidy] Add new checker for suspicious sizeof expressions

2016-04-12 Thread Etienne Bergeron via cfe-commits
etienneb created this revision. etienneb added a reviewer: alexfh. etienneb added a subscriber: cfe-commits. This check found suspicious cases of sizeof expression. Sizeof expression is retuning the size (in bytes) of a type or an expression. Programmers often abuse of misuse this expression. Th

Re: [PATCH] D18961: Add a readability-deleted-default clang-tidy check.

2016-04-12 Thread Alex Pilkiewicz via cfe-commits
pilki updated this revision to Diff 53404. pilki marked 3 inline comments as done. http://reviews.llvm.org/D18961 Files: clang-tidy/readability/CMakeLists.txt clang-tidy/readability/DeletedDefaultCheck.cpp clang-tidy/readability/DeletedDefaultCheck.h clang-tidy/readability/Readability

Re: [PATCH] D18700: [Inline asm][GCC compatibility] Handle %v-prefixed code in inline assembly

2016-04-12 Thread Denis Zobnin via cfe-commits
d.zobnin.bugzilla updated this revision to Diff 53400. d.zobnin.bugzilla added a comment. Eric, thank you for the review! I've renamed the test, but have also made it a .cpp file for the reasons described below. You are right -- GCC looks at "target" attribute applied to the function in which

Re: [PATCH] D18963: PR27216: Only define __ARM_FEATURE_FMA when the target has VFPv4

2016-04-12 Thread silviu.bara...@arm.com via cfe-commits
sbaranga updated this revision to Diff 53409. sbaranga added a comment. If no cpu has been passed to the command line, use the generic cpu when selecting features/FPU, instead of using an empty string (which is not recognized by the TargetParser). http://reviews.llvm.org/D18963 Files: lib/Ba

Re: [PATCH] D18963: PR27216: Only define __ARM_FEATURE_FMA when the target has VFPv4

2016-04-12 Thread silviu.bara...@arm.com via cfe-commits
sbaranga added a comment. I've updated the patch to fix the defaults when the cpu is not specified. Renato, Tim, could you have a look at this again please? Thanks, Silviu http://reviews.llvm.org/D18963 ___ cfe-commits mailing list cfe-commits@lis

Re: [PATCH] D19014: [clang-tidy] Add new checker for suspicious sizeof expressions

2016-04-12 Thread Alexander Kornienko via cfe-commits
alexfh added a comment. The check is really awesome! Thank you for coming up with all the patterns that frequently happen to result from coding errors! Please update release notes. A few inline comments as well. Comment at: clang-tidy/misc/SizeofExpressionCheck.cpp:22 @@ +21,

r266083 - Verify commit right by adding a blank line to test/CodeGenOpenCL/address-spaces-conversions.cl.

2016-04-12 Thread Yaxun Liu via cfe-commits
Author: yaxunl Date: Tue Apr 12 10:46:24 2016 New Revision: 266083 URL: http://llvm.org/viewvc/llvm-project?rev=266083&view=rev Log: Verify commit right by adding a blank line to test/CodeGenOpenCL/address-spaces-conversions.cl. Modified: cfe/trunk/test/CodeGenOpenCL/address-spaces-conversio

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

2016-04-12 Thread Justin Lebar via cfe-commits
jlebar updated this revision to Diff 53415. jlebar added a comment. Switch [this] to [&]. http://reviews.llvm.org/D18617 Files: lib/CodeGen/BackendUtil.cpp Index: lib/CodeGen/BackendUtil.cpp === --- lib/CodeGen/BackendUtil.cpp +

Re: [PATCH] D18961: Add a readability-deleted-default clang-tidy check.

2016-04-12 Thread Alexander Kornienko via cfe-commits
alexfh added inline comments. Comment at: clang-tidy/readability/DeletedDefaultCheck.cpp:37 @@ +36,3 @@ + +void DeletedDefaultCheck::check(const MatchFinder::MatchResult &Result) { + const StringRef Message = "%0 is explicitly defaulted but implicitly " Will it

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

2016-04-12 Thread Alexander Kornienko via cfe-commits
alexfh added inline comments. Comment at: clang-tidy/misc/MultipleStatementMacroCheck.cpp:100 @@ +99,3 @@ + diag(InnerRanges.back().first, "multiple statement macro used without " + "braces; some statements will be " +

Re: [PATCH] D16044: getDescriptiveName() for MemRegion

2016-04-12 Thread Anna Zaks via cfe-commits
zaks.anna added a comment. Gabor, Can other checkers use this function? I am Ok with this being committed with limited coverage. http://reviews.llvm.org/D16044 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/m

Re: [patch] clang-cl: Remove -isystem, add -imsvc, expose -nostdlibinc

2016-04-12 Thread Hans Wennborg via cfe-commits
On Mon, Apr 11, 2016 at 7:16 PM, Nico Weber wrote: > r260990 exposed -isystem in clang-cl. -isystem adds a directory to the front > of the system include search path. The idea was to use this to point to a > hermetic msvc install, but as it turns out this doesn't work: -isystem then > adds the her

Re: [PATCH] D18657: Propagate missing empty exception spec from function declared in system header

2016-04-12 Thread Denis Zobnin via cfe-commits
d.zobnin.bugzilla updated this revision to Diff 53414. d.zobnin.bugzilla added a comment. John, thanks for the review! Please take a look at the updated patch -- did I understand your comments correctly? The test passes and ds2 application is compiled successfully. Thank you, Denis Zobnin htt

r266089 - [FileManager] Don't crash if reading from stdin and stat(".") fails

2016-04-12 Thread David Majnemer via cfe-commits
Author: majnemer Date: Tue Apr 12 11:33:53 2016 New Revision: 266089 URL: http://llvm.org/viewvc/llvm-project?rev=266089&view=rev Log: [FileManager] Don't crash if reading from stdin and stat(".") fails addAncestorsAsVirtualDirs("") quickly returns without doing work because "" has no parent_path

r266090 - clang-cl: Expose -nostdlibinc.

2016-04-12 Thread Nico Weber via cfe-commits
Author: nico Date: Tue Apr 12 11:38:07 2016 New Revision: 266090 URL: http://llvm.org/viewvc/llvm-project?rev=266090&view=rev Log: clang-cl: Expose -nostdlibinc. Modified: cfe/trunk/include/clang/Driver/Options.td cfe/trunk/test/Driver/cl-options.c Modified: cfe/trunk/include/clang/Drive

Re: r265994 - libclang: fix two memory leaks (PR26292)

2016-04-12 Thread David Blaikie via cfe-commits
Any chance of using unique_ptr, or at least a scoped cleanup device, here? On Mon, Apr 11, 2016 at 1:54 PM, Hans Wennborg via cfe-commits < cfe-commits@lists.llvm.org> wrote: > Author: hans > Date: Mon Apr 11 15:53:59 2016 > New Revision: 265994 > > URL: http://llvm.org/viewvc/llvm-project?rev=26

r266091 - Revert 266090, needs more testing first.

2016-04-12 Thread Nico Weber via cfe-commits
Author: nico Date: Tue Apr 12 11:52:30 2016 New Revision: 266091 URL: http://llvm.org/viewvc/llvm-project?rev=266091&view=rev Log: Revert 266090, needs more testing first. Modified: cfe/trunk/include/clang/Driver/Options.td cfe/trunk/test/Driver/cl-options.c Modified: cfe/trunk/include/c

Re: [PATCH] D18849: [modules] Avoid module relocation error when building modules from VFS

2016-04-12 Thread Ben Langmuir via cfe-commits
benlangmuir added a comment. > From what I understand from > http://lists.llvm.org/pipermail/cfe-dev/2014-July/038273.html, changing the > behavior of the cached result has side-effects and demands a non trivial > change, am I assuming the right thing? Yes. Threading through the Filename see

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

2016-04-12 Thread Chandler Carruth via cfe-commits
chandlerc added inline comments. Comment at: lib/CodeGen/BackendUtil.cpp:347 @@ +346,3 @@ +PassManagerBuilder::EP_EarlyAsPossible, +[&](const PassManagerBuilder &, legacy::PassManagerBase &PM) { + TM->addEarlyAsPossiblePasses(PM); Wow, C++

RE: r266005 - Allow simultaneous safestack and stackprotector attributes.

2016-04-12 Thread Robinson, Paul via cfe-commits
> -Original Message- > From: cfe-commits [mailto:cfe-commits-boun...@lists.llvm.org] On Behalf Of > Evgeniy Stepanov via cfe-commits > Sent: Monday, April 11, 2016 3:28 PM > To: cfe-commits@lists.llvm.org > Subject: r266005 - Allow simultaneous safestack and stackprotector > attributes. >

Re: [PATCH] D16044: getDescriptiveName() for MemRegion

2016-04-12 Thread Gábor Horváth via cfe-commits
xazax.hun added a comment. In http://reviews.llvm.org/D16044#398463, @zaks.anna wrote: > Can other checkers use this function? I am Ok with this being committed with > limited coverage. Once I rebase http://reviews.llvm.org/D15227, it will provide us with the limited coverage. In case that pa

Re: r262817 - [CLANG][AVX512][BUILTIN] Adding vpmultishiftqb{128|256|512}

2016-04-12 Thread Chandler Carruth via cfe-commits
On Mon, Mar 7, 2016 at 12:33 AM Michael Zuckerman via cfe-commits < cfe-commits@lists.llvm.org> wrote: > Author: mzuckerm > Date: Mon Mar 7 02:29:10 2016 > New Revision: 262817 > > URL: http://llvm.org/viewvc/llvm-project?rev=262817&view=rev > Log: > [CLANG][AVX512][BUILTIN] Adding vpmultishiftqb

Re: [PATCH] D18474: [OPENMP] Enable correct generation of runtime call when target directive is separated from teams directive by multiple curly brackets

2016-04-12 Thread Carlo Bertolli via cfe-commits
carlo.bertolli marked an inline comment as done. carlo.bertolli added a comment. Great, thanks for the hint. I do much prefer your version of the function. I am updating the diff. Repository: rL LLVM http://reviews.llvm.org/D18474 ___ cfe-commit

Re: [PATCH] D18474: [OPENMP] Enable correct generation of runtime call when target directive is separated from teams directive by multiple curly brackets

2016-04-12 Thread Carlo Bertolli via cfe-commits
carlo.bertolli updated this revision to Diff 53425. carlo.bertolli added a comment. [OPENMP] Remove unnecessary templating of function. Repository: rL LLVM http://reviews.llvm.org/D18474 Files: lib/CodeGen/CGOpenMPRuntime.cpp test/OpenMP/teams_codegen.cpp Index: test/OpenMP/teams_codege

Re: [PATCH] D19014: [clang-tidy] Add new checker for suspicious sizeof expressions

2016-04-12 Thread Etienne Bergeron via cfe-commits
etienneb updated this revision to Diff 53428. etienneb marked 6 inline comments as done. etienneb added a comment. fix alexfh@ comments http://reviews.llvm.org/D19014 Files: clang-tidy/misc/CMakeLists.txt clang-tidy/misc/MiscTidyModule.cpp clang-tidy/misc/SizeofExpressionCheck.cpp clang

Re: r265994 - libclang: fix two memory leaks (PR26292)

2016-04-12 Thread Hans Wennborg via cfe-commits
While useful, that would require a lot of restructuring, I think. This file seems to mostly be dealing with C-style objects; ExprEvalResult doesn't even have a C++ destructor. I'm not going to dig into that, I just wanted to address this bug that someone reported. - Hans On Tue, Apr 12, 2016 a

Re: r266005 - Allow simultaneous safestack and stackprotector attributes.

2016-04-12 Thread Evgenii Stepanov via cfe-commits
Thanks, fixed in r266095 On Tue, Apr 12, 2016 at 10:15 AM, Robinson, Paul wrote: > > >> -Original Message- >> From: cfe-commits [mailto:cfe-commits-boun...@lists.llvm.org] On Behalf Of >> Evgeniy Stepanov via cfe-commits >> Sent: Monday, April 11, 2016 3:28 PM >> To: cfe-commits@lists.llv

r266095 - Stricter checks in the stack-protector codegen test.

2016-04-12 Thread Evgeniy Stepanov via cfe-commits
Author: eugenis Date: Tue Apr 12 12:51:59 2016 New Revision: 266095 URL: http://llvm.org/viewvc/llvm-project?rev=266095&view=rev Log: Stricter checks in the stack-protector codegen test. Modified: cfe/trunk/test/CodeGen/stack-protector.c Modified: cfe/trunk/test/CodeGen/stack-protector.c URL

Re: [PATCH] D14286: ASTImporter: expressions, pt.1

2016-04-12 Thread Sean Callanan via cfe-commits
spyffe added a subscriber: spyffe. spyffe added a comment. Aleksei, it looks like I might have made a bad assumption in my ImportArray – namely that there were some entities that required arrays of things they’re constructed with to be allocated in the ASTContext. Looking at the constructors

Re: [PATCH] D14286: ASTImporter: expressions, pt.1

2016-04-12 Thread Sean Callanan via cfe-commits
Aleksei, it looks like I might have made a bad assumption in my ImportArray – namely that there were some entities that required arrays of things they’re constructed with to be allocated in the ASTContext. Looking at the constructors for those entities, it looks like most of them actually do t

Re: [PATCH] D19014: [clang-tidy] Add new checker for suspicious sizeof expressions

2016-04-12 Thread Etienne Bergeron via cfe-commits
etienneb updated this revision to Diff 53429. etienneb added a comment. release notes. http://reviews.llvm.org/D19014 Files: clang-tidy/misc/CMakeLists.txt clang-tidy/misc/MiscTidyModule.cpp clang-tidy/misc/SizeofExpressionCheck.cpp clang-tidy/misc/SizeofExpressionCheck.h docs/Release

Re: [PATCH] D19014: [clang-tidy] Add new checker for suspicious sizeof expressions

2016-04-12 Thread Etienne Bergeron via cfe-commits
etienneb updated this revision to Diff 53431. etienneb added a comment. more unittests http://reviews.llvm.org/D19014 Files: clang-tidy/misc/CMakeLists.txt clang-tidy/misc/MiscTidyModule.cpp clang-tidy/misc/SizeofExpressionCheck.cpp clang-tidy/misc/SizeofExpressionCheck.h docs/Release

Re: [PATCH] D18474: [OPENMP] Enable correct generation of runtime call when target directive is separated from teams directive by multiple curly brackets

2016-04-12 Thread Alexey Bataev via cfe-commits
ABataev accepted this revision. ABataev added a comment. This revision is now accepted and ready to land. LG, except for the small comment Comment at: lib/CodeGen/CGOpenMPRuntime.cpp:4260 @@ -4259,1 +4259,3 @@ +/// \brief discard all CompoundStmts intervening between two const

Re: [PATCH] D19014: [clang-tidy] Add new checker for suspicious sizeof expressions

2016-04-12 Thread Etienne Bergeron via cfe-commits
etienneb updated this revision to Diff 53436. etienneb added a comment. fix typos and doc. http://reviews.llvm.org/D19014 Files: clang-tidy/misc/CMakeLists.txt clang-tidy/misc/MiscTidyModule.cpp clang-tidy/misc/SizeofExpressionCheck.cpp clang-tidy/misc/SizeofExpressionCheck.h docs/Rel

Re: [PATCH] D18997: [SemaObjC] Properly diagnose type arguments and protocols mix in parameterized classes

2016-04-12 Thread Manman Ren via cfe-commits
manmanren added inline comments. Comment at: lib/Parse/ParseObjc.cpp:1697 @@ -1696,3 +1696,3 @@ // We syntactically matched a type argument, so commit to parsing - // type arguments. + // type arguments. Finding protocol arguments after here is an error. I

Re: [PATCH] D18748: [AMDGPU] Add debugger related target options

2016-04-12 Thread Konstantin Zhuravlyov via cfe-commits
kzhuravl added a comment. ping http://reviews.llvm.org/D18748 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Re: [PATCH] D19014: [clang-tidy] Add new checker for suspicious sizeof expressions

2016-04-12 Thread Alexander Kornienko via cfe-commits
alexfh added inline comments. Comment at: clang-tidy/misc/SizeofExpressionCheck.cpp:197 @@ +196,3 @@ + this); +} + What about this comment? Comment at: clang-tidy/misc/SizeofExpressionCheck.cpp:203 @@ +202,3 @@ + if (const auto *E = Result.

Re: [patch] clang-cl: Remove -isystem, add -imsvc, expose -nostdlibinc

2016-04-12 Thread Nico Weber via cfe-commits
All done. phab's back, but since we started with a patch attachment, let's keep it that way. On Tue, Apr 12, 2016 at 12:12 PM, Hans Wennborg wrote: > On Mon, Apr 11, 2016 at 7:16 PM, Nico Weber wrote: > > r260990 exposed -isystem in clang-cl. -isystem adds a directory to the > front > > of th

Re: [PATCH] D15469: Expose cxx constructor and method properties through libclang and python bindings.

2016-04-12 Thread Sergey Kalinichev via cfe-commits
skalinichev accepted this revision. skalinichev added a comment. LGTM! Comment at: bindings/python/tests/cindex/test_cursor.py:197 @@ +196,3 @@ + +def test_is_deleted_method(): +"""Ensure Cursor.is_deleted_method works.""" You should remove it too. http://

Re: [patch] clang-cl: Remove -isystem, add -imsvc, expose -nostdlibinc

2016-04-12 Thread Hans Wennborg via cfe-commits
LGTM On Tue, Apr 12, 2016 at 11:40 AM, Nico Weber wrote: > All done. phab's back, but since we started with a patch attachment, let's > keep it that way. > > > > On Tue, Apr 12, 2016 at 12:12 PM, Hans Wennborg wrote: >> >> On Mon, Apr 11, 2016 at 7:16 PM, Nico Weber wrote: >> > r260990 exposed

Re: [PATCH] D19014: [clang-tidy] Add new checker for suspicious sizeof expressions

2016-04-12 Thread Etienne Bergeron via cfe-commits
etienneb updated this revision to Diff 53437. etienneb marked 5 inline comments as done. etienneb added a comment. alexfh comments. http://reviews.llvm.org/D19014 Files: clang-tidy/misc/CMakeLists.txt clang-tidy/misc/MiscTidyModule.cpp clang-tidy/misc/SizeofExpressionCheck.cpp clang-tid

Re: [PATCH] D19014: [clang-tidy] Add new checker for suspicious sizeof expressions

2016-04-12 Thread Etienne Bergeron via cfe-commits
etienneb added inline comments. Comment at: clang-tidy/misc/SizeofExpressionCheck.cpp:27 @@ +26,3 @@ + +AST_MATCHER(BinaryOperator, isRelationnalOperator) { + return Node.isRelationalOp(); alexfh wrote: > alexfh wrote: > > nit: extra 'n' in "relational" > I'd put

Re: [PATCH] D14286: ASTImporter: expressions, pt.1

2016-04-12 Thread Sean Callanan via cfe-commits
spyffe accepted this revision. spyffe added a comment. This revision is now accepted and ready to land. This all looks fine to me, and the LLDB test suite is happy also. http://reviews.llvm.org/D14286 ___ cfe-commits mailing list cfe-commits@lists.l

Re: [PATCH] D12761: MPI-Checker patch for Clang Static Analyzer

2016-04-12 Thread Anna Zaks via cfe-commits
zaks.anna added a comment. Alexander, This patch is in a pretty good shape. I am fine with committing it and iterating with smaller updates in tree if it is more convenient for you. One task that I would like to very strongly encourage is running this on a lot of code. You will find a lot of i

Re: [PATCH] D18748: [AMDGPU] Add debugger related target options

2016-04-12 Thread Matt Arsenault via cfe-commits
arsenm accepted this revision. arsenm added a comment. This revision is now accepted and ready to land. LGTM http://reviews.llvm.org/D18748 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-co

Re: [PATCH] D18713: [OpenCL] Generate bitcast when target address space does not change.

2016-04-12 Thread Yaxun Liu via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL266107: [OpenCL] Handle AddressSpaceConversion when target address space does not… (authored by yaxunl). Changed prior to commit: http://reviews.llvm.org/D18713?vs=52800&id=53439#toc Repository: rL L

r266108 - clang-cl: Remove -isystem, add -imsvc.

2016-04-12 Thread Nico Weber via cfe-commits
Author: nico Date: Tue Apr 12 14:04:37 2016 New Revision: 266108 URL: http://llvm.org/viewvc/llvm-project?rev=266108&view=rev Log: clang-cl: Remove -isystem, add -imsvc. r260990 exposed -isystem in clang-cl. -isystem adds a directory to the front of the system include search path. The idea was to

RE: r262817 - [CLANG][AVX512][BUILTIN] Adding vpmultishiftqb{128|256|512}

2016-04-12 Thread Demikhovsky, Elena via cfe-commits
Yes, we’ll try make the patches smaller and avoid such mistakes. - Elena From: Chandler Carruth [mailto:chandl...@google.com] Sent: Tuesday, April 12, 2016 20:25 To: Zuckerman, Michael ; cfe-commits@lists.llvm.org; Demikhovsky, Elena Subject: Re: r262817 - [CLANG][AVX512][BUILTIN] Add

r266107 - [OpenCL] Handle AddressSpaceConversion when target address space does not change.

2016-04-12 Thread Yaxun Liu via cfe-commits
Author: yaxunl Date: Tue Apr 12 14:03:49 2016 New Revision: 266107 URL: http://llvm.org/viewvc/llvm-project?rev=266107&view=rev Log: [OpenCL] Handle AddressSpaceConversion when target address space does not change. In codegen different address spaces may be mapped to the same address space for a

Re: [PATCH] D18997: [SemaObjC] Properly diagnose type arguments and protocols mix in parameterized classes

2016-04-12 Thread Bruno Cardoso Lopes via cfe-commits
bruno added a comment. Hi Manman, Comment at: lib/Parse/ParseObjc.cpp:1697 @@ -1696,3 +1696,3 @@ // We syntactically matched a type argument, so commit to parsing - // type arguments. + // type arguments. Finding protocol arguments after here is an error.

Re: [PATCH] D19014: [clang-tidy] Add new checker for suspicious sizeof expressions

2016-04-12 Thread Alexander Kornienko via cfe-commits
alexfh added inline comments. Comment at: clang-tidy/misc/SizeofExpressionCheck.cpp:28 @@ +27,3 @@ + return Node.getValue().getZExtValue() > N; +} + There are no firm rules. It mostly depends on how generic/useful in other tools the matcher could be. This one se

Re: [PATCH] D18849: [modules] Avoid module relocation error when building modules from VFS

2016-04-12 Thread Bruno Cardoso Lopes via cfe-commits
bruno added a comment. Hi Ben, Comment at: lib/Basic/FileManager.cpp:221-223 @@ -220,2 +220,5 @@ // See if there is already an entry in the map. + // FIXME: Note that when first requested, the returned file name equals to the + // requested path. This is not true when retu

r266109 - [analyzer] Nullability: Suppress return diagnostics in inlined functions.

2016-04-12 Thread Devin Coughlin via cfe-commits
Author: dcoughlin Date: Tue Apr 12 14:29:52 2016 New Revision: 266109 URL: http://llvm.org/viewvc/llvm-project?rev=266109&view=rev Log: [analyzer] Nullability: Suppress return diagnostics in inlined functions. The nullability checker can sometimes miss detecting nullability precondition violation

Re: [PATCH] D13610: [CodeGen] Fix CodeGenModule::CreateGlobalInitOrDestructFunction

2016-04-12 Thread Keno Fischer via cfe-commits
loladiro added a subscriber: loladiro. loladiro added a comment. Thanks for this. I was about to create the same patch (after seeing this broken on 3.7) only to see it had already been done! Repository: rL LLVM http://reviews.llvm.org/D13610 ___

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

2016-04-12 Thread Alexander Kornienko via cfe-commits
alexfh added a comment. BTW, why is the check in the 'modernize' module? It doesn't seem to make anything more modern. I would guess, the pattern it detects is most likely to result from a programming error. Also, the fix, though it retains the behavior, has a high chance to be incorrect. Can y

Re: [PATCH] D19014: [clang-tidy] Add new checker for suspicious sizeof expressions

2016-04-12 Thread Etienne Bergeron via cfe-commits
etienneb updated this revision to Diff 53442. etienneb marked an inline comment as done. etienneb added a comment. alexfh comments. http://reviews.llvm.org/D19014 Files: clang-tidy/misc/CMakeLists.txt clang-tidy/misc/MiscTidyModule.cpp clang-tidy/misc/SizeofExpressionCheck.cpp clang-tid

Re: [PATCH] D18849: [modules] Avoid module relocation error when building modules from VFS

2016-04-12 Thread Ben Langmuir via cfe-commits
benlangmuir added inline comments. Comment at: lib/Basic/FileManager.cpp:221-223 @@ -220,2 +220,5 @@ // See if there is already an entry in the map. + // FIXME: Note that when first requested, the returned file name equals to the + // requested path. This is not true when re

r266111 - PR19957: [OpenCL] Incorrectly accepts implicit address space conversion with ternary operator.

2016-04-12 Thread Yaxun Liu via cfe-commits
Author: yaxunl Date: Tue Apr 12 14:43:36 2016 New Revision: 266111 URL: http://llvm.org/viewvc/llvm-project?rev=266111&view=rev Log: PR19957: [OpenCL] Incorrectly accepts implicit address space conversion with ternary operator. Generates addrspacecast instead of bitcast for ternary operator when

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

2016-04-12 Thread Yaxun Liu via cfe-commits
This revision was automatically updated to reflect the committed changes. yaxunl marked an inline comment as done. Closed by commit rL266111: PR19957: [OpenCL] Incorrectly accepts implicit address space conversion with… (authored by yaxunl). Changed prior to commit: http://reviews.llvm.org/D174

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

2016-04-12 Thread Michael Miller via cfe-commits
michael_miller updated this revision to Diff 53441. michael_miller added a comment. Removed accidentally duplicated test case. http://reviews.llvm.org/D18584 Files: clang-tidy/cppcoreguidelines/ProTypeMemberInitCheck.cpp clang-tidy/cppcoreguidelines/ProTypeMemberInitCheck.h clang-tidy/uti

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

2016-04-12 Thread Michael Miller via cfe-commits
michael_miller added a comment. In http://reviews.llvm.org/D18584#398298, @aaron.ballman wrote: > LGTM with one minor correction (you can correct when committing it). Oops! Not sure how that happened. I submitted a revised diff. http://reviews.llvm.org/D18584 __

Re: [PATCH] D18073: Add memory allocating functions

2016-04-12 Thread Anna Zaks via cfe-commits
zaks.anna added a comment. "Since we are adding support for so many new APIs that are only available on Windows, could you please condition checking them only when we build for Windows. You probably can look and Language Options to figure that out." malloc-uses.c -> "alternative-malloc-api.c" ?

Re: [PATCH] D19014: [clang-tidy] Add new checker for suspicious sizeof expressions

2016-04-12 Thread Alexander Kornienko via cfe-commits
alexfh added inline comments. Comment at: clang-tidy/misc/SizeofExpressionCheck.cpp:198 @@ +197,3 @@ +} + +void SizeofExpressionCheck::check(const MatchFinder::MatchResult &Result) { I'm probably wrong about "a more effective approach in general", but for `sizeof

Re: [PATCH] D19014: [clang-tidy] Add new checker for suspicious sizeof expressions

2016-04-12 Thread Alexander Kornienko via cfe-commits
alexfh accepted this revision. alexfh added a comment. This revision is now accepted and ready to land. Looks good with one more nit. I'm not sure what to do with `hasSizeOfAncestor`, we can leave it as is for now. Comment at: clang-tidy/misc/SizeofExpressionCheck.cpp:47 @@ +46

Re: [PATCH] D18595: MPI-Checker test helper

2016-04-12 Thread Anna Zaks via cfe-commits
zaks.anna added a comment. You do not have to supply these. Just declaring and not defining the functions in the main test file should be sufficient. http://reviews.llvm.org/D18595 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://list

r266113 - [modules] When an incompatible module file is explicitly provided for a module,

2016-04-12 Thread Richard Smith via cfe-commits
Author: rsmith Date: Tue Apr 12 14:58:30 2016 New Revision: 266113 URL: http://llvm.org/viewvc/llvm-project?rev=266113&view=rev Log: [modules] When an incompatible module file is explicitly provided for a module, and we fall back to textual inclusion, don't require the module as a whole to be mark

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

2016-04-12 Thread Michael Miller via cfe-commits
michael_miller marked an inline comment as done. michael_miller added a comment. In http://reviews.llvm.org/D18584#398298, @aaron.ballman wrote: > LGTM with one minor correction (you can correct when committing it). Also, what's the next step? Is there anything else for me to do? http://revie

r266116 - [modules] Extend r266113 to cope with submodules.

2016-04-12 Thread Richard Smith via cfe-commits
Author: rsmith Date: Tue Apr 12 15:20:33 2016 New Revision: 266116 URL: http://llvm.org/viewvc/llvm-project?rev=266116&view=rev Log: [modules] Extend r266113 to cope with submodules. Modified: cfe/trunk/lib/Lex/PPDirectives.cpp cfe/trunk/test/Modules/explicit-build-missing-files.cpp Modi

  1   2   >