Re: r302572 - Suppress all uses of LLVM_END_WITH_NULL. NFC.

2017-05-10 Thread Mikael Holmén via cfe-commits
Hi, This commit gives a warning with clang 3.6: In file included from ../tools/clang/lib/StaticAnalyzer/Checkers/BasicObjCFoundationChecks.cpp:17: ../tools/clang/lib/StaticAnalyzer/Checkers/SelectorExtras.h:23:40: error: braces around scalar initializer [-Werror] SmallVector II{{&Ctx.Idents

Re: r302572 - Suppress all uses of LLVM_END_WITH_NULL. NFC.

2017-05-10 Thread Mikael Holmén via cfe-commits
On 05/10/2017 09:37 AM, Mikael Holmén via cfe-commits wrote: Hi, This commit gives a warning with clang 3.6: In file included from ../tools/clang/lib/StaticAnalyzer/Checkers/BasicObjCFoundationChecks.cpp:17: ../tools/clang/lib/StaticAnalyzer/Checkers/SelectorExtras.h:23:40: error: braces aro

[PATCH] D29621: Add ASTMatchRefactorer and ReplaceNodeWithTemplate to RefactoringCallbacks

2017-05-10 Thread Eric Liu via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL302624: Add ASTMatchRefactorer and ReplaceNodeWithTemplate to RefactoringCallbacks (authored by ioeric). Changed prior to commit: https://reviews.llvm.org/D29621?vs=98203&id=98412#toc Repository: rL

r302624 - Add ASTMatchRefactorer and ReplaceNodeWithTemplate to RefactoringCallbacks

2017-05-10 Thread Eric Liu via cfe-commits
Author: ioeric Date: Wed May 10 02:48:45 2017 New Revision: 302624 URL: http://llvm.org/viewvc/llvm-project?rev=302624&view=rev Log: Add ASTMatchRefactorer and ReplaceNodeWithTemplate to RefactoringCallbacks Summary: This is the first change as part of developing a clang-query based search and r

[libcxx] r302627 - Attempt to speculatively unbreak Apple build bots

2017-05-10 Thread Eric Fiselier via cfe-commits
Author: ericwf Date: Wed May 10 03:04:50 2017 New Revision: 302627 URL: http://llvm.org/viewvc/llvm-project?rev=302627&view=rev Log: Attempt to speculatively unbreak Apple build bots Modified: libcxx/trunk/utils/libcxx/test/config.py Modified: libcxx/trunk/utils/libcxx/test/config.py URL: h

[libcxxabi] r302629 - Fix use of removed SH test replacement %exec

2017-05-10 Thread Eric Fiselier via cfe-commits
Author: ericwf Date: Wed May 10 03:15:40 2017 New Revision: 302629 URL: http://llvm.org/viewvc/llvm-project?rev=302629&view=rev Log: Fix use of removed SH test replacement %exec Modified: libcxxabi/trunk/test/incomplete_type.sh.cpp Modified: libcxxabi/trunk/test/incomplete_type.sh.cpp URL:

[PATCH] D32898: [OpenCL] Handle OpenCL specific subelement types

2017-05-10 Thread Egor Churaev via Phabricator via cfe-commits
echuraev updated this revision to Diff 98416. https://reviews.llvm.org/D32898 Files: lib/Sema/SemaInit.cpp test/SemaOpenCL/array-init.cl Index: test/SemaOpenCL/array-init.cl === --- /dev/null +++ test/SemaOpenCL/array-init.cl @

[PATCH] D30748: [Lexer] Finding beginning of token with escaped new line

2017-05-10 Thread Alexander Kornienko via Phabricator via cfe-commits
alexfh added a comment. In https://reviews.llvm.org/D30748#750626, @idlecode wrote: > Oh, sorry about this - I forgot. I will send patch during this weekend No worries, I just stumbled upon the bug and recalled that there had been a patch to fix it. https://reviews.llvm.org/D30748 ___

[PATCH] D33033: [libc++] Fix PR32979 - types with a private std::enable_shared_from_this base break shared_ptr

2017-05-10 Thread Eric Fiselier via Phabricator via cfe-commits
EricWF created this revision. This patch fixes bugs.llvm.org/PR32979. [util.smartptr.shared.const] says: > In the constructor definitions below, enables shared_from_this with p, for a > pointer p of type Y*, means > that if Y has an unambiguous and accessible base class that is a > specializa

[PATCH] D31383: [inline asm] "=i" output constraint support - gcc compatiblity

2017-05-10 Thread Ziv Izhar via Phabricator via cfe-commits
zizhar added a comment. Ping https://reviews.llvm.org/D31383 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[PATCH] D30909: [Analyzer] Finish taint propagation to derived symbols of tainted regions

2017-05-10 Thread Artem Dergachev via Phabricator via cfe-commits
NoQ added a comment. This is fantastic, thanks! I really like the shape of how it turned out to work. Minor stuff and we're landing :) Comment at: lib/StaticAnalyzer/Core/ProgramState.cpp:651 +ProgramStateRef ProgramState::addTaint(SVal V, +

[PATCH] D32972: [index] Index simple dependent declaration references

2017-05-10 Thread Alex Lorenz via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. arphaman marked 2 inline comments as done. Closed by commit rL302632: [index] Index simple dependent declaration references (authored by arphaman). Changed prior to commit: https://reviews.llvm.org/D32972?vs=98184&id=9842

r302632 - [index] Index simple dependent declaration references

2017-05-10 Thread Alex Lorenz via cfe-commits
Author: arphaman Date: Wed May 10 04:47:41 2017 New Revision: 302632 URL: http://llvm.org/viewvc/llvm-project?rev=302632&view=rev Log: [index] Index simple dependent declaration references This commit implements basic support for indexing of dependent declaration references. Now the indexer tries

r302630 - [OpenCL] Added checking OpenCL version for cl_khr_mipmap_image built-ins

2017-05-10 Thread Egor Churaev via cfe-commits
Author: echuraev Date: Wed May 10 03:23:01 2017 New Revision: 302630 URL: http://llvm.org/viewvc/llvm-project?rev=302630&view=rev Log: [OpenCL] Added checking OpenCL version for cl_khr_mipmap_image built-ins Reviewers: Anastasia, cfe-commits Reviewed By: Anastasia Subscribers: bader, yaxunl Di

[clang-tools-extra] r302637 - [clang-tidy] Add new cert-dcl21-cpp check

2017-05-10 Thread Gabor Horvath via cfe-commits
Author: xazax Date: Wed May 10 06:16:55 2017 New Revision: 302637 URL: http://llvm.org/viewvc/llvm-project?rev=302637&view=rev Log: [clang-tidy] Add new cert-dcl21-cpp check This check flags postfix operator++/-- declarations, where the return type is not a const object. Differential Revision:

[PATCH] D32743: [clang-tidy] Add new cert-dcl21-cpp check.

2017-05-10 Thread Phabricator via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL302637: [clang-tidy] Add new cert-dcl21-cpp check (authored by xazax). Changed prior to commit: https://reviews.llvm.org/D32743?vs=98179&id=98426#toc Repository: rL LLVM https://reviews.llvm.org/D3

r302633 - [OpenCL] Handle OpenCL specific subelement types

2017-05-10 Thread Egor Churaev via cfe-commits
Author: echuraev Date: Wed May 10 05:28:34 2017 New Revision: 302633 URL: http://llvm.org/viewvc/llvm-project?rev=302633&view=rev Log: [OpenCL] Handle OpenCL specific subelement types Reviewers: Anastasia, cfe-commits Reviewed By: Anastasia Subscribers: bader, yaxunl Differential Revision: htt

[PATCH] D32981: [ASTImporter] Improve handling of incomplete types

2017-05-10 Thread Aleksei Sidorin via Phabricator via cfe-commits
a.sidorin accepted this revision. a.sidorin added a comment. This revision is now accepted and ready to land. Looks good! Comment at: lib/AST/ASTImporter.cpp:1757 D2->setAnonymousStructOrUnion(true); +if (PrevDecl) { + D2->setPreviousDecl(PrevDecl);

[PATCH] D32759: Fix errored return value in CheckFunctionReturnType and add a fixit hint

2017-05-10 Thread Wei-Ren Chen via Phabricator via cfe-commits
chenwj added a comment. In https://reviews.llvm.org/D32759#748916, @efriedma wrote: > In https://reviews.llvm.org/D32759#748653, @chenwj wrote: > > > In https://reviews.llvm.org/D32759#748007, @efriedma wrote: > > > > > The difference between returning true and false here is just the way > > > e

[PATCH] D33033: [libc++] Fix PR32979 - types with a private std::enable_shared_from_this base break shared_ptr

2017-05-10 Thread Marshall Clow via Phabricator via cfe-commits
mclow.lists accepted this revision. mclow.lists added a comment. This revision is now accepted and ready to land. LGTM https://reviews.llvm.org/D33033 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/list

[PATCH] D33021: [libcxx] [test] libc++ test changes for CWG 2094

2017-05-10 Thread Marshall Clow via Phabricator via cfe-commits
mclow.lists added a comment. In general, I prefer having the space between `static_assert(` and the condition. That makes it easy (at least for me) to see if there's a `!` there or not. Other than that, this LGTM. FWIW, I think this is a language change that core got wrong, and it has already

[PATCH] D33006: clang-format: refine calculating brace types.

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

[PATCH] D32977: [OpenCL] Emit function-scope variable in constant address space as static variable

2017-05-10 Thread Yaxun Liu via Phabricator via cfe-commits
yaxunl marked an inline comment as done. yaxunl added inline comments. Comment at: lib/Sema/SemaDecl.cpp:10286 + // these variables must be a compile time constant. + VDecl->getType().getAddressSpace() == LangAS::opencl_constant) CheckForConstantInitial

[PATCH] D32751: [ASTImporter] Support new kinds of declarations (mostly Using*)

2017-05-10 Thread Aleksei Sidorin via Phabricator via cfe-commits
a.sidorin updated this revision to Diff 98441. a.sidorin added a reviewer: karkhaz. a.sidorin added a comment. Address review comments; add the context. https://reviews.llvm.org/D32751 Files: lib/AST/ASTImporter.cpp test/ASTMerge/namespace/Inputs/namespace1.cpp test/ASTMerge/namespace/Inp

r302654 - Use clang++-3.5 compatible initializer_list constructor

2017-05-10 Thread Serge Guelton via cfe-commits
Author: serge_sans_paille Date: Wed May 10 08:22:11 2017 New Revision: 302654 URL: http://llvm.org/viewvc/llvm-project?rev=302654&view=rev Log: Use clang++-3.5 compatible initializer_list constructor Otherwise, a warning is issued. Modified: cfe/trunk/lib/StaticAnalyzer/Checkers/SelectorExtr

[PATCH] D29951: Load lazily the template specialization in multi-module setups.

2017-05-10 Thread Vassil Vassilev via Phabricator via cfe-commits
v.g.vassilev updated this revision to Diff 98445. v.g.vassilev marked 2 inline comments as done. v.g.vassilev added a comment. Reduce the amount of calls to AddLazySpecializations. Remove assert. In order to create a reasonable test I need to use `-error-on-deserialized-decl` and I hit a bug: h

r302658 - clang-format: refine calculating brace types.

2017-05-10 Thread Martin Probst via cfe-commits
Author: mprobst Date: Wed May 10 08:53:29 2017 New Revision: 302658 URL: http://llvm.org/viewvc/llvm-project?rev=302658&view=rev Log: clang-format: refine calculating brace types. Summary: For C++ code, opening parenthesis following a } indicate a braced init. For JavaScript and other languages,

[PATCH] D33006: clang-format: refine calculating brace types.

2017-05-10 Thread Martin Probst via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL302658: clang-format: refine calculating brace types. (authored by mprobst). Changed prior to commit: https://reviews.llvm.org/D33006?vs=98309&id=98448#toc Repository: rL LLVM https://reviews.llvm.o

[PATCH] D32751: [ASTImporter] Support new kinds of declarations (mostly Using*)

2017-05-10 Thread Gábor Horváth via Phabricator via cfe-commits
xazax.hun accepted this revision. xazax.hun added a reviewer: szepet. xazax.hun added a comment. This revision is now accepted and ready to land. LGTM! Adding Peter as a reviewer, as he is more experienced with the ASTImporter than me. https://reviews.llvm.org/D32751

r302670 - Reland: [mips] Impose a threshold for coercion of aggregates

2017-05-10 Thread Petar Jovanovic via cfe-commits
Author: petarj Date: Wed May 10 09:28:18 2017 New Revision: 302670 URL: http://llvm.org/viewvc/llvm-project?rev=302670&view=rev Log: Reland: [mips] Impose a threshold for coercion of aggregates Modified MipsABIInfo::classifyArgumentType so that it now coerces aggregate structures only if

[PATCH] D32891: [Sema][ObjC++] Objective-C++ support for __is_base_of(B, D)

2017-05-10 Thread Alex Lorenz via Phabricator via cfe-commits
arphaman accepted this revision. arphaman added a comment. This revision is now accepted and ready to land. LGTM! A couple of comments below: Comment at: lib/Sema/SemaExprCXX.cpp:4725 +if (!rhsRecord || !lhsRecord) { + const ObjCObjectType *lhsObjTy = LhsT->getAs(); +

[PATCH] D33020: [Myriad] Pass -Xclang and -mllvm flags to moviCompile

2017-05-10 Thread James Y Knight via Phabricator via cfe-commits
jyknight accepted this revision. jyknight added a comment. This revision is now accepted and ready to land. Will submit for you since you don't have an svn account. https://reviews.llvm.org/D33020 ___ cfe-commits mailing list cfe-commits@lists.llvm.

[PATCH] D33042: [libclang] Allow to suspend a translation unit.

2017-05-10 Thread Nikolai Kosjar via Phabricator via cfe-commits
nik created this revision. Herald added a subscriber: klimek. A suspended translation unit uses significantly less memory but on the other side does not support any other calls than clang_reparseTranslationUnit to resume it or clang_disposeTranslationUnit to dispose it completely. This helps IDEs

[PATCH] D33042: [libclang] Allow to suspend a translation unit.

2017-05-10 Thread Nikolai Kosjar via Phabricator via cfe-commits
nik updated this revision to Diff 98461. https://reviews.llvm.org/D33042 Files: include/clang-c/Index.h include/clang/Frontend/ASTUnit.h lib/Frontend/ASTUnit.cpp tools/c-index-test/c-index-test.c tools/libclang/CIndex.cpp tools/libclang/libclang.exports Index: tools/libclang/libclang

[PATCH] D32977: [OpenCL] Emit function-scope variable in constant address space as static variable

2017-05-10 Thread Yaxun Liu via Phabricator via cfe-commits
yaxunl updated this revision to Diff 98463. yaxunl marked 2 inline comments as done. yaxunl added a comment. Use getStorageDuration to decide how to emit a function-scope variable. https://reviews.llvm.org/D32977 Files: include/clang/AST/Decl.h lib/CodeGen/CGDecl.cpp lib/Sema/SemaDecl.cpp

r302677 - [libclang] Introduce clang_Cursor_isExternalSymbol that provides info about decls marked with external_source_symbol attribute

2017-05-10 Thread Argyrios Kyrtzidis via cfe-commits
Author: akirtzidis Date: Wed May 10 10:10:36 2017 New Revision: 302677 URL: http://llvm.org/viewvc/llvm-project?rev=302677&view=rev Log: [libclang] Introduce clang_Cursor_isExternalSymbol that provides info about decls marked with external_source_symbol attribute Modified: cfe/trunk/include/

[PATCH] D26953: clang-format: handle formatting on constexpr if

2017-05-10 Thread Nico Weber via Phabricator via cfe-commits
thakis accepted this revision. thakis added a comment. This revision is now accepted and ready to land. This looks good to me, thanks. Sorry about the slow turnaround. Do you have commit access? If not, I can land it for you – but it also looks like you've contributed several patches by now, so

[PATCH] D32759: Fix errored return value in CheckFunctionReturnType and add a fixit hint

2017-05-10 Thread Eli Friedman via Phabricator via cfe-commits
efriedma added a comment. A testcase would be nice... but otherwise, yes. https://reviews.llvm.org/D32759 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[PATCH] D32759: Fix errored return value in CheckFunctionReturnType and add a fixit hint

2017-05-10 Thread Erich Keane via Phabricator via cfe-commits
erichkeane added a comment. In https://reviews.llvm.org/D32759#751026, @efriedma wrote: > A testcase would be nice... but otherwise, yes. Do you have a suggestion on how to write one? I wasn't able to find any situation that changed behavior with the different return values. https://reviews

[PATCH] D32759: Fix errored return value in CheckFunctionReturnType and add a fixit hint

2017-05-10 Thread Eli Friedman via Phabricator via cfe-commits
efriedma added a comment. The testcase I wrote should change behavior, I think. https://reviews.llvm.org/D32759 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[PATCH] D33045: [libclang] Avoid more stats than necessary for reparse.

2017-05-10 Thread Nikolai Kosjar via Phabricator via cfe-commits
nik added a comment. Hmm, looks like libclang/libclangTests/LibclangReparseTest.ReparseWithModule is flaky? FAIL: Clang-Unit :: libclang/libclangTests/LibclangReparseTest.ReparseWithModule (10699 of 10701) - TEST 'Clang-Unit :: libclang/libclangTests/LibclangReparseTest.ReparseWithModule' FAI

[PATCH] D32759: Fix errored return value in CheckFunctionReturnType and add a fixit hint

2017-05-10 Thread Erich Keane via Phabricator via cfe-commits
erichkeane added a comment. In https://reviews.llvm.org/D32759#751028, @efriedma wrote: > The testcase I wrote should change behavior, I think. Alright, I'll look into it again... https://reviews.llvm.org/D32759 ___ cfe-commits mailing list cfe-c

[PATCH] D31885: Remove TBAA information from LValues representing union members

2017-05-10 Thread Krzysztof Parzyszek via Phabricator via cfe-commits
kparzysz added a comment. In https://reviews.llvm.org/D31885#748889, @rjmccall wrote: > Sounds to me like we should just not apply struct-path TBAA data that runs > through a union field because either LLVM's representation can't handle it or > Clang isn't generating the representation right.

r302682 - [libclang] Fix typo in doc-comment, NFC

2017-05-10 Thread Argyrios Kyrtzidis via cfe-commits
Author: akirtzidis Date: Wed May 10 10:48:16 2017 New Revision: 302682 URL: http://llvm.org/viewvc/llvm-project?rev=302682&view=rev Log: [libclang] Fix typo in doc-comment, NFC Modified: cfe/trunk/include/clang-c/Index.h Modified: cfe/trunk/include/clang-c/Index.h URL: http://llvm.org/viewv

[PATCH] D26953: clang-format: handle formatting on constexpr if

2017-05-10 Thread Francis Visoiu Mistrih via Phabricator via cfe-commits
thegameg added a comment. In https://reviews.llvm.org/D26953#751021, @thakis wrote: > This looks good to me, thanks. Sorry about the slow turnaround. Do you have > commit access? If not, I can land it for you – but it also looks like you've > contributed several patches by now, so you could als

[PATCH] D31885: Remove TBAA information from LValues representing union members

2017-05-10 Thread Krzysztof Parzyszek via Phabricator via cfe-commits
kparzysz added a comment. I'm not intimately familiar with clang, so if you know about a better place for doing this, please let me know. Repository: rL LLVM https://reviews.llvm.org/D31885 ___ cfe-commits mailing list cfe-commits@lists.llvm.org

Re: r302677 - [libclang] Introduce clang_Cursor_isExternalSymbol that provides info about decls marked with external_source_symbol attribute

2017-05-10 Thread Alex L via cfe-commits
On 10 May 2017 at 16:10, Argyrios Kyrtzidis via cfe-commits < cfe-commits@lists.llvm.org> wrote: > Author: akirtzidis > Date: Wed May 10 10:10:36 2017 > New Revision: 302677 > > URL: http://llvm.org/viewvc/llvm-project?rev=302677&view=rev > Log: > [libclang] Introduce clang_Cursor_isExternalSymbol

r302685 - Build the Apple-style stage2 with full debug info

2017-05-10 Thread Adrian Prantl via cfe-commits
Author: adrian Date: Wed May 10 10:58:22 2017 New Revision: 302685 URL: http://llvm.org/viewvc/llvm-project?rev=302685&view=rev Log: Build the Apple-style stage2 with full debug info Green dragon had a green stage2 modules bot for a long time now[1] and it is time to retire it and make a modules

[PATCH] D33049: [libcxx] Support for Objective-C++ tests

2017-05-10 Thread Erik Pilkington via Phabricator via cfe-commits
erik.pilkington created this revision. This patch adds lit testing support for Objective-C++. I'm going to be working on improving Objective-C++ support in libc++ this summer, and it would be nice to write tests. I tested this patch on Ubuntu 16.04 with gcc 5.4, and it works fine (the .mm tests

[clang-tools-extra] r302688 - [clang-tidy][CMake] Make clang-tidy usable as distribution component

2017-05-10 Thread Petr Hosek via cfe-commits
Author: phosek Date: Wed May 10 11:20:54 2017 New Revision: 302688 URL: http://llvm.org/viewvc/llvm-project?rev=302688&view=rev Log: [clang-tidy][CMake] Make clang-tidy usable as distribution component Use add_clang_tool rather than add_clang_executable to support clang-tidy as a distribution com

r302689 - [AST] RecursiveASTVisitor should not crash on lambdas with type attributes

2017-05-10 Thread Alex Lorenz via cfe-commits
Author: arphaman Date: Wed May 10 11:21:00 2017 New Revision: 302689 URL: http://llvm.org/viewvc/llvm-project?rev=302689&view=rev Log: [AST] RecursiveASTVisitor should not crash on lambdas with type attributes rdar://31960860 Modified: cfe/trunk/include/clang/AST/RecursiveASTVisitor.h cf

[PATCH] D32815: [clang-tidy][CMake] Make clang-tidy usable as distribution component

2017-05-10 Thread Petr Hosek via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL302688: [clang-tidy][CMake] Make clang-tidy usable as distribution component (authored by phosek). Changed prior to commit: https://reviews.llvm.org/D32815?vs=97683&id=98479#toc Repository: rL LLVM

[PATCH] D33021: [libcxx] [test] libc++ test changes for CWG 2094

2017-05-10 Thread Billy Robert O'Neal III via Phabricator via cfe-commits
BillyONeal added a comment. In https://reviews.llvm.org/D33021#750831, @mclow.lists wrote: > FWIW, I think this is a language change that core got wrong, and it has > already come back to bite us. (https://bugs.llvm.org/show_bug.cgi?id=28527) Hmm we actually took steps to do the opposite i

Re: r302677 - [libclang] Introduce clang_Cursor_isExternalSymbol that provides info about decls marked with external_source_symbol attribute

2017-05-10 Thread Argyrios Kyrtzidis via cfe-commits
That’s a good idea, if you don’t get to it I’ll look into it at some point later on but it will probably not be soon. > On May 10, 2017, at 9:10 AM, Alex L wrote: > > > > On 10 May 2017 at 16:10, Argyrios Kyrtzidis via cfe-commits > mailto:cfe-commits@lists.llvm.org>> wrote: > Author: akirtz

[PATCH] D31885: Remove TBAA information from LValues representing union members

2017-05-10 Thread John McCall via Phabricator via cfe-commits
rjmccall added a comment. The right fix is probably just to make sure that EmitLValueForField doesn't add TBAA information when the base LValue doesn't have it. That will also fix problems with recursive member access where the base is may_alias. Repository: rL LLVM https://reviews.llvm.or

[PATCH] D33021: [libcxx] [test] libc++ test changes for CWG 2094

2017-05-10 Thread Billy Robert O'Neal III via Phabricator via cfe-commits
BillyONeal added a comment. In https://reviews.llvm.org/D33021#751145, @BillyONeal wrote: > Hmm we actually took steps to do the opposite in std::copy -- to use > memcpy even in the presence of volatile -- as a result of this change. ;) http://imgur.com/a/PMKPS https://reviews.llvm.org/D

[PATCH] D33030: [libcxxabi] Align unwindHeader on a double-word boundary

2017-05-10 Thread Mehdi AMINI via Phabricator via cfe-commits
mehdi_amini added a comment. Something still isn't clear to me: the issue IIUC is not with the `unwindHeader` itself, but with the misaligned thrown object that is allocated right after the __cxa_exception itself. Isn't it? Then are you aligning the `unwindHeader` field and by side-effect the s

[PATCH] D33053: [PowerPC] Implement vec_xxpermdi builtin.

2017-05-10 Thread Tony Jiang via Phabricator via cfe-commits
jtony created this revision. The vec_xxpermdi builtin is missing from altivec.h. This has been requested by developers working on libvpx for VP9 support for Google. Initially, I tried to define a new intrinsic to map it to the corresponding PowerPC hard instruction (XXPERMDI) directly. But the

[PATCH] D32891: [Sema][ObjC++] Objective-C++ support for __is_base_of(B, D)

2017-05-10 Thread Phabricator via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL302695: [Sema] Objective-C++ support for type trait __is_base_of (authored by epilk). Changed prior to commit: https://reviews.llvm.org/D32891?vs=97905&id=98490#toc Repository: rL LLVM https://revie

r302695 - [Sema] Objective-C++ support for type trait __is_base_of

2017-05-10 Thread Erik Pilkington via cfe-commits
Author: epilk Date: Wed May 10 12:18:56 2017 New Revision: 302695 URL: http://llvm.org/viewvc/llvm-project?rev=302695&view=rev Log: [Sema] Objective-C++ support for type trait __is_base_of rdar://24308607 Differential revision: https://reviews.llvm.org/D32891 Added: cfe/trunk/test/SemaObjCX

New gcc6 builder with -DLLVM_ENABLE_WERROR=ON

2017-05-10 Thread Galina Kistanova via cfe-commits
Hello everyone, I'm about to set up a new builder which would build LLVM and Clang with gcc-6 and -DLLVM_ENABLE_WERROR=ON. Please find the staged builder connected to the silent master. Currently it shows 14 warnings we would need to resolve before we could promote the builder to the production.

[PATCH] D33029: [clang-format] add option for dangling parenthesis

2017-05-10 Thread Ryan Stringham via Phabricator via cfe-commits
stringham added a comment. 1. be used in a project of significant size (have dozens of contributors) - We are using this at Lucid Software (https://www.lucidchart.com & https://www.lucidpress.com) to format our JS and TS (we are using clang-format to automatically style over 650,000 lines of c

[libcxxabi] r302698 - Fix use of now removed %exec test substitution

2017-05-10 Thread Eric Fiselier via cfe-commits
Author: ericwf Date: Wed May 10 12:52:53 2017 New Revision: 302698 URL: http://llvm.org/viewvc/llvm-project?rev=302698&view=rev Log: Fix use of now removed %exec test substitution Modified: libcxxabi/trunk/test/native/arm-linux-eabi/ttype-encoding-00.pass.sh.s libcxxabi/trunk/test/native/

[PATCH] D32759: Fix errored return value in CheckFunctionReturnType and add a fixit hint

2017-05-10 Thread Erich Keane via Phabricator via cfe-commits
erichkeane updated this revision to Diff 98495. erichkeane added a reviewer: eli.friedman. erichkeane added a comment. Added a test, found a slight difference in behavior! https://reviews.llvm.org/D32759 Files: lib/Sema/SemaType.cpp test/SemaObjC/method-bad-param.m Index: lib/Sema/SemaTyp

[PATCH] D32981: [ASTImporter] Improve handling of incomplete types

2017-05-10 Thread Sean Callanan via Phabricator via cfe-commits
spyffe updated this revision to Diff 98497. spyffe added a comment. • Added a FIXME per Aleksei Sidorin's suggestion. https://reviews.llvm.org/D32981 Files: include/clang/AST/ExternalASTMerger.h lib/AST/ASTImporter.cpp lib/AST/ASTStructuralEquivalence.cpp lib/AST/ExternalASTMerger.cpp

[PATCH] D32981: [ASTImporter] Improve handling of incomplete types

2017-05-10 Thread Sean Callanan via Phabricator via cfe-commits
spyffe marked an inline comment as done. spyffe added inline comments. Comment at: lib/AST/ASTImporter.cpp:1757 D2->setAnonymousStructOrUnion(true); +if (PrevDecl) { + D2->setPreviousDecl(PrevDecl); a.sidorin wrote: > By the way, should we do the

[PATCH] D32248: CodeGen: Cast alloca to expected address space

2017-05-10 Thread John McCall via Phabricator via cfe-commits
rjmccall added inline comments. Comment at: lib/CodeGen/TargetInfo.cpp:7291 + Address adjustAddrSpaceForAutoVar(Address A, const VarDecl *VD, + CodeGen::CodeGenFunction &CGF) const override; }; How about, instead of introducing a second method, we just cha

[PATCH] D32332: Add support for transparent overloadable functions in clang

2017-05-10 Thread Aaron Ballman via Phabricator via cfe-commits
aaron.ballman added inline comments. Comment at: lib/AST/ItaniumMangle.cpp:583 +// Non-transparent overloadable functions need mangling. +if (auto *A = FD->getAttr()) + if (!A->isTransparent()) `const auto *` Comment at: lib/AST/Mi

[PATCH] D32759: Fix errored return value in CheckFunctionReturnType and add a fixit hint

2017-05-10 Thread Eli Friedman via Phabricator via cfe-commits
efriedma added a comment. Our behavior for your testcase is less than ideal (we should be generating an invalid declaration instead of just dropping it on the floor), but that's not something you need to fix here. Could you also include the Objective-C++ testcase I wrote? Or does it not work

[libcxx] r302707 - [test] support machinery changes for EDG & C1XX /Za

2017-05-10 Thread Casey Carter via cfe-commits
Author: caseycarter Date: Wed May 10 14:10:49 2017 New Revision: 302707 URL: http://llvm.org/viewvc/llvm-project?rev=302707&view=rev Log: [test] support machinery changes for EDG & C1XX /Za This change works around a couple of bugs: 1. EDG doesn't like explicit constexpr in a derived class. This

[PATCH] D32778: [libcxx] [test] Conditionally workaround C1XX/EDG bugs

2017-05-10 Thread Casey Carter via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL302707: [test] support machinery changes for EDG & C1XX /Za (authored by CaseyCarter). Changed prior to commit: https://reviews.llvm.org/D32778?vs=97530&id=98503#toc Repository: rL LLVM https://revi

[PATCH] D32759: Fix errored return value in CheckFunctionReturnType and add a fixit hint

2017-05-10 Thread Erich Keane via Phabricator via cfe-commits
erichkeane added a comment. In https://reviews.llvm.org/D32759#751339, @efriedma wrote: > Our behavior for your testcase is less than ideal (we should be generating an > invalid declaration instead of just dropping it on the floor), but that's not > something you need to fix here. > > Could you

[PATCH] D32759: Fix errored return value in CheckFunctionReturnType and add a fixit hint

2017-05-10 Thread Eli Friedman via Phabricator via cfe-commits
efriedma added a comment. Err, I meant the one I wrote earlier in this thread: https://reviews.llvm.org/D32759#748007 https://reviews.llvm.org/D32759 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/list

[PATCH] D32977: [OpenCL] Emit function-scope variable in constant address space as static variable

2017-05-10 Thread John McCall via Phabricator via cfe-commits
rjmccall added inline comments. Comment at: lib/CodeGen/CGDecl.cpp:158 + // variable in constant address space in OpenCL. + if (D.getStorageDuration() != SD_Automatic && !D.hasExternalStorage()) { llvm::GlobalValue::LinkageTypes Linkage = Please rearrange

[PATCH] D32759: Fix errored return value in CheckFunctionReturnType and add a fixit hint

2017-05-10 Thread Erich Keane via Phabricator via cfe-commits
erichkeane added a comment. In https://reviews.llvm.org/D32759#751350, @efriedma wrote: > Err, I meant the one I wrote earlier in this thread: > https://reviews.llvm.org/D32759#748007 AH! I missed that one. I'll create a new file in SemaObjCXX then. https://reviews.llvm.org/D32759 __

[PATCH] D32977: [OpenCL] Emit function-scope variable in constant address space as static variable

2017-05-10 Thread Yaxun Liu via Phabricator via cfe-commits
yaxunl marked 3 inline comments as done. yaxunl added inline comments. Comment at: lib/Sema/SemaDecl.cpp:10286 + // these variables must be a compile time constant. + VDecl->getType().getAddressSpace() == LangAS::opencl_constant) CheckForConstantInitial

[PATCH] D33021: [libcxx] [test] libc++ test changes for CWG 2094

2017-05-10 Thread Eric Fiselier via Phabricator via cfe-commits
EricWF accepted this revision. EricWF added a comment. This revision is now accepted and ready to land. LGTM. The bots are already failing because I upgraded their compilers. @BillyONeal Can you commit this soon so I can clean up any fallout? https://reviews.llvm.org/D33021 _

[PATCH] D32759: Fix errored return value in CheckFunctionReturnType and add a fixit hint

2017-05-10 Thread Erich Keane via Phabricator via cfe-commits
erichkeane updated this revision to Diff 98504. https://reviews.llvm.org/D32759 Files: lib/Sema/SemaType.cpp test/SemaObjC/method-bad-param.m test/SemaObjCXX/method-bad-param.mm Index: lib/Sema/SemaType.cpp === --- lib/Sema/S

[PATCH] D33029: [clang-format] add option for dangling parenthesis

2017-05-10 Thread Martin Probst via Phabricator via cfe-commits
mprobst added a comment. So, currently clang-format doesn't really understand trailing commas in parenthesized lists (such as parameter declarations or lists). It should, and coincidentally I was just yesterday trying to get that working in https://reviews.llvm.org/D33023. Regarding the option

[libcxx] r302709 - [libc++] Fix PR32979 - types with a private std::enable_shared_from_this base break shared_ptr

2017-05-10 Thread Eric Fiselier via cfe-commits
Author: ericwf Date: Wed May 10 14:35:49 2017 New Revision: 302709 URL: http://llvm.org/viewvc/llvm-project?rev=302709&view=rev Log: [libc++] Fix PR32979 - types with a private std::enable_shared_from_this base break shared_ptr Summary: This patch fixes bugs.llvm.org/PR32979. [util.smartptr.sh

[PATCH] D33021: [libcxx] [test] libc++ test changes for CWG 2094

2017-05-10 Thread Billy Robert O'Neal III via Phabricator via cfe-commits
BillyONeal updated this revision to Diff 98506. BillyONeal added a comment. Added spaces requested by Marshal. https://reviews.llvm.org/D33021 Files: test/std/utilities/meta/meta.unary/meta.unary.prop/is_trivially_copyable.pass.cpp Index: test/std/utilities/meta/meta.unary/meta.unary.prop

[PATCH] D33021: [libcxx] [test] libc++ test changes for CWG 2094

2017-05-10 Thread Phabricator via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL302710: Update is_trivially_copyable tests with CWG 2094 (authored by bion). Changed prior to commit: https://reviews.llvm.org/D33021?vs=98506&id=98508#toc Repository: rL LLVM https://reviews.llvm.o

[libcxx] r302710 - Update is_trivially_copyable tests with CWG 2094

2017-05-10 Thread Billy Robert O'Neal III via cfe-commits
Author: bion Date: Wed May 10 14:43:31 2017 New Revision: 302710 URL: http://llvm.org/viewvc/llvm-project?rev=302710&view=rev Log: Update is_trivially_copyable tests with CWG 2094 Clang 5.0 implements these changes here: https://github.com/llvm-mirror/clang/commit/87cd035326a39523eeb1b295ad36cff

[PATCH] D33029: [clang-format] add option for dangling parenthesis

2017-05-10 Thread Ryan Stringham via Phabricator via cfe-commits
stringham added a comment. I think we should have the option whether or not a trailing comma is preset for a few reasons: 1. clang-format doesn't support enforcing adding trailing commas 2. trailing commas aren't always supported (if you use the rest operator) - `Uncaught SyntaxError: Rest par

[PATCH] D32977: [OpenCL] Emit function-scope variable in constant address space as static variable

2017-05-10 Thread Yaxun Liu via Phabricator via cfe-commits
yaxunl updated this revision to Diff 98510. yaxunl marked an inline comment as done. yaxunl added a comment. Revised by John's comments. https://reviews.llvm.org/D32977 Files: include/clang/AST/Decl.h lib/CodeGen/CGDecl.cpp lib/Sema/SemaDecl.cpp test/CodeGenOpenCL/amdgpu-debug-info-poin

[libcxx] r302713 - Clean up LIT failure output by not showing the entire environment

2017-05-10 Thread Eric Fiselier via cfe-commits
Author: ericwf Date: Wed May 10 14:55:42 2017 New Revision: 302713 URL: http://llvm.org/viewvc/llvm-project?rev=302713&view=rev Log: Clean up LIT failure output by not showing the entire environment Modified: libcxx/trunk/utils/libcxx/test/executor.py Modified: libcxx/trunk/utils/libcxx/test

[PATCH] D33029: [clang-format] add option for dangling parenthesis

2017-05-10 Thread Ryan Stringham via Phabricator via cfe-commits
stringham added a comment. If the parameter list fits within the column limit, and there are no trailing commas, then we don't end up wrapping the closing paren. If it is long enough that it causes wrapping (regardless of trailing commas), and the wrapping happens directly after the opening par

[PATCH] D32759: Fix errored return value in CheckFunctionReturnType and add a fixit hint

2017-05-10 Thread Eli Friedman via Phabricator via cfe-commits
efriedma accepted this revision. efriedma added a comment. This revision is now accepted and ready to land. LGTM https://reviews.llvm.org/D32759 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/c

[PATCH] D32759: Fix errored return value in CheckFunctionReturnType and add a fixit hint

2017-05-10 Thread Eli Friedman via Phabricator via cfe-commits
efriedma added a comment. Err, oh, meant to add one minor comment: please rename "method-bad-param.mm" to "interface-return-type.mm". https://reviews.llvm.org/D32759 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-

[PATCH] D33061: [tooling] RefactoringCallbacks code cleanup

2017-05-10 Thread Alexander Shaposhnikov via Phabricator via cfe-commits
alexshap created this revision. alexshap created this object with visibility "All Users". 1. Add missing "explicit" for single argument constructors 2. Add missing std::move in ReplaceNodeWithTemplate constructor and switch to pass-by-value idiom Test plan: make check-clang Repository: rL LL

r302720 - Fix errored return value in CheckFunctionReturnType and add a fixit hint

2017-05-10 Thread Erich Keane via cfe-commits
Author: erichkeane Date: Wed May 10 15:03:16 2017 New Revision: 302720 URL: http://llvm.org/viewvc/llvm-project?rev=302720&view=rev Log: Fix errored return value in CheckFunctionReturnType and add a fixit hint As discovered by ChenWJ and listed on cfe-dev, the error for Objective C return type e

[PATCH] D32759: Fix errored return value in CheckFunctionReturnType and add a fixit hint

2017-05-10 Thread Erich Keane via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL302720: Fix errored return value in CheckFunctionReturnType and add a fixit hint (authored by erichkeane). Changed prior to commit: https://reviews.llvm.org/D32759?vs=98504&id=98516#toc Repository: r

[libcxx] r302721 - Fix enable_shared_from_this test in C++11

2017-05-10 Thread Eric Fiselier via cfe-commits
Author: ericwf Date: Wed May 10 15:09:20 2017 New Revision: 302721 URL: http://llvm.org/viewvc/llvm-project?rev=302721&view=rev Log: Fix enable_shared_from_this test in C++11 Modified: libcxx/trunk/test/std/utilities/memory/util.smartptr/util.smartptr.enab/enable_shared_from_this.pass.cpp M

[PATCH] D28952: [analyzer] Add new Z3 constraint manager backend

2017-05-10 Thread Dominic Chen via Phabricator via cfe-commits
ddcc added a comment. In https://reviews.llvm.org/D28952#750558, @iris wrote: > How can I make z3constraintmanager.cpp work in the command line?Or how to > make z3 work? You'll need a bleeding-edge build of Clang/LLVM, since this isn't available in any stable release yet. First, build or inst

[libcxx] r302723 - XFAIL is_trivially_copyable test for compilers that don't implement Core 2094

2017-05-10 Thread Eric Fiselier via cfe-commits
Author: ericwf Date: Wed May 10 15:19:35 2017 New Revision: 302723 URL: http://llvm.org/viewvc/llvm-project?rev=302723&view=rev Log: XFAIL is_trivially_copyable test for compilers that don't implement Core 2094 Modified: libcxx/trunk/test/std/utilities/meta/meta.unary/meta.unary.prop/is_triv

[PATCH] D32988: [libc++] Refactor Windows support headers.

2017-05-10 Thread Eric Fiselier via Phabricator via cfe-commits
EricWF updated this revision to Diff 98528. EricWF added a comment. - General cleanup changes. Libc++ trunk currently doesn't build under MinGW, so I'm not concerned about breaking that worse with this patch. I've set up a Appveyor builder to track MinGW so we can get it green later. Also I'm

[libcxx] r302724 - Implement LWG 2591 - Patch from K-Ballo

2017-05-10 Thread Eric Fiselier via cfe-commits
Author: ericwf Date: Wed May 10 15:37:43 2017 New Revision: 302724 URL: http://llvm.org/viewvc/llvm-project?rev=302724&view=rev Log: Implement LWG 2591 - Patch from K-Ballo Modified: libcxx/trunk/test/std/utilities/function.objects/func.wrap/func.wrap.func/func.wrap.func.targ/target.pass.cpp

[PATCH] D32988: [libc++] Refactor Windows support headers.

2017-05-10 Thread Ben Craig via Phabricator via cfe-commits
bcraig added a comment. LGTM https://reviews.llvm.org/D32988 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[PATCH] D32988: [libc++] Refactor Windows support headers.

2017-05-10 Thread Eric Fiselier via Phabricator via cfe-commits
EricWF accepted this revision. EricWF added a comment. @compnerd I'm going to go ahead and land this and then submit a separate review for the changes you've requested. I hope you don't mind :-) https://reviews.llvm.org/D32988 ___ cfe-commits maili

[libcxx] r302727 - [libc++] Refactor Windows support headers.

2017-05-10 Thread Eric Fiselier via cfe-commits
Author: ericwf Date: Wed May 10 15:57:45 2017 New Revision: 302727 URL: http://llvm.org/viewvc/llvm-project?rev=302727&view=rev Log: [libc++] Refactor Windows support headers. Summary: This patch refactors and tries to remove as much of the Windows support headers as possible. This is needed bec

  1   2   >