[libclc] r279359 - amdgpu: Fix default case value for get_local_size

2016-08-19 Thread Matt Arsenault via cfe-commits
Author: arsenm Date: Fri Aug 19 23:17:17 2016 New Revision: 279359 URL: http://llvm.org/viewvc/llvm-project?rev=279359=rev Log: amdgpu: Fix default case value for get_local_size Modified: libclc/trunk/amdgcn/lib/workitem/get_local_size.ll libclc/trunk/r600/lib/workitem/get_local_size.ll

Re: [PATCH] D23343: [clang-tidy] modernize-make-{smart_ptr} private ctor bugfix

2016-08-19 Thread Piotr Padlewski via cfe-commits
Prazek added inline comments. Comment at: clang-tidy/modernize/MakeSmartPtrCheck.cpp:35 @@ +34,3 @@ + auto CanCallCtor = unless(has(ignoringImpCasts(cxxConstructExpr( + hasDeclaration(decl(anyOf(isPrivate(), isProtected(; + alexfh wrote: > Prazek

r279358 - Revert r279351 and r279357 due to bot failures

2016-08-19 Thread Manman Ren via cfe-commits
Author: mren Date: Fri Aug 19 22:00:54 2016 New Revision: 279358 URL: http://llvm.org/viewvc/llvm-project?rev=279358=rev Log: Revert r279351 and r279357 due to bot failures Modified: cfe/trunk/include/clang/AST/Type.h cfe/trunk/lib/AST/Type.cpp Modified:

r279357 - Fix windows bot

2016-08-19 Thread Manman Ren via cfe-commits
Author: mren Date: Fri Aug 19 21:28:15 2016 New Revision: 279357 URL: http://llvm.org/viewvc/llvm-project?rev=279357=rev Log: Fix windows bot Modified: cfe/trunk/include/clang/AST/Type.h Modified: cfe/trunk/include/clang/AST/Type.h URL:

Re: r278882 - If possible, set the stack rlimit to at least 8MiB on cc1 startup, and work

2016-08-19 Thread Sean Silva via cfe-commits
On Fri, Aug 19, 2016 at 4:33 PM, Joerg Sonnenberger via cfe-commits < cfe-commits@lists.llvm.org> wrote: > On Fri, Aug 19, 2016 at 03:30:42PM -0700, Richard Smith wrote: > > It typically does; the default stack ulimit is likely tuned for "normal" > > applications that are not expected (by an ISO

Re: [PATCH] D23734: Add -fprofile-dir= to clang.

2016-08-19 Thread Nick Lewycky via cfe-commits
nlewycky updated this revision to Diff 68755. nlewycky added a comment. Forgot clang changes! https://reviews.llvm.org/D23734 Files: lib/Transforms/Instrumentation/GCOVProfiling.cpp test/Transforms/GCOVProfiling/three-element-mdnode.ll tools/clang/include/clang/Driver/CC1Options.td

Re: r278882 - If possible, set the stack rlimit to at least 8MiB on cc1 startup, and work

2016-08-19 Thread Chandler Carruth via cfe-commits
I feel like this thread has two very unrelated concerns and it might be useful to separate them. 1) Should an application be changing the stack limit, or should the system be able to enforce this? Fortunately, there are two limits. One an application is allowed to change, one it isn't. It seems

Re: r279351 - [NFC] Add a class ObjCProtocolQualifiers to wrap APIs for ObjC protocol list.

2016-08-19 Thread Vitaly Buka via cfe-commits
Windows build is broken http://lab.llvm.org:8011/builders/sanitizer-windows/builds/27686/steps/run%20tests/logs/stdio On Fri, Aug 19, 2016 at 5:12 PM Manman Ren via cfe-commits < cfe-commits@lists.llvm.org> wrote: > Author: mren > Date: Fri Aug 19 19:04:21 2016 > New Revision: 279351 > > URL:

Re: r279348 - [Driver] Remove unused #include of llvm/Support/config.h

2016-08-19 Thread Richard Smith via cfe-commits
Oops, thanks! :) On Fri, Aug 19, 2016 at 4:15 PM, Vedant Kumar via cfe-commits < cfe-commits@lists.llvm.org> wrote: > Author: vedantk > Date: Fri Aug 19 18:15:35 2016 > New Revision: 279348 > > URL: http://llvm.org/viewvc/llvm-project?rev=279348=rev > Log: > [Driver] Remove unused #include of

Re: [PATCH] D23079: ObjC: Use a new type for ObjC type parameter (patch 2 out of 3)

2016-08-19 Thread Manman Ren via cfe-commits
manmanren added a comment. Thanks for reviewing! Manman Comment at: include/clang/AST/RecursiveASTVisitor.h:1037 @@ -1036,1 +1036,3 @@ +DEF_TRAVERSE_TYPE(ObjCTypeParamType, {}) + doug.gregor wrote: > I'm sorta shocked that we don't visit the protocol

Re: [PATCH] D23080: ObjC: Use a new type for ObjC type parameter (patch 3 out of 3)

2016-08-19 Thread Manman Ren via cfe-commits
manmanren added a comment. I will update this patch once the 2nd patch is done. Thanks for reviewing, Manman Comment at: lib/AST/Type.cpp:1095 @@ +1094,3 @@ +return ctx.getQualifiedType(argType, splitType.Quals); + // Apply protocol lists if exists. Should

r279351 - [NFC] Add a class ObjCProtocolQualifiers to wrap APIs for ObjC protocol list.

2016-08-19 Thread Manman Ren via cfe-commits
Author: mren Date: Fri Aug 19 19:04:21 2016 New Revision: 279351 URL: http://llvm.org/viewvc/llvm-project?rev=279351=rev Log: [NFC] Add a class ObjCProtocolQualifiers to wrap APIs for ObjC protocol list. This is in preparation of adding a new type class ObjCTypeParamType that can take protocol

Re: [PATCH] D23078: ObjC: Use a new type for ObjC type parameter (Patch 1 out of 3)

2016-08-19 Thread Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL279351: [NFC] Add a class ObjCProtocolQualifiers to wrap APIs for ObjC protocol list. (authored by mren). Changed prior to commit: https://reviews.llvm.org/D23078?vs=66526=68750#toc Repository: rL

[libclc] r279350 - amdgcn: Fix get_local_size IR return type

2016-08-19 Thread Matt Arsenault via cfe-commits
Author: arsenm Date: Fri Aug 19 19:01:21 2016 New Revision: 279350 URL: http://llvm.org/viewvc/llvm-project?rev=279350=rev Log: amdgcn: Fix get_local_size IR return type Added: libclc/trunk/amdgcn/lib/workitem/get_local_size.ll libclc/trunk/r600/lib/workitem/get_local_size.ll -

Re: [PATCH] D23719: [libc++] Use C11 for atomics check

2016-08-19 Thread Shoaib Meenai via cfe-commits
smeenai added a comment. In https://reviews.llvm.org/D23719#521250, @rsmith wrote: > Is there a -nodefaultlib analogue of -nostdinc++ to turn off just the C++ > standard library portion of the link? There's `-nostdlib`, but if I'm parsing the GCC documentation

[PATCH] D23730: [GraphTraits] Replace all NodeType usage with NodeRef

2016-08-19 Thread Tim Shen via cfe-commits
timshen created this revision. timshen added a reviewer: dblaikie. timshen added subscribers: llvm-commits, cfe-commits. Herald added subscribers: mzolotukhin, MatzeB. This should finish the GraphTraits migration. https://reviews.llvm.org/D23730 Files:

Re: [PATCH] D23643: [Driver] Report invalid -mtune/-mcpu parameters when -arch=arm64

2016-08-19 Thread Vedant Kumar via cfe-commits
vsk updated this revision to Diff 68747. vsk added a comment. - Specify a target per Tim's comments. This now passes 'check-clang' on Ubuntu Xenial. https://reviews.llvm.org/D23643 Files: lib/Driver/Tools.cpp test/Driver/arm-cortex-cpus.c Index: test/Driver/arm-cortex-cpus.c

Re: [PATCH] D23653: Minor cleanup of SimpleTypoCorrector

2016-08-19 Thread Alexander Shaposhnikov via cfe-commits
alexshap added a reviewer: Eugene.Zelenko. alexshap removed rL LLVM as the repository for this revision. alexshap updated this revision to Diff 68746. alexshap added a comment. 1. clang-tidy -checks=google-explicit-constructor tools/clang/lib/AST/CommentSema.cpp - no other issues found 2.

Re: [PATCH] D23080: ObjC: Use a new type for ObjC type parameter (patch 3 out of 3)

2016-08-19 Thread Doug Gregor via cfe-commits
doug.gregor requested changes to this revision. doug.gregor added a comment. This revision now requires changes to proceed. I think most of the complexity here will fold away when ObjCTypeParamType becomes sugar for the underlying ObjCObjectPointerType. Comment at:

Re: r278882 - If possible, set the stack rlimit to at least 8MiB on cc1 startup, and work

2016-08-19 Thread Joerg Sonnenberger via cfe-commits
On Fri, Aug 19, 2016 at 03:30:42PM -0700, Richard Smith wrote: > It typically does; the default stack ulimit is likely tuned for "normal" > applications that are not expected (by an ISO standard) to cope with > recursing a thousand levels deep. If the system administrator really wants > to control

r279348 - [Driver] Remove unused #include of llvm/Support/config.h

2016-08-19 Thread Vedant Kumar via cfe-commits
Author: vedantk Date: Fri Aug 19 18:15:35 2016 New Revision: 279348 URL: http://llvm.org/viewvc/llvm-project?rev=279348=rev Log: [Driver] Remove unused #include of llvm/Support/config.h This is a follow-up to r279112 (which removed the need for the header) and in the same spirit as r279035

Re: [PATCH] D23653: Minor cleanup of SimpleTypoCorrector

2016-08-19 Thread Eugene Zelenko via cfe-commits
Eugene.Zelenko added a comment. I meant to format only constructor, not entire file. Repository: rL LLVM https://reviews.llvm.org/D23653 ___ cfe-commits mailing list cfe-commits@lists.llvm.org

Re: [PATCH] D23653: Minor cleanup of SimpleTypoCorrector

2016-08-19 Thread Alexander Shaposhnikov via cfe-commits
alexshap added a comment. i can do that, although there will be a lot of changes (mostly because of clang-format). Another concern is that the style of the other files located inside the same folder also might be not clang-format compliant. Do you want me to do that ? (i mean to run clang-tidy

[libclc] r279343 - amdgcn: Correct return types to be size_t

2016-08-19 Thread Matt Arsenault via cfe-commits
Author: arsenm Date: Fri Aug 19 17:49:39 2016 New Revision: 279343 URL: http://llvm.org/viewvc/llvm-project?rev=279343=rev Log: amdgcn: Correct return types to be size_t Modified: libclc/trunk/amdgcn/lib/workitem/get_global_offset.cl libclc/trunk/amdgcn/lib/workitem/get_group_id.cl

Re: [PATCH] D23079: ObjC: Use a new type for ObjC type parameter (patch 2 out of 3)

2016-08-19 Thread Doug Gregor via cfe-commits
doug.gregor requested changes to this revision. doug.gregor added a comment. This revision now requires changes to proceed. A couple of comments above, but this is looking very good. Comment at: include/clang/AST/RecursiveASTVisitor.h:1037 @@ -1036,1 +1036,3 @@

Re: [PATCH] D23719: [libc++] Use C11 for atomics check

2016-08-19 Thread Richard Smith via cfe-commits
rsmith added a comment. In https://reviews.llvm.org/D23719#521233, @smeenai wrote: > I'm thinking the best way to accomplish this is to globally add > `-nodefaultlib` to `CMAKE_REQUIRED_FLAGS`, and then globally set > `CMAKE_REQUIRED_LIBRARIES` to the required set of libraries, similar to what

Re: [PATCH] D23078: ObjC: Use a new type for ObjC type parameter (Patch 1 out of 3)

2016-08-19 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. This refactor LGTM. https://reviews.llvm.org/D23078 ___ cfe-commits mailing list cfe-commits@lists.llvm.org

Re: r278882 - If possible, set the stack rlimit to at least 8MiB on cc1 startup, and work

2016-08-19 Thread Richard Smith via cfe-commits
On Fri, Aug 19, 2016 at 1:43 PM, Joerg Sonnenberger via cfe-commits < cfe-commits@lists.llvm.org> wrote: > On Fri, Aug 19, 2016 at 01:16:59PM -0700, Richard Smith wrote: > > On Fri, Aug 19, 2016 at 1:10 PM, Joerg Sonnenberger via cfe-commits < > > cfe-commits@lists.llvm.org> wrote: > > > > > On

Re: [PATCH] D23719: [libc++] Use C11 for atomics check

2016-08-19 Thread Shoaib Meenai via cfe-commits
smeenai planned changes to this revision. smeenai added a comment. @rsmith: I think your points are valid, and I should have been more explicit with the motivation :) The issue is with linking, not with compiling. When we call `check_cxx_source_compiles`, the compiler driver passes all the

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

2016-08-19 Thread Alexander Shaposhnikov via cfe-commits
alexshap removed rL LLVM as the repository for this revision. alexshap updated this revision to Diff 68738. alexshap added a comment. 1. Handle C++ ctors. 2. Add tests. 3. I have a diff for proper moving the attached comments based on http://llvm.org/devmtg/2012-11/Gribenko_CommentParsing.pdf .

[PATCH] D23728: [Clang-tidy] Fix style in some checks documentation

2016-08-19 Thread Eugene Zelenko via cfe-commits
Eugene.Zelenko created this revision. Eugene.Zelenko added a reviewer: alexfh. Eugene.Zelenko added a subscriber: cfe-commits. Eugene.Zelenko set the repository for this revision to rL LLVM. Herald added a subscriber: nemanjai. Repository: rL LLVM https://reviews.llvm.org/D23728 Files:

r279330 - [www] Add nullability questions to analyzer FAQ.

2016-08-19 Thread Devin Coughlin via cfe-commits
Author: dcoughlin Date: Fri Aug 19 17:04:45 2016 New Revision: 279330 URL: http://llvm.org/viewvc/llvm-project?rev=279330=rev Log: [www] Add nullability questions to analyzer FAQ. Modified: cfe/trunk/www/analyzer/faq.html Modified: cfe/trunk/www/analyzer/faq.html URL:

Re: [PATCH] D23726: [CallGraph] Use decltype instead of pointer_to_unary_function. NFC.

2016-08-19 Thread Tim Shen via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL279329: [CallGraph] Use decltype instead of pointer_to_unary_function. NFC. (authored by timshen). Changed prior to commit: https://reviews.llvm.org/D23726?vs=68733=68736#toc Repository: rL LLVM

r279329 - [CallGraph] Use decltype instead of pointer_to_unary_function. NFC.

2016-08-19 Thread Tim Shen via cfe-commits
Author: timshen Date: Fri Aug 19 16:52:42 2016 New Revision: 279329 URL: http://llvm.org/viewvc/llvm-project?rev=279329=rev Log: [CallGraph] Use decltype instead of pointer_to_unary_function. NFC. Reviewers: dblaikie Subscribers: cfe-commits Differential Revision:

[PATCH] D23726: [CallGraph] Use decltype instead of pointer_to_unary_function. NFC.

2016-08-19 Thread Tim Shen via cfe-commits
timshen created this revision. timshen added a reviewer: dblaikie. timshen added a subscriber: cfe-commits. https://reviews.llvm.org/D23726 Files: include/clang/Analysis/CallGraph.h Index: include/clang/Analysis/CallGraph.h ===

Re: [PATCH] D23705: [GraphTraits] Make nodes_iterator dereference to NodeType*

2016-08-19 Thread Tim Shen via cfe-commits
timshen closed this revision. timshen added a comment. Landed as r279326. https://reviews.llvm.org/D23705 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

r279326 - [GraphTraits] Make nodes_iterator dereference to NodeType*/NodeRef

2016-08-19 Thread Tim Shen via cfe-commits
Author: timshen Date: Fri Aug 19 16:20:13 2016 New Revision: 279326 URL: http://llvm.org/viewvc/llvm-project?rev=279326=rev Log: [GraphTraits] Make nodes_iterator dereference to NodeType*/NodeRef Currently nodes_iterator may dereference to a NodeType* or a NodeType&. Make them all dereference

Re: [PATCH] D23653: Minor cleanup of SimpleTypoCorrector

2016-08-19 Thread Eugene Zelenko via cfe-commits
Eugene.Zelenko added a subscriber: Eugene.Zelenko. Eugene.Zelenko added a comment. I think will be good idea to run Clang-format over constructor code and Clang-tidy google-explicit-constructor over entire file. Repository: rL LLVM https://reviews.llvm.org/D23653

Re: [PATCH] D23653: Minor cleanup of SimpleTypoCorrector

2016-08-19 Thread Alexander Shaposhnikov via cfe-commits
alexshap added a comment. ping https://reviews.llvm.org/D23653 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Re: r278882 - If possible, set the stack rlimit to at least 8MiB on cc1 startup, and work

2016-08-19 Thread Joerg Sonnenberger via cfe-commits
On Fri, Aug 19, 2016 at 01:16:59PM -0700, Richard Smith wrote: > On Fri, Aug 19, 2016 at 1:10 PM, Joerg Sonnenberger via cfe-commits < > cfe-commits@lists.llvm.org> wrote: > > > On Fri, Aug 19, 2016 at 01:03:51PM -0700, Richard Smith wrote: > > > On Fri, Aug 19, 2016 at 12:58 PM, Joerg

Re: [PATCH] D23643: [Driver] Report invalid -mtune/-mcpu parameters when -arch=arm64

2016-08-19 Thread Tim Northover via cfe-commits
t.p.northover added inline comments. Comment at: test/Driver/arm-cortex-cpus.c:306 @@ -305,2 +305,3 @@ // RUN: %clang -target arm -mcpu=bogus -### -c %s 2>&1 | FileCheck -check-prefix=CHECK-BOGUS-CPU %s +// RUN: %clang -arch arm64 -mcpu=bogus -### -c %s 2>&1 | FileCheck

Re: [PATCH] D23719: [libc++] Use C11 for atomics check

2016-08-19 Thread Richard Smith via cfe-commits
rsmith added a comment. I have to admit to not understanding the motivation for this change. It claims that this is removing a reliance on having an existing C++ standard library, but it doesn't appear to affect that: this test explicitly passes `-nostdinc++` to avoid using a system standard

Re: r278882 - If possible, set the stack rlimit to at least 8MiB on cc1 startup, and work

2016-08-19 Thread Richard Smith via cfe-commits
On Fri, Aug 19, 2016 at 1:10 PM, Joerg Sonnenberger via cfe-commits < cfe-commits@lists.llvm.org> wrote: > On Fri, Aug 19, 2016 at 01:03:51PM -0700, Richard Smith wrote: > > On Fri, Aug 19, 2016 at 12:58 PM, Joerg Sonnenberger via cfe-commits < > > cfe-commits@lists.llvm.org> wrote: > > > > > On

Re: r278882 - If possible, set the stack rlimit to at least 8MiB on cc1 startup, and work

2016-08-19 Thread Joerg Sonnenberger via cfe-commits
On Fri, Aug 19, 2016 at 01:03:51PM -0700, Richard Smith wrote: > On Fri, Aug 19, 2016 at 12:58 PM, Joerg Sonnenberger via cfe-commits < > cfe-commits@lists.llvm.org> wrote: > > > On Thu, Aug 18, 2016 at 11:33:49AM -0700, Richard Smith wrote: > > > On Wed, Aug 17, 2016 at 6:35 AM, Joerg

Re: r278882 - If possible, set the stack rlimit to at least 8MiB on cc1 startup, and work

2016-08-19 Thread Richard Smith via cfe-commits
On Fri, Aug 19, 2016 at 12:58 PM, Joerg Sonnenberger via cfe-commits < cfe-commits@lists.llvm.org> wrote: > On Thu, Aug 18, 2016 at 11:33:49AM -0700, Richard Smith wrote: > > On Wed, Aug 17, 2016 at 6:35 AM, Joerg Sonnenberger via cfe-commits < > > cfe-commits@lists.llvm.org> wrote: > > > > > On

Re: r278882 - If possible, set the stack rlimit to at least 8MiB on cc1 startup, and work

2016-08-19 Thread Joerg Sonnenberger via cfe-commits
On Thu, Aug 18, 2016 at 11:33:49AM -0700, Richard Smith wrote: > On Wed, Aug 17, 2016 at 6:35 AM, Joerg Sonnenberger via cfe-commits < > cfe-commits@lists.llvm.org> wrote: > > > On Wed, Aug 17, 2016 at 01:05:08AM -, Richard Smith via cfe-commits > > wrote: > > > Author: rsmith > > > Date: Tue

Re: [PATCH] D23492: Make function local tags visible.

2016-08-19 Thread Vassil Vassilev via cfe-commits
v.g.vassilev updated this revision to Diff 68723. v.g.vassilev marked an inline comment as done. v.g.vassilev added a comment. Sink some of the diagnostics in the DiagnoseUninstantiableTemplate. https://reviews.llvm.org/D23492 Files: include/clang/Sema/Sema.h lib/Sema/SemaTemplate.cpp

Re: [PATCH] D23651: [clang-rename] improve performance for rename-all

2016-08-19 Thread Miklos Vajna via cfe-commits
vmiklos added a comment. It is expected that either SymbolOffsets or OldNames is empty, and the size of the non-empty container is the same as the size of the NewNames container. So no, the code does not rely on the offsets and the old names having the same length.

Re: [PATCH] D23719: [libc++] Use C11 for atomics check

2016-08-19 Thread Ben Craig via cfe-commits
bcraig added a comment. In https://reviews.llvm.org/D23719#520969, @rsmith wrote: > In https://reviews.llvm.org/D23719#520954, @bcraig wrote: > > > In https://reviews.llvm.org/D23719#520952, @rsmith wrote: > > > > > Are we really guaranteed that the C and C++ compiler behave the same way > > >

Re: [PATCH] D23705: [GraphTraits] Make nodes_iterator dereference to NodeType*

2016-08-19 Thread Tim Shen via cfe-commits
timshen added inline comments. Comment at: include/clang/Analysis/CallGraph.h:219 @@ -217,5 +218,3 @@ } - static clang::CallGraphNode (PairTy P) { -return *(P.second); - } + static clang::CallGraphNode *CGdereference(PairTy P) { return P.second; }

Re: [PATCH] D23719: [libc++] Use C11 for atomics check

2016-08-19 Thread Richard Smith via cfe-commits
rsmith added a comment. In https://reviews.llvm.org/D23719#520954, @bcraig wrote: > In https://reviews.llvm.org/D23719#520952, @rsmith wrote: > > > Are we really guaranteed that the C and C++ compiler behave the same way > > here? I don't see why that would necessarily be the case. > > > For

Re: [PATCH] D23651: [clang-rename] improve performance for rename-all

2016-08-19 Thread Alexander Kornienko via cfe-commits
alexfh requested changes to this revision. This revision now requires changes to proceed. Comment at: clang-rename/USRFindingAction.cpp:145 @@ +144,3 @@ + explicit NamedDeclFindingConsumer( + ArrayRef SymbolOffsets, + ArrayRef OldNames, What about the

Re: [PATCH] D23719: [libc++] Use C11 for atomics check

2016-08-19 Thread Ben Craig via cfe-commits
bcraig added a comment. In https://reviews.llvm.org/D23719#520953, @smeenai wrote: > @bcraig: `__STDC_NO_ATOMICS__` wouldn't be defined for pre-C11 compilers > either, right? > > From what I understand of the original code sample, one of the purposes was > to check for 64-bit atomic support on

Re: [PATCH] D23719: [libc++] Use C11 for atomics check

2016-08-19 Thread Ben Craig via cfe-commits
bcraig added a comment. In https://reviews.llvm.org/D23719#520952, @rsmith wrote: > Are we really guaranteed that the C and C++ compiler behave the same way > here? I don't see why that would necessarily be the case. For libc++, std::atomic is implemented in terms of _Atomic. So as long as

Re: [PATCH] D23719: [libc++] Use C11 for atomics check

2016-08-19 Thread Shoaib Meenai via cfe-commits
smeenai added a comment. @bcraig: `__STDC_NO_ATOMICS__` wouldn't be defined for pre-C11 compilers either, right? From what I understand of the original code sample, one of the purposes was to check for 64-bit atomic support on 32-bit systems (hence the use of `uintmax_t` and the check for

Re: [PATCH] D23719: [libc++] Use C11 for atomics check

2016-08-19 Thread Richard Smith via cfe-commits
rsmith added a subscriber: rsmith. rsmith added a comment. Are we really guaranteed that the C and C++ compiler behave the same way here? I don't see why that would necessarily be the case. https://reviews.llvm.org/D23719 ___ cfe-commits mailing

[PATCH] D23720: Omit column info for CodeView by default

2016-08-19 Thread Adrian McCarthy via cfe-commits
amccarth created this revision. amccarth added a subscriber: cfe-commits. Clang tracks only start columns, not start-end ranges. CodeView allows for that, but the VS debugger doesn't handle anything less than a complete range well--it either highlights the wrong part of a statement or

Re: [PATCH] D23719: [libc++] Use C11 for atomics check

2016-08-19 Thread Ben Craig via cfe-commits
bcraig added a subscriber: bcraig. bcraig added a comment. I like the rationale here, but can we avoid pulling in headers at all? You could test _ _STDC_NO_ATOMICS_ _. You could also have some code like this... _Atomic int x; int main() { x += 1; return x; }

[PATCH] D23719: [libc++] Use C11 for atomics check

2016-08-19 Thread Shoaib Meenai via cfe-commits
smeenai created this revision. smeenai added reviewers: beanz, compnerd, EricWF, mclow.lists. smeenai added a subscriber: cfe-commits. The purpose of the check is to see if atomics are present and if they require an explicit -latomic to link. We can achieve this equally well by testing for C11

Re: [PATCH] D23705: [GraphTraits] Make nodes_iterator dereference to NodeType*

2016-08-19 Thread David Blaikie via cfe-commits
dblaikie accepted this revision. dblaikie added a comment. This revision is now accepted and ready to land. Consider renaming and/or generalizing the handlers. Also, in a follow-up or preliminary commit, could you remove all the DerefFun stuff. Move the definition of CGdereference (if they

Re: [PATCH] D23712: [OpenCL] Override supported OpenCL extensions with -cl-ext option

2016-08-19 Thread Anastasia Stulova via cfe-commits
Anastasia added a comment. What would be the use case to override the supported extensions for the end user? The change to set the right extensions based on the target compiled for was to avoid mis-compilations. But adding a user flag to control that could lead to the old problem to reoccur.

Re: [PATCH] D23086: [OpenCL] Generate concrete struct type for ndrange_t

2016-08-19 Thread Anastasia Stulova via cfe-commits
Anastasia added a comment. Just to summarize, it seems there are the following options to proceed, each has some benefits and disadvantages: 1. We can check the canonical type. This gives us possibility to accept the type name aliases, but reduces flexibility to implement this type in a custom

Re: [PATCH] D23692: Interpret strlen as constexpr for GCC Compatibility

2016-08-19 Thread Erich Keane via cfe-commits
erichkeane added a comment. In https://reviews.llvm.org/D23692#520097, @erichkeane wrote: > In https://reviews.llvm.org/D23692#520081, @rsmith wrote: > > > This is not a conforming extension. We are explicitly not allowed to make > > standard library functions `constexpr` if the standard

Re: [PATCH] D23714: clang-format: [JS] handle object literals with casts.

2016-08-19 Thread Martin Probst via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL279250: clang-format: [JS] handle object literals with casts. (authored by mprobst). Changed prior to commit: https://reviews.llvm.org/D23714?vs=68686=68688#toc Repository: rL LLVM

r279250 - clang-format: [JS] handle object literals with casts.

2016-08-19 Thread Martin Probst via cfe-commits
Author: mprobst Date: Fri Aug 19 09:35:01 2016 New Revision: 279250 URL: http://llvm.org/viewvc/llvm-project?rev=279250=rev Log: clang-format: [JS] handle object literals with casts. Summary: E.g. `{a: 1} as b`. Reviewers: djasper Subscribers: cfe-commits, klimek Differential Revision:

Re: [PATCH] D22431: clang-format: [JS] nested and tagged template strings.

2016-08-19 Thread Martin Probst via cfe-commits
mprobst marked 9 inline comments as done. mprobst added a comment. https://reviews.llvm.org/D22431 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Re: [PATCH] D22431: clang-format: [JS] nested and tagged template strings.

2016-08-19 Thread Martin Probst via cfe-commits
mprobst updated this revision to Diff 68687. mprobst added a comment. - Use a stack to parse nested template strings. - move docs - Fold GreaterStashed, LessStashed into TOKEN_STASHED lexer state. https://reviews.llvm.org/D22431 Files: lib/Format/FormatTokenLexer.cpp

[PATCH] D23714: clang-format: [JS] handle object literals with casts.

2016-08-19 Thread Martin Probst via cfe-commits
mprobst created this revision. mprobst added a reviewer: djasper. mprobst added a subscriber: cfe-commits. Herald added a subscriber: klimek. E.g. `{a: 1} as b`. https://reviews.llvm.org/D23714 Files: lib/Format/UnwrappedLineParser.cpp unittests/Format/FormatTestJS.cpp Index:

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

2016-08-19 Thread Raphael Isemann via cfe-commits
teemperor updated this revision to Diff 68684. teemperor added a comment. - Fixed typo. https://reviews.llvm.org/D23316 Files: include/clang/Analysis/CloneDetection.h lib/Analysis/CloneDetection.cpp test/Analysis/copypaste/macro-complexity.cpp test/Analysis/copypaste/macros.cpp Index:

Re: [PATCH] D23555: [analyzer] CloneDetector now checks template arguments of function calls.

2016-08-19 Thread Raphael Isemann via cfe-commits
teemperor updated this revision to Diff 68683. teemperor marked an inline comment as done. https://reviews.llvm.org/D23555 Files: lib/Analysis/CloneDetection.cpp test/Analysis/copypaste/call.cpp Index: test/Analysis/copypaste/call.cpp

Re: [PATCH] D23555: [analyzer] CloneDetector now checks template arguments of function calls.

2016-08-19 Thread Raphael Isemann via cfe-commits
teemperor marked 3 inline comments as done. Comment at: lib/Analysis/CloneDetection.cpp:164 @@ +163,3 @@ +for (unsigned i = 0; i < Args->size(); ++i) { + Args->get(i).print(Context.getLangOpts(), OS); +} NoQ wrote: > We don't discriminate

Re: [PATCH] D23418: [analyzer] Added a reusable constraint system to the CloneDetector

2016-08-19 Thread Raphael Isemann via cfe-commits
teemperor retitled this revision from "[analyzer] Added a pass architecture to the CloneDetector" to "[analyzer] Added a reusable constraint system to the CloneDetector". teemperor updated the summary for this revision. teemperor updated this revision to Diff 68680. teemperor added a comment. -

r279240 - Fixed a typo (compilation_commands.json --> compile_commands.json).

2016-08-19 Thread Andrey Bokhanko via cfe-commits
Author: asbokhan Date: Fri Aug 19 08:36:31 2016 New Revision: 279240 URL: http://llvm.org/viewvc/llvm-project?rev=279240=rev Log: Fixed a typo (compilation_commands.json --> compile_commands.json). Modified: cfe/trunk/docs/HowToSetupToolingForLLVM.rst Modified:

Re: Upgrade and fix clang-format-vs

2016-08-19 Thread Antonio Maiorano via cfe-commits
Hi, What I meant by upgrade was simply making it build in VS 2015. However, you bring up a valid point about making sure the extension will continue to work in VS 2012. I will look into that. Like those references that go from 10 to 14 that point out; I wonder if instead I should be able to bring

r279235 - [AMDGPU] add s_incperflevel/s_decperflevel builtins

2016-08-19 Thread Valery Pykhtin via cfe-commits
Author: vpykhtin Date: Fri Aug 19 07:54:31 2016 New Revision: 279235 URL: http://llvm.org/viewvc/llvm-project?rev=279235=rev Log: [AMDGPU] add s_incperflevel/s_decperflevel builtins Differential revision: https://reviews.llvm.org/D23668 Modified:

Re: [PATCH] D23712: [OpenCL] Override supported OpenCL extensions with -cl-ext option

2016-08-19 Thread Andrew Savonichev via cfe-commits
asavonic updated this revision to Diff 68677. asavonic added a comment. - Remove unused test case https://reviews.llvm.org/D23712 Files: include/clang/Basic/OpenCLOptions.h include/clang/Basic/TargetInfo.h include/clang/Basic/TargetOptions.h include/clang/Driver/Options.td

Re: [PATCH] D21279: Fix some issues in clang-format's AlignConsecutive modes

2016-08-19 Thread Daniel Jasper via cfe-commits
djasper added a comment. I think instead of doing some complex computation with LineLevel and NestingLevel, it might be better to just leave them as the pair and compare them as a pair. The LineLevel should probably always trump the NestingLevel. So, I'd try to just defined ScopeLevel as a

Re: [PATCH] D21279: Fix some issues in clang-format's AlignConsecutive modes

2016-08-19 Thread Ben Harper via cfe-commits
bmharper removed rL LLVM as the repository for this revision. bmharper updated this revision to Diff 68675. bmharper added a comment. Fixed the two issues pointed out by djasper in his most recent comments: 1. Only calculate ScopeLevel when necessary. 2. Instead of calculating ScopeLevel by

[PATCH] D23712: [OpenCL] Override supported OpenCL extensions with -cl-ext option

2016-08-19 Thread Andrew Savonichev via cfe-commits
asavonic created this revision. asavonic added a reviewer: Anastasia. asavonic added a subscriber: cfe-commits. This patch adds a command line option '-cl-ext' to control a set of supported OpenCL extensions. Option accepts a comma-separated list of extensions prefixed with '+' or '-'. It can be

Re: [PATCH] D21968: [libcxx] Externally threaded libc++ variant - Take 2

2016-08-19 Thread Asiri Rathnayake via cfe-commits
rmaprath added a comment. @compnerd: I plan to look at https://reviews.llvm.org/D18482 soon (going to need it when this lands). Got moved to a new machine, still setting up the environment :) @mclow.lists: Ping? https://reviews.llvm.org/D21968

Re: [PATCH] D21968: [libcxx] Externally threaded libc++ variant - Take 2

2016-08-19 Thread Asiri Rathnayake via cfe-commits
rmaprath added inline comments. Comment at: CMakeLists.txt:139 @@ -138,1 +138,3 @@ option(LIBCXX_HAS_PTHREAD_API "Ignore auto-detection and force use of pthread API" OFF) +option(LIBCXX_HAS_EXTERNAL_THREAD_API + "Build libc++ with an externalized threading API.

Re: [PATCH] D23651: [clang-rename] improve performance for rename-all

2016-08-19 Thread Kirill Bobyrev via cfe-commits
omtcyfz marked an inline comment as done. Comment at: clang-rename/USRFindingAction.cpp:190 @@ -175,6 +189,3 @@ + USRList.push_back(Finder.Find()); } } Yep. Makes sense. Thanks! Comment at: clang-rename/USRFindingAction.cpp:201-202

Re: [PATCH] D23651: [clang-rename] improve performance for rename-all

2016-08-19 Thread Kirill Bobyrev via cfe-commits
omtcyfz updated this revision to Diff 68668. https://reviews.llvm.org/D23651 Files: clang-rename/USRFindingAction.cpp clang-rename/USRFindingAction.h clang-rename/tool/ClangRename.cpp Index: clang-rename/tool/ClangRename.cpp

Re: [PATCH] D23651: [clang-rename] improve performance for rename-all

2016-08-19 Thread Kirill Bobyrev via cfe-commits
omtcyfz updated this revision to Diff 68667. omtcyfz marked an inline comment as done. https://reviews.llvm.org/D23651 Files: clang-rename/USRFindingAction.cpp clang-rename/USRFindingAction.h clang-rename/tool/ClangRename.cpp Index: clang-rename/tool/ClangRename.cpp

Re: [PATCH] D23651: [clang-rename] improve performance for rename-all

2016-08-19 Thread Alexander Shaposhnikov via cfe-commits
alexshap added inline comments. Comment at: clang-rename/USRFindingAction.cpp:190 @@ -175,1 +189,3 @@ + std::vector NextUSRBunch = Finder.Find(); + USRList.push_back(NextUSRBunch); } USRList.push_back(std::move(NextUSRBunch)) or (IMO even

Re: [PATCH] D23651: [clang-rename] improve performance for rename-all

2016-08-19 Thread Alexander Shaposhnikov via cfe-commits
alexshap added inline comments. Comment at: clang-rename/USRFindingAction.cpp:205 @@ -196,2 +204,3 @@ + USRList)); return std::move(Consumer); } not particularly important, probably it can be simply return

Re: [PATCH] D23452: [OpenCL] Release 3.9 notes

2016-08-19 Thread Anastasia Stulova via cfe-commits
Anastasia added a comment. @hans, I have committed one minor addition to OpenCL notes (r279224), which is important enough to include Index: docs/ReleaseNotes.rst === --- docs/ReleaseNotes.rst (revision 279176) +++

Re: [PATCH] D23651: [clang-rename] improve performance for rename-all

2016-08-19 Thread Kirill Bobyrev via cfe-commits
omtcyfz updated this revision to Diff 68665. omtcyfz added a comment. Address one more comment. https://reviews.llvm.org/D23651 Files: clang-rename/USRFindingAction.cpp clang-rename/USRFindingAction.h clang-rename/tool/ClangRename.cpp Index: clang-rename/tool/ClangRename.cpp

Re: [PATCH] D23651: [clang-rename] improve performance for rename-all

2016-08-19 Thread Kirill Bobyrev via cfe-commits
omtcyfz marked 2 inline comments as done. Comment at: clang-rename/USRFindingAction.cpp:69 @@ -69,3 +68,3 @@ } -USRs->insert(USRs->end(), USRSet.begin(), USRSet.end()); +return std::vector(USRSet.begin(), USRSet.end()); } Ah, sure. Sorry, didn't

[clang-tools-extra] r279226 - minor header guards and help messages cleanup

2016-08-19 Thread Kirill Bobyrev via cfe-commits
Author: omtcyfz Date: Fri Aug 19 04:36:14 2016 New Revision: 279226 URL: http://llvm.org/viewvc/llvm-project?rev=279226=rev Log: minor header guards and help messages cleanup Modified: clang-tools-extra/trunk/clang-rename/RenamingAction.h

Re: [PATCH] D23651: [clang-rename] improve performance for rename-all

2016-08-19 Thread Kirill Bobyrev via cfe-commits
omtcyfz marked an inline comment as done. Comment at: clang-rename/USRFindingAction.cpp:69 @@ -69,2 +68,3 @@ } -USRs->insert(USRs->end(), USRSet.begin(), USRSet.end()); +USRs.insert(USRs.end(), USRSet.begin(), USRSet.end()); +return USRs; alexfh

Re: [PATCH] D23651: [clang-rename] improve performance for rename-all

2016-08-19 Thread Kirill Bobyrev via cfe-commits
omtcyfz updated this revision to Diff 68656. omtcyfz marked 2 inline comments as done. omtcyfz added a comment. Partly address comments. https://reviews.llvm.org/D23651 Files: clang-rename/USRFindingAction.cpp clang-rename/USRFindingAction.h clang-rename/tool/ClangRename.cpp Index: