Re: [PATCH] D19382: [OpenMP] Improve mappable expressions Sema.

2016-04-25 Thread Alexey Bataev via cfe-commits
ABataev accepted this revision. This revision is now accepted and ready to land. Comment at: lib/AST/OpenMPClause.cpp:546 @@ +545,3 @@ + for (auto *D : Declarations) { +assert( +(!D || D->isCanonicalDecl()) && sfantao wrote: > Ok, using canonical decl

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

2016-04-25 Thread Daniel Jasper via cfe-commits
djasper added inline comments. Comment at: cfe/trunk/lib/Format/AffectedRangeManager.h:59 @@ +58,3 @@ + const AnnotatedLine *PreviousLine); + SourceManager &SourceMgr; + const SmallVector Ranges; And an empty line between functions and da

Re: [PATCH] D19478: Remove assert mandating you can only use SPIR target with OpenCL

2016-04-25 Thread Xiuli PAN via cfe-commits
pxli168 accepted this revision. pxli168 added a comment. LGTM. http://reviews.llvm.org/D19478 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Re: r267496 - [lanai] Update handling of structs in arguments to be passed in registers.

2016-04-25 Thread Kostya Serebryany via cfe-commits
Hopefully fixed by r267513. On Mon, Apr 25, 2016 at 6:46 PM, Kostya Serebryany wrote: > +rnk > > On Mon, Apr 25, 2016 at 5:09 PM, Jacques Pienaar via cfe-commits < > cfe-commits@lists.llvm.org> wrote: > >> Author: jpienaar >> Date: Mon Apr 25 19:09:29 2016 >> New Revision: 267496 >> >> URL: http

r267513 - trying to fix the windows build broken by r267496

2016-04-25 Thread Kostya Serebryany via cfe-commits
Author: kcc Date: Mon Apr 25 20:53:49 2016 New Revision: 267513 URL: http://llvm.org/viewvc/llvm-project?rev=267513&view=rev Log: trying to fix the windows build broken by r267496 Modified: cfe/trunk/lib/CodeGen/TargetInfo.cpp Modified: cfe/trunk/lib/CodeGen/TargetInfo.cpp URL: http://llvm.

Re: r267496 - [lanai] Update handling of structs in arguments to be passed in registers.

2016-04-25 Thread Kostya Serebryany via cfe-commits
+rnk On Mon, Apr 25, 2016 at 5:09 PM, Jacques Pienaar via cfe-commits < cfe-commits@lists.llvm.org> wrote: > Author: jpienaar > Date: Mon Apr 25 19:09:29 2016 > New Revision: 267496 > > URL: http://llvm.org/viewvc/llvm-project?rev=267496&view=rev > Log: > [lanai] Update handling of structs in arg

[libunwind] r267509 - unwind: remove last instance of -Wexpansion-to-defined

2016-04-25 Thread Saleem Abdulrasool via cfe-commits
Author: compnerd Date: Mon Apr 25 20:11:29 2016 New Revision: 267509 URL: http://llvm.org/viewvc/llvm-project?rev=267509&view=rev Log: unwind: remove last instance of -Wexpansion-to-defined This unifies the definition of _LIBUNWIND_BUILD_SJLJ_APIS. It also further generalises the definition to a

Re: [PATCH] D19003: Set C99 as default C Standard for PS4 target

2016-04-25 Thread Douglas Yung via cfe-commits
dyung updated this revision to Diff 54956. dyung added a comment. Updated diff to fix up the comments based on Paul's feedback. Also tightened up one of the #if blocks to not include something that did not require C11. http://reviews.llvm.org/D19003 Files: include/clang/Frontend/CompilerInvo

r267503 - CGOpenMPRuntime.h: Prune '\param IfCond' in r267395. [-Wdocumentation]

2016-04-25 Thread NAKAMURA Takumi via cfe-commits
Author: chapuni Date: Mon Apr 25 19:45:00 2016 New Revision: 267503 URL: http://llvm.org/viewvc/llvm-project?rev=267503&view=rev Log: CGOpenMPRuntime.h: Prune '\param IfCond' in r267395. [-Wdocumentation] Modified: cfe/trunk/lib/CodeGen/CGOpenMPRuntime.h Modified: cfe/trunk/lib/CodeGen/CGOpe

Re: r267447 - [Docs] Clarify what the object-size sanitizer does.

2016-04-25 Thread George Burgess IV via cfe-commits
My bad :) Attempt to fix committed as r267501. On Mon, Apr 25, 2016 at 5:31 PM, Nico Weber wrote: > Looks like this broke > http://lab.llvm.org:8011/builders/clang-sphinx-docs/builds/13793/steps/docs-clang-html/logs/stdio > > > /home/llvmbb/llvm-build-dir/clang-sphinx-docs/llvm/src/tools/clang/

r267501 - [Docs] Fix indentation error introduced by r267447.

2016-04-25 Thread George Burgess IV via cfe-commits
Author: gbiv Date: Mon Apr 25 19:31:29 2016 New Revision: 267501 URL: http://llvm.org/viewvc/llvm-project?rev=267501&view=rev Log: [Docs] Fix indentation error introduced by r267447. Modified: cfe/trunk/docs/UndefinedBehaviorSanitizer.rst Modified: cfe/trunk/docs/UndefinedBehaviorSanitizer.r

Re: r267464 - Module Debugging: Fix the condition for determining whether a template

2016-04-25 Thread Richard Smith via cfe-commits
On Mon, Apr 25, 2016 at 1:52 PM, Adrian Prantl via cfe-commits < cfe-commits@lists.llvm.org> wrote: > Author: adrian > Date: Mon Apr 25 15:52:40 2016 > New Revision: 267464 > > URL: http://llvm.org/viewvc/llvm-project?rev=267464&view=rev > Log: > Module Debugging: Fix the condition for determining

Re: r267447 - [Docs] Clarify what the object-size sanitizer does.

2016-04-25 Thread Nico Weber via cfe-commits
Looks like this broke http://lab.llvm.org:8011/builders/clang-sphinx-docs/builds/13793/steps/docs-clang-html/logs/stdio /home/llvmbb/llvm-build-dir/clang-sphinx-docs/llvm/src/tools/clang/docs/UndefinedBehaviorSanitizer.rst:96: WARNING: Bullet list ends without a blank line; unexpected unindent.

r267496 - [lanai] Update handling of structs in arguments to be passed in registers.

2016-04-25 Thread Jacques Pienaar via cfe-commits
Author: jpienaar Date: Mon Apr 25 19:09:29 2016 New Revision: 267496 URL: http://llvm.org/viewvc/llvm-project?rev=267496&view=rev Log: [lanai] Update handling of structs in arguments to be passed in registers. Previously aggregate types were passed byval, change the ABI to pass these in register

Re: [PATCH] D19382: [OpenMP] Improve mappable expressions Sema.

2016-04-25 Thread Samuel Antao via cfe-commits
sfantao marked an inline comment as done. Comment at: lib/AST/OpenMPClause.cpp:546 @@ +545,3 @@ + for (auto *D : Declarations) { +assert( +(!D || D->isCanonicalDecl()) && Ok, using canonical declarations now. http://reviews.llvm.org/D19382

Re: [PATCH] D19382: [OpenMP] Improve mappable expressions Sema.

2016-04-25 Thread Samuel Antao via cfe-commits
sfantao updated this revision to Diff 54941. sfantao added a comment. - Use canonical declarations associated with mappable expressions. http://reviews.llvm.org/D19382 Files: include/clang/AST/OpenMPClause.h lib/AST/OpenMPClause.cpp lib/Sema/SemaOpenMP.cpp lib/Serialization/ASTReaderStm

Re: [PATCH] D19425: driver: Add a `--rsp-quoting` flag to choose which unquoting behavior to use in rsp files.

2016-04-25 Thread Nico Weber via cfe-commits
thakis closed this revision. thakis added a comment. Landed the new flag and its tests in r267474, thanks! (Didn't land the test updates needed after http://reviews.llvm.org/D19417 yet, since that's not in yet.) http://reviews.llvm.org/D19425 ___

[PATCH] D19497: [clang-tidy] Enhance misc-suspicious-string-compare to move down false-positives.

2016-04-25 Thread Etienne Bergeron via cfe-commits
etienneb created this revision. etienneb added a reviewer: alexfh. etienneb added a subscriber: cfe-commits. The checker was noisy when running over llvm code base. This patch is impriving the way string-compare functions are matched. 1) By default, do not report !strcmp(...) unless it's activate

r267474 - driver: Add a `--rsp-quoting` flag to pick response file quoting.

2016-04-25 Thread Nico Weber via cfe-commits
Author: nico Date: Mon Apr 25 16:15:49 2016 New Revision: 267474 URL: http://llvm.org/viewvc/llvm-project?rev=267474&view=rev Log: driver: Add a `--rsp-quoting` flag to pick response file quoting. Currently, clang-cl always uses Windows style for unquoting, and clang always uses POSIX style for u

r267464 - Module Debugging: Fix the condition for determining whether a template

2016-04-25 Thread Adrian Prantl via cfe-commits
Author: adrian Date: Mon Apr 25 15:52:40 2016 New Revision: 267464 URL: http://llvm.org/viewvc/llvm-project?rev=267464&view=rev Log: Module Debugging: Fix the condition for determining whether a template instantiation is in a module. This patch fixes the condition for determining whether the debu

Re: [PATCH] D19458: Add address space 258 to Clang documentation

2016-04-25 Thread Michael LeMay via cfe-commits
mlemay-intel updated this revision to Diff 54877. mlemay-intel added a comment. Update heading. http://reviews.llvm.org/D19458 Files: docs/LanguageExtensions.rst Index: docs/LanguageExtensions.rst === --- docs/LanguageExtensions

Re: r267186 - Fix a bug involving deferred decl emission and PCH

2016-04-25 Thread Richard Smith via cfe-commits
On Mon, Apr 25, 2016 at 1:04 PM, Reid Kleckner wrote: > On Fri, Apr 22, 2016 at 1:58 PM, Richard Smith > wrote: >> >> This seems like a fragile thing to rely on. What about template >> instantiation performed at end of TU? (I /think/ that case is currently >> fine because all the kinds of templa

Re: [PATCH] D19459: Cleanup redundant expression in InstCombineAndOrXor.

2016-04-25 Thread David Majnemer via cfe-commits
majnemer accepted this revision. majnemer added a comment. LGTM http://reviews.llvm.org/D19459 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Re: r267186 - Fix a bug involving deferred decl emission and PCH

2016-04-25 Thread Reid Kleckner via cfe-commits
On Fri, Apr 22, 2016 at 1:58 PM, Richard Smith wrote: > > This seems like a fragile thing to rely on. What about template > instantiation performed at end of TU? (I /think/ that case is currently > fine because all the kinds of template we instantiate ultimately do result > in a call to HandleTopL

Re: [PATCH] D19425: driver: Add a `--rsp-quoting` flag to choose which unquoting behavior to use in rsp files.

2016-04-25 Thread Reid Kleckner via cfe-commits
rnk added inline comments. Comment at: tools/driver/driver.cpp:350 @@ +349,3 @@ + for (const char *F : argv) { +if (strcmp(F, "--rsp-quoting=posix") == 0) + RSPQuoting = POSIX; thakis wrote: > rnk wrote: > > Should we call it "posix" or "gnu"? The refere

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

2016-04-25 Thread Richard Smith via cfe-commits
rsmith closed this revision. rsmith added a comment. Committed as r267454. http://reviews.llvm.org/D17451 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

r267454 - Implement support for conditional between xvalues of reference-compatible

2016-04-25 Thread Richard Smith via cfe-commits
Author: rsmith Date: Mon Apr 25 14:30:37 2016 New Revision: 267454 URL: http://llvm.org/viewvc/llvm-project?rev=267454&view=rev Log: Implement support for conditional between xvalues of reference-compatible types. Patch by Erik Pilkington! Modified: cfe/trunk/lib/Sema/SemaExprCXX.cpp cfe/

r267453 - Refactor traversal of bases in deduction of template parameters from base

2016-04-25 Thread Richard Smith via cfe-commits
Author: rsmith Date: Mon Apr 25 14:28:08 2016 New Revision: 267453 URL: http://llvm.org/viewvc/llvm-project?rev=267453&view=rev Log: Refactor traversal of bases in deduction of template parameters from base classes of an argument to use CXXRecordDecl::forallBases. Fix forallBases to only visit eac

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

2016-04-25 Thread Richard Smith via cfe-commits
rsmith closed this revision. rsmith added a comment. Committed as r267444. I refactored it to use `CXXRecordDecl::forallBases` instead of a hand-rolled traversal of the base classes in r267453. http://reviews.llvm.org/D18868 ___ cfe-commits mailin

Re: [PATCH] D19459: Cleanup redundant expression in InstCombineAndOrXor.

2016-04-25 Thread Etienne Bergeron via cfe-commits
etienneb added a comment. thx Reid. added the appropriate reviewer. http://reviews.llvm.org/D19459 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

r267447 - [Docs] Clarify what the object-size sanitizer does.

2016-04-25 Thread George Burgess IV via cfe-commits
Author: gbiv Date: Mon Apr 25 14:21:45 2016 New Revision: 267447 URL: http://llvm.org/viewvc/llvm-project?rev=267447&view=rev Log: [Docs] Clarify what the object-size sanitizer does. Currently, the UBSan docs make it sound like the object-size sanitizer will only detect out-of-bounds reads/writes

Re: [PATCH] D18369: [OpenCL] Upstreaming khronos OpenCL header file.

2016-04-25 Thread Yaxun Liu via cfe-commits
yaxunl marked 12 inline comments as done. yaxunl added a comment. Changed file name to opencl-c.h and updated comments. Addressed Anastasia's early comments. I am thinking we may need several more patches to address remaining issues to keep the changes manageable. Comment at:

Re: [PATCH] D19478: Remove assert mandating you can only use SPIR target with OpenCL

2016-04-25 Thread Anastasia Stulova via cfe-commits
Anastasia added a comment. LGTM, just wondering other languages will compile to SPIR too? http://reviews.llvm.org/D19478 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Re: [PATCH] D19425: driver: Add a `--rsp-quoting` flag to choose which unquoting behavior to use in rsp files.

2016-04-25 Thread Nico Weber via cfe-commits
thakis added a comment. Thanks! Comment at: tools/driver/driver.cpp:350 @@ +349,3 @@ + for (const char *F : argv) { +if (strcmp(F, "--rsp-quoting=posix") == 0) + RSPQuoting = POSIX; rnk wrote: > Should we call it "posix" or "gnu"? The reference impleme

Re: [PATCH] D19194: fix for clang-tidy modernize-pass-by-value on copy constructor

2016-04-25 Thread Alexander Kornienko via cfe-commits
alexfh accepted this revision. alexfh added a comment. This revision is now accepted and ready to land. This test doesn't fail without your fix. Comment at: clang-tidy/modernize/PassByValueCheck.cpp:155 @@ -155,1 +154,3 @@ +.bind("Initializer")), +

r267444 - When deducing template parameters from base classes of an argument type, don't

2016-04-25 Thread Richard Smith via cfe-commits
Author: rsmith Date: Mon Apr 25 14:09:05 2016 New Revision: 267444 URL: http://llvm.org/viewvc/llvm-project?rev=267444&view=rev Log: When deducing template parameters from base classes of an argument type, don't preserve any deduced types from a failed deduction to a subsequent attempt at deductio

Re: [PATCH] D11397: [libcxx] Add first bits of

2016-04-25 Thread Eric Fiselier via cfe-commits
EricWF abandoned this revision. EricWF added a comment. I've been working on this a bunch and will repost it with the new changes later next week. http://reviews.llvm.org/D11397 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.l

Re: [PATCH] D16989: Change interpretation of function definition in friend declaration of template class.

2016-04-25 Thread Richard Smith via cfe-commits
rsmith added inline comments. Comment at: lib/Sema/SemaDecl.cpp:8611-8612 @@ -8609,3 +8610,4 @@ } else { - // This needs to happen first so that 'inline' propagates. - NewFD->setPreviousDeclaration(cast(OldDecl)); + if (NewFD->isOutOfLine() && + NewFD-

Re: [PATCH] D19425: driver: Add a `--rsp-quoting` flag to choose which unquoting behavior to use in rsp files.

2016-04-25 Thread Reid Kleckner via cfe-commits
rnk accepted this revision. rnk added a comment. This revision is now accepted and ready to land. Looks good Comment at: tools/driver/driver.cpp:350 @@ +349,3 @@ + for (const char *F : argv) { +if (strcmp(F, "--rsp-quoting=posix") == 0) + RSPQuoting = POSIX; --

Re: [PATCH] D19477: [MSVC] PR27337: allow static_cast from private base to derived for WTL

2016-04-25 Thread Reid Kleckner via cfe-commits
rnk accepted this revision. rnk added a comment. This revision is now accepted and ready to land. lgtm Comment at: include/clang/Basic/DiagnosticSemaKinds.td:5768 @@ +5767,3 @@ +def ext_ms_downcast_from_inaccessible_base : ExtWarn< + "cast %select{private|protected}2 base class

Re: [PATCH] D19459: Cleanup redundant expression in InstCombineAndOrXor.

2016-04-25 Thread Reid Kleckner via cfe-commits
rnk accepted this revision. rnk added a comment. This revision is now accepted and ready to land. lgtm FYI David Majnemer is a good reviewer for InstCombine. http://reviews.llvm.org/D19459 ___ cfe-commits mailing list cfe-commits@lists.llvm.org htt

Re: [PATCH] D19336: Repair redeclaration chain of friend template functions.

2016-04-25 Thread Serge Pavlov via cfe-commits
2016-04-21 2:57 GMT+06:00 Richard Smith : > rsmith added a comment. > > Sorry, I don't think this approach can work. Consider: > > template struct X { > template friend void f(T); > template friend void f(U); > }; > > These two friend declarations declare different friend function temp

Re: [PATCH] D19443: Module Debugging: Fix the condition for determining whether a template instantiation is in a module.

2016-04-25 Thread Doug Gregor via cfe-commits
doug.gregor accepted this revision. doug.gregor added a comment. This revision is now accepted and ready to land. Yeah, this LGTM. Repository: rL LLVM http://reviews.llvm.org/D19443 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://l

r267425 - [Clang][Builtin][AVX512]Adding k-register logic intrinsics KAND, KANDN, KOR, KORTEST, KXNOR, KXOR, KUNPACK instruction set.

2016-04-25 Thread Michael Zuckerman via cfe-commits
Author: mzuckerm Date: Mon Apr 25 11:42:29 2016 New Revision: 267425 URL: http://llvm.org/viewvc/llvm-project?rev=267425&view=rev Log: [Clang][Builtin][AVX512]Adding k-register logic intrinsics KAND, KANDN, KOR, KORTEST, KXNOR, KXOR, KUNPACK instruction set. Differential Revision: http://reviews

Re: [PATCH] D19479: 26748 - clang-cl fails to compile atlctrlw.h header from WTL

2016-04-25 Thread Reid Kleckner via cfe-commits
rnk requested changes to this revision. rnk added a comment. This revision now requires changes to proceed. We definitely should not rely on typo correction or other error recovery mechanisms to do this for us. Otherwise we can end up accepting ill-formed programs like this one: struct MyStru

Re: [PATCH] D19393: Move Checkers.inc to clang/include/.../Checkers

2016-04-25 Thread Chih-Hung Hsieh via cfe-commits
chh marked 2 inline comments as done. chh added a comment. I used "svn mv" to move the file and "svn diff --show-copies-as-adds" to generate the diff. If I didn't use "--show-copies-as-adds", the new file was not included/shown by phabricator at all. Please let me know if there is better way to

Re: [PATCH] D19183: [clang-tidy] Add modernize-make-shared check

2016-04-25 Thread Haojian Wu via cfe-commits
hokein added inline comments. Comment at: test/clang-tidy/modernize-make-shared.cpp:81 @@ +80,3 @@ + + std::shared_ptr R(new int()); + Prazek wrote: > hokein wrote: > > Why can't this case convert to `std::shared_ptr R = > > std::make_shared(new int())`? > You

[PATCH] D19484: [OpenCL] Add supported OpenCL extensions to target info.

2016-04-25 Thread Yaxun Liu via cfe-commits
yaxunl created this revision. yaxunl added reviewers: Anastasia, bader. yaxunl added subscribers: cfe-commits, pxli168, tstellarAMD. Add supported OpenCL extensions to target info. It serves as default values to save the users of the burden setting each supported extensions and optional core fea

Re: [PATCH] D19270: Fix a crash in cppcoreguidelines-pro-type-member-init related to missing constructor bodies.

2016-04-25 Thread Haojian Wu via cfe-commits
hokein added a comment. @michael_miller You fixing is not completed. The crash still happens, the test case see https://llvm.org/bugs/show_bug.cgi?id=27419. Could you please take a look on it? Thanks very much. Repository: rL LLVM http://reviews.llvm.org/D19270 _

Re: [PATCH] D19458: Add address space 258 to Clang documentation

2016-04-25 Thread Michael LeMay via cfe-commits
mlemay-intel added a comment. In http://reviews.llvm.org/D19458#410042, @mkuper wrote: > LGTM with a small nit - can you change the heading from "Memory references > off the GS segment" to something more general? Good idea! Thanks for noticing that inconsistency. http://reviews.llvm.org/D194

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

2016-04-25 Thread Eric Liu via cfe-commits
ioeric added a comment. @Daniel, sorry that I forgot to have you look at the final version before submitting it... Repository: rL LLVM http://reviews.llvm.org/D18551 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cg

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

2016-04-25 Thread Eric Liu via cfe-commits
ioeric updated this revision to Diff 54855. ioeric marked 4 inline comments as done. ioeric added a comment. - Addressed comments. http://reviews.llvm.org/D18551 Files: include/clang/Format/Format.h lib/Format/AffectedRangeManager.cpp lib/Format/AffectedRangeManager.h lib/Format/CMakeLi

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

2016-04-25 Thread Eric Liu via cfe-commits
@Daniel, sorry that I forgot to have you look at the final version before submitting it... On Mon, Apr 25, 2016 at 5:15 PM Eric Liu wrote: > This revision was automatically updated to reflect the committed changes. > Closed by commit rL267416: Added Fixer implementation and fix() interface > in

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

2016-04-25 Thread Eric Liu via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL267416: Added Fixer implementation and fix() interface in clang-format for removing… (authored by ioeric). Changed prior to commit: http://reviews.llvm.org/D18551?vs=54855&id=54857#toc Repository: rL

r267416 - Added Fixer implementation and fix() interface in clang-format for removing redundant code.

2016-04-25 Thread Eric Liu via cfe-commits
Author: ioeric Date: Mon Apr 25 10:09:22 2016 New Revision: 267416 URL: http://llvm.org/viewvc/llvm-project?rev=267416&view=rev Log: Added Fixer implementation and fix() interface in clang-format for removing redundant code. Summary: After applying replacements, redundant code like extra commas

r267413 - [analyzer] Let TK_PreserveContents span across the whole base region.

2016-04-25 Thread Artem Dergachev via cfe-commits
Author: dergachev Date: Mon Apr 25 09:44:25 2016 New Revision: 267413 URL: http://llvm.org/viewvc/llvm-project?rev=267413&view=rev Log: [analyzer] Let TK_PreserveContents span across the whole base region. If an address of a field is passed through a const pointer, the whole structure's base regi

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

2016-04-25 Thread Manuel Klimek via cfe-commits
klimek accepted this revision. klimek added a reviewer: klimek. klimek added a comment. This revision is now accepted and ready to land. We'll probably want Daniel to also take another look over it, as it's a pretty substantial change that will haunt us for a while, but I think this now pretty m

r267414 - [Clang][Builtin][AVX512]Adding intrinsics for vfpclass{sd|ss} vfpclass{pd|ps} instruction set

2016-04-25 Thread Michael Zuckerman via cfe-commits
Author: mzuckerm Date: Mon Apr 25 09:48:23 2016 New Revision: 267414 URL: http://llvm.org/viewvc/llvm-project?rev=267414&view=rev Log: [Clang][Builtin][AVX512]Adding intrinsics for vfpclass{sd|ss} vfpclass{pd|ps} instruction set Differential Revision: http://reviews.llvm.org/D19476 Modified:

Re: [PATCH] D19057: [analyzer] Let TK_PreserveContents span across the whole base region.

2016-04-25 Thread Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL267413: [analyzer] Let TK_PreserveContents span across the whole base region. (authored by dergachev). Changed prior to commit: http://reviews.llvm.org/D19057?vs=53551&id=54852#toc Repository: rL LLV

Re: [PATCH] D18442: A clang-tidy check for std:accumulate.

2016-04-25 Thread Alexander Kornienko via cfe-commits
alexfh added a comment. A few nits. Comment at: clang-tidy/misc/FoldInitTypeCheck.cpp:90 @@ +89,3 @@ + // It's OK to fold an int into: + // - an int of the same size and signedness. + // - a bigger int, regardless of signedness. No, I don't have a better na

Re: [PATCH] D18139: [Cxx1z] Implement Lambda Capture of *this by Value as [=, *this] (P0018R3)

2016-04-25 Thread Faisal Vali via cfe-commits
I can't access the cpp file- tried cloning the respository - but got an error - perhaps you can email it to me as a text file? Faisal Vali On Mon, Apr 25, 2016 at 8:29 AM, Gonzalo BG wrote: > Dear Richard Smith and Faisal Vali, > > this patch broke my code. I've filled a bug report here: > http

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

2016-04-25 Thread Eric Liu via cfe-commits
ioeric updated this revision to Diff 54848. ioeric added a comment. - Merged VirtualEnvironment into Environment. http://reviews.llvm.org/D18551 Files: include/clang/Format/Format.h lib/Format/AffectedRangeManager.cpp lib/Format/AffectedRangeManager.h lib/Format/CMakeLists.txt lib/For

Re: [PATCH] D19478: Remove assert mandating you can only use SPIR target with OpenCL

2016-04-25 Thread Yaxun Liu via cfe-commits
yaxunl added a comment. LGTM http://reviews.llvm.org/D19478 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Re: [PATCH] D19460: Fix incorrect redundant expression in target AMDGPU.

2016-04-25 Thread Tom Stellard via cfe-commits
tstellarAMD accepted this revision. tstellarAMD added a comment. This revision is now accepted and ready to land. Thanks for catching this. http://reviews.llvm.org/D19460 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/

Re: [PATCH] D18139: [Cxx1z] Implement Lambda Capture of *this by Value as [=, *this] (P0018R3)

2016-04-25 Thread Gonzalo BG via cfe-commits
Dear Richard Smith and Faisal Vali, this patch broke my code. I've filled a bug report here: https://llvm.org/bugs/show_bug.cgi?id=27507 I tried to reduce the testcase with delta but over the weekend it only managed to reduce it from 500k LOC to 300k LOC, sorry for that. If there is anything I c

r267398 - [Clang][AVX512][BUILTIN] Adding intrinsics for VSCATTERPF{1|0}{DPS|QPS|DPD|QPD} instruction set

2016-04-25 Thread Michael Zuckerman via cfe-commits
Author: mzuckerm Date: Mon Apr 25 08:01:40 2016 New Revision: 267398 URL: http://llvm.org/viewvc/llvm-project?rev=267398&view=rev Log: [Clang][AVX512][BUILTIN] Adding intrinsics for VSCATTERPF{1|0}{DPS|QPS|DPD|QPD} instruction set Differential Revision: http://reviews.llvm.org/D19313 Modified:

Re: [PATCH] D18442: A clang-tidy check for std:accumulate.

2016-04-25 Thread Piotr Padlewski via cfe-commits
Prazek added a subscriber: Prazek. Comment at: docs/clang-tidy/checks/misc-fold-init-type.rst:16-17 @@ +15,4 @@ + +.. code:: c++ + auto a = {0.5f, 0.5f, 0.5f, 0.5f}; + return std::accumulate(std::begin(a), std::end(a), 0); Doesn't .. code node need new line? h

r267395 - [OPENMP 4.5] Codegen for 'taskloop' directive.

2016-04-25 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Mon Apr 25 07:22:29 2016 New Revision: 267395 URL: http://llvm.org/viewvc/llvm-project?rev=267395&view=rev Log: [OPENMP 4.5] Codegen for 'taskloop' directive. The taskloop construct specifies that the iterations of one or more associated loops will be executed in parallel u

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

2016-04-25 Thread Eric Liu via cfe-commits
ioeric updated this revision to Diff 54837. ioeric added a comment. - Refactored - added Environment class. http://reviews.llvm.org/D18551 Files: include/clang/Format/Format.h lib/Format/AffectedRangeManager.cpp lib/Format/AffectedRangeManager.h lib/Format/CMakeLists.txt lib/Format/Fo

Re: [PATCH] D19382: [OpenMP] Improve mappable expressions Sema.

2016-04-25 Thread Alexey Bataev via cfe-commits
ABataev added inline comments. Comment at: lib/AST/OpenMPClause.cpp:546 @@ +545,3 @@ + for (auto *D : Declarations) { +if (Cache.count(D)) + continue; I think you'd better to count and to store canonical decls rather than the decls themselves. It will r

Re: [PATCH] D18442: A clang-tidy check for std:accumulate.

2016-04-25 Thread Clement Courbet via cfe-commits
courbet updated this revision to Diff 54833. courbet marked 3 inline comments as done. courbet added a comment. Refactoring matchers & cosmetics. http://reviews.llvm.org/D18442 Files: clang-tidy/misc/CMakeLists.txt clang-tidy/misc/FoldInitTypeCheck.cpp clang-tidy/misc/FoldInitTypeCheck.h

Re: [PATCH] D18442: A clang-tidy check for std:accumulate.

2016-04-25 Thread Clement Courbet via cfe-commits
courbet added inline comments. Comment at: clang-tidy/misc/FoldInitTypeCheck.cpp:89 @@ +88,3 @@ + +/// Returns true if ValueType is allowed to fold into InitType, i.e. if: +/// static_cast(ValueType{some_value}) alexfh wrote: > Is "fold" a commonly used term in

[PATCH] D19479: 26748 - clang-cl fails to compile atlctrlw.h header from WTL

2016-04-25 Thread Andrew V. Tischenko via cfe-commits
avt77 created this revision. avt77 added a reviewer: rnk. avt77 added a subscriber: cfe-commits. This is the first patch to fix clang-cl incompatibility prohibited to compile the header file. The patch covers the following case: class CCommandBarCtrlBase { public: typedef int CMsgHookMap; };

Re: [PATCH] D18957: clang-rename: add missing newline at the end of 'found name:'

2016-04-25 Thread Miklos Vajna via cfe-commits
vmiklos added a comment. Hi, Can I help anything to get this reviewed, please? Thanks, Miklos http://reviews.llvm.org/D18957 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Re: [PATCH] D19324: [ASTMatchers] new forEachOverriden matcher

2016-04-25 Thread Clement Courbet via cfe-commits
courbet updated this revision to Diff 54830. courbet marked an inline comment as done. courbet added a comment. overridden_methods return ArrayRef instead of TinyPtrVector* http://reviews.llvm.org/D19324 Files: docs/LibASTMatchersReference.html include/clang/AST/ASTContext.h include/clang

[PATCH] D19478: Remove assert mandating you can only use SPIR target with OpenCL

2016-04-25 Thread Neil Henning via cfe-commits
sheredom created this revision. sheredom added reviewers: Anastasia, yaxunl, pxli168. sheredom added a subscriber: cfe-commits. Remove an assert mandating that OpenCL must be used with the SPIR target. We need to be able to use the SPIR target with non-OpenCL inputs, which worked perfectly well

[PATCH] D19477: [MSVC] PR27337: allow static_cast from private base to derived for WTL

2016-04-25 Thread Dmitry Polukhin via cfe-commits
DmitryPolukhin created this revision. DmitryPolukhin added a reviewer: rnk. DmitryPolukhin added a subscriber: cfe-commits. MSVC doesn't report even warning for cast from private base class to derived. http://reviews.llvm.org/D19477 Files: include/clang/Basic/DiagnosticSemaKinds.td lib/Sema/

Re: [PATCH] D18957: clang-rename: add missing newline at the end of 'found name:'

2016-04-25 Thread Manuel Klimek via cfe-commits
klimek accepted this revision. klimek added a comment. This revision is now accepted and ready to land. Looks good. http://reviews.llvm.org/D18957 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo