r293745 - Doxygen comments for prfchwintrin.h

2017-01-31 Thread Ekaterina Romanova via cfe-commits
Author: kromanova Date: Wed Feb 1 01:37:40 2017 New Revision: 293745 URL: http://llvm.org/viewvc/llvm-project?rev=293745&view=rev Log: Doxygen comments for prfchwintrin.h Added doxygen comments to prfchwintrin.h's intrinsics. Note: The doxygen comments are automatically generated based on Sony

[PATCH] D29369: [ubsan] Omit superflous overflow checks for promoted arithmetic (PR20193)

2017-01-31 Thread Vedant Kumar via Phabricator via cfe-commits
vsk created this revision. C requires the operands of arithmetic expressions to be promoted if their types are smaller than an int. Ubsan emits overflow checks when this sort of type promotion occurs, even if there is no way to actually get an overflow with the promoted type. This patch teaches c

r293740 - Remove apparently-unnecessary copy of constructor lookup result.

2017-01-31 Thread Richard Smith via cfe-commits
Author: rsmith Date: Tue Jan 31 21:28:59 2017 New Revision: 293740 URL: http://llvm.org/viewvc/llvm-project?rev=293740&view=rev Log: Remove apparently-unnecessary copy of constructor lookup result. Contrary to the comment, DeclContext intends to guarantee that the lookup results for a particular

Re: Add warning for c++ member variable shadowing

2017-01-31 Thread James Sun via cfe-commits
Fixed! From: Saleem Abdulrasool Date: Tuesday, January 31, 2017 at 6:53 PM To: James Sun Cc: Richard Smith , "cfe-commits@lists.llvm.org" , Aaron Ballman Subject: Re: Add warning for c++ member variable shadowing Hmm, the braces in the if (bases.find(...)...) are not needed. Could you also a

Re: r291963 - [clang] Emit `diagnose_if` warnings from system headers

2017-01-31 Thread Richard Smith via cfe-commits
I'm fine with these patches being merged. Hopefully we still have plenty of time to shake out any problems between now and the release. On 31 January 2017 at 19:09, George Burgess IV wrote: > > IIUC the major risk is that diagnose_if itself turns out to be broken, > not that we'd miscompile anyt

Re: r291963 - [clang] Emit `diagnose_if` warnings from system headers

2017-01-31 Thread George Burgess IV via cfe-commits
> IIUC the major risk is that diagnose_if itself turns out to be broken, not that we'd miscompile anything? Correct. These patches should be NFC to code that doesn't use diagnose_if. If something about that patch *had* to break existing non-diagnose_if-aware code, we're now calling Sema::CheckFun

r293735 - Follow-up to r293732: add a proper triple to the test

2017-01-31 Thread Hans Wennborg via cfe-commits
Author: hans Date: Tue Jan 31 20:48:02 2017 New Revision: 293735 URL: http://llvm.org/viewvc/llvm-project?rev=293735&view=rev Log: Follow-up to r293732: add a proper triple to the test Modified: cfe/trunk/test/CodeGenCXX/initializer-list-ctor-order.cpp Modified: cfe/trunk/test/CodeGenCXX/ini

Re: Add warning for c++ member variable shadowing

2017-01-31 Thread Saleem Abdulrasool via cfe-commits
Hmm, the braces in the if (bases.find(...)...) are not needed. Could you also add a test case for virtual inheritance? On Mon, Jan 30, 2017 at 8:34 PM, James Sun wrote: > Hi Saleem > > > > Thanks for the quick response. A test case is added. It covers some > ordinary cases as well as corner cas

[PATCH] D29350: clang-cl: Evaluate arguments left-to-right in constructor call with initializer list (PR31831)

2017-01-31 Thread Hans Wennborg via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL293732: clang-cl: Evaluate arguments left-to-right in constructor call with initializer… (authored by hans). Changed prior to commit: https://reviews.llvm.org/D29350?vs=86496&id=86549#toc Repository:

r293732 - clang-cl: Evaluate arguments left-to-right in constructor call with initializer list (PR31831)

2017-01-31 Thread Hans Wennborg via cfe-commits
Author: hans Date: Tue Jan 31 20:21:07 2017 New Revision: 293732 URL: http://llvm.org/viewvc/llvm-project?rev=293732&view=rev Log: clang-cl: Evaluate arguments left-to-right in constructor call with initializer list (PR31831) clang-cl would evaluate the arguments right-to-left (see PR), and for

Re: r291963 - [clang] Emit `diagnose_if` warnings from system headers

2017-01-31 Thread Hans Wennborg via cfe-commits
I'm Ok with taking the larger patch (r293360 + r293369) too. It's been in tree for a bit, there is still a number of weeks before the release, and IIUC the major risk is that diagnose_if itself turns out to be broken, not that we'd miscompile anything? On Tue, Jan 31, 2017 at 11:11 AM, Richard Smi

[PATCH] D29350: clang-cl: Evaluate arguments left-to-right in constructor call with initializer list (PR31831)

2017-01-31 Thread Hans Wennborg via Phabricator via cfe-commits
hans added a comment. In https://reviews.llvm.org/D29350#662525, @rnk wrote: > Can you check if we got this wrong in clang 3.8 and 3.9? I'm wondering if > this was a regression, or if we always got this wrong. I tried back to 3.5, and it seems we just always got it wrong. https://reviews.llv

[PATCH] D29350: clang-cl: Evaluate arguments left-to-right in constructor call with initializer list (PR31831)

2017-01-31 Thread Reid Kleckner via Phabricator via cfe-commits
rnk accepted this revision. rnk added a comment. This revision is now accepted and ready to land. lgtm Can you check if we got this wrong in clang 3.8 and 3.9? I'm wondering if this was a regression, or if we always got this wrong. https://reviews.llvm.org/D29350 ___

[PATCH] D29151: [clang-tidy] Add misc-invalidated-iterators check.

2017-01-31 Thread Anna Zaks via Phabricator via cfe-commits
zaks.anna added a comment. Before clang-tidy came into existence the guidelines were very clear. One should write a clang warning if the diagnostic: - can be implemented without path-insensitive analysis (including flow-sensitive) - is checking for language rules (not specific API misuse) In m

[PATCH] D29358: [OpenMP] Report an error for -faltivec on anything other than PowerPC.

2017-01-31 Thread Gheorghe-Teodor Bercea via Phabricator via cfe-commits
gtbercea created this revision. Herald added a subscriber: nemanjai. When performing an offload, throw an error if the host tool chain uses the altivec flag on an architecture other than PowerPC. Repository: rL LLVM https://reviews.llvm.org/D29358 Files: lib/Driver/Tools.cpp test/OpenMP

[PATCH] D29151: [clang-tidy] Add misc-invalidated-iterators check.

2017-01-31 Thread Eugene Zelenko via Phabricator via cfe-commits
Eugene.Zelenko added a comment. > I think we need some sort of clear guidelines on where what functionality > should be added. Even right now there are clang-tidy checks that finds subset > of alpha checks, but probably having lower false positive rate. The other > example is Use after move, th

[PATCH] D29151: [clang-tidy] Add misc-invalidated-iterators check.

2017-01-31 Thread Piotr Padlewski via Phabricator via cfe-commits
Prazek added a comment. In https://reviews.llvm.org/D29151#658484, @zaks.anna wrote: > The static analyzer is definitely the place to go for bug detection that > requires path sensitivity. It's also reasonably good for anything that needs > flow-sensitivity. Although, most flow-sensitive analys

[PATCH] D28365: [Driver] Updated for Visual Studio 2017

2017-01-31 Thread Hamza Sood via Phabricator via cfe-commits
hamzasood updated this revision to Diff 86502. hamzasood added a comment. Added a FIXME comment about configuring use of the Setup Configuration API. In its current form (RC3) the header is distributed in a nuget package, so it's installed per-project instead of being in a system location that ca

Re: [PATCH] D24969: [Sema] Use the instantiated name of destructors in FindInstantiatedDecl and RebuildMemberExpr

2017-01-31 Thread Richard Smith via cfe-commits
On 31 January 2017 at 14:49, Hans Wennborg wrote: > Richard, what do you think? I don't believe this fixes a 3.9 > regression, but the fix looks small, so it might be worth it. > I think on the whole the benefit of this change outweighs the risk of it regressing something. > On Tue, Jan 31, 20

Re: [PATCH] D24969: [Sema] Use the instantiated name of destructors in FindInstantiatedDecl and RebuildMemberExpr

2017-01-31 Thread Hans Wennborg via cfe-commits
Richard, what do you think? I don't believe this fixes a 3.9 regression, but the fix looks small, so it might be worth it. On Tue, Jan 31, 2017 at 12:07 PM, Akira Hatanaka wrote: > Thanks for the review. r293678. > > Should this be merged to 4.0? > >> On Jan 31, 2017, at 12:04 PM, Akira Hatanaka

Re: r292194 - [AST] AttributedType should derive type properties from the EquivalentType

2017-01-31 Thread Hans Wennborg via cfe-commits
r293702. On Tue, Jan 31, 2017 at 11:12 AM, Richard Smith wrote: > Sure, let's take this for Clang 4. > > On 31 January 2017 at 10:39, Hans Wennborg wrote: >> >> Ping? >> >> On Thu, Jan 26, 2017 at 3:42 PM, Hans Wennborg wrote: >> > Should we merge this to the release branch? >> > >> > On Mon, J

[PATCH] D29350: clang-cl: Evaluate arguments left-to-right in constructor call with initializer list (PR31831)

2017-01-31 Thread Hans Wennborg via Phabricator via cfe-commits
hans created this revision. clang-cl would evaluate the arguments right-to-left (see PR), and for non-Windows targets I suppose we only got it because we were already emitting left-to-right in CodeGenFunction::EmitCallArgs. https://reviews.llvm.org/D29350 Files: lib/CodeGen/CGClass.cpp te

r293692 - Fix modules codegen to be compatible with modules-ts

2017-01-31 Thread David Blaikie via cfe-commits
Author: dblaikie Date: Tue Jan 31 15:28:19 2017 New Revision: 293692 URL: http://llvm.org/viewvc/llvm-project?rev=293692&view=rev Log: Fix modules codegen to be compatible with modules-ts The Module::WithCodegen flag was only being set when the module was parsed from a ModuleMap. Instead set it l

[PATCH] D16135: Macro Debug Info support in Clang

2017-01-31 Thread Richard Smith via Phabricator via cfe-commits
rsmith added inline comments. Comment at: include/clang/CodeGen/ModuleBuilder.h:71 + /// + /// This methods can be called before initializing the CGDebugInfo calss. + /// But the returned value should not be used until after initialization. Typo 'calss'

Re: r290539 - [inline-asm]No error for conflict between inputs\outputs and clobber list

2017-01-31 Thread Dimitry Andric via cfe-commits
On 26 Dec 2016, at 13:23, Marina Yatsina via cfe-commits wrote: > > Author: myatsina > Date: Mon Dec 26 06:23:42 2016 > New Revision: 290539 > > URL: http://llvm.org/viewvc/llvm-project?rev=290539&view=rev > Log: > [inline-asm]No error for conflict between inputs\outputs and clobber list > > A

Re: [PATCH] D24969: [Sema] Use the instantiated name of destructors in FindInstantiatedDecl and RebuildMemberExpr

2017-01-31 Thread Akira Hatanaka via cfe-commits
Thanks for the review. r293678. Should this be merged to 4.0? > On Jan 31, 2017, at 12:04 PM, Akira Hatanaka via Phabricator via cfe-commits > wrote: > > This revision was automatically updated to reflect the committed changes. > Closed by commit rL293678: [Sema] Transform a templated name bef

[PATCH] D24969: [Sema] Use the instantiated name of destructors in FindInstantiatedDecl and RebuildMemberExpr

2017-01-31 Thread Akira Hatanaka via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL293678: [Sema] Transform a templated name before looking it up in (authored by ahatanak). Changed prior to commit: https://reviews.llvm.org/D24969?vs=82134&id=86474#toc Repository: rL LLVM https://r

r293678 - [Sema] Transform a templated name before looking it up in

2017-01-31 Thread Akira Hatanaka via cfe-commits
Author: ahatanak Date: Tue Jan 31 13:53:32 2017 New Revision: 293678 URL: http://llvm.org/viewvc/llvm-project?rev=293678&view=rev Log: [Sema] Transform a templated name before looking it up in FindInstantiatedDecl or passing it to RebuildMemberExpr. This fixes PR30361. rdar://problem/17341274 D

r293677 - Extend -Wcast-calling-convention to warn on declarations as well as definitions

2017-01-31 Thread Reid Kleckner via cfe-commits
Author: rnk Date: Tue Jan 31 13:37:45 2017 New Revision: 293677 URL: http://llvm.org/viewvc/llvm-project?rev=293677&view=rev Log: Extend -Wcast-calling-convention to warn on declarations as well as definitions My original warning was very conservative and I never revisited the heuristics that wer

Re: [libcxxabi] r292638 - Fix catch_reference_nullptr.pass.cpp test for GCC.

2017-01-31 Thread Renato Golin via cfe-commits
On 31 January 2017 at 18:36, Hans Wennborg wrote: >>> Can you attach all commits that need to be backported into a bug >>> against PR31622? >>> >>> We should probably squash them all before merge. >> >> What's the status here? > > Ping? Hum, I think Eric did create the bug, but now I can't rememb

Re: r291963 - [clang] Emit `diagnose_if` warnings from system headers

2017-01-31 Thread George Burgess IV via cfe-commits
> If not, perhaps we should disable the attribute for the Clang 4 release instead FWIW, I'd strongly prefer to do this over letting diagnose_if go into Clang 4 unpatched. So, if my patch does feel too big, I'm happy to let diagnose_if be a new-in-clang-5 attribute. :) On Tue, Jan 31, 2017 at 11:1

r293676 - [windows] [asan] Fix tests failing after 293668.

2017-01-31 Thread Marcos Pividori via cfe-commits
Author: mpividori Date: Tue Jan 31 13:05:05 2017 New Revision: 293676 URL: http://llvm.org/viewvc/llvm-project?rev=293676&view=rev Log: [windows] [asan] Fix tests failing after 293668. Modified: cfe/trunk/test/Driver/cl-link.c Modified: cfe/trunk/test/Driver/cl-link.c URL: http://llvm.org/v

Re: r292194 - [AST] AttributedType should derive type properties from the EquivalentType

2017-01-31 Thread Richard Smith via cfe-commits
Sure, let's take this for Clang 4. On 31 January 2017 at 10:39, Hans Wennborg wrote: > Ping? > > On Thu, Jan 26, 2017 at 3:42 PM, Hans Wennborg wrote: > > Should we merge this to the release branch? > > > > On Mon, Jan 16, 2017 at 8:14 PM, David Majnemer via cfe-commits > > wrote: > >> Author:

Re: r291963 - [clang] Emit `diagnose_if` warnings from system headers

2017-01-31 Thread Richard Smith via cfe-commits
Yes, this makes sense. We should also decide what we're going to do about the larger diagnose_if patch that George has asked to be ported to Clang 4. Are you comfortable taking a patch of that size? If not, perhaps we should disable the attribute for the Clang 4 release instead. On 31 January 2017

r293675 - Keep Chromium ObjC column limit at 80 for consistency with C++

2017-01-31 Thread Nico Weber via cfe-commits
Author: nico Date: Tue Jan 31 12:42:05 2017 New Revision: 293675 URL: http://llvm.org/viewvc/llvm-project?rev=293675&view=rev Log: Keep Chromium ObjC column limit at 80 for consistency with C++ https://reviews.llvm.org/D29337 Patch from Dan Beam ! Modified: cfe/trunk/lib/Format/Format.cpp M

[PATCH] D29339: [OpenMP] Add support for auxiliary triple specification

2017-01-31 Thread Gheorghe-Teodor Bercea via Phabricator via cfe-commits
gtbercea created this revision. Device offloading requires the specification of an additional flag containing the triple of the //other// architecture the code is being compiled on if such an architecture exists. If compiling for the host, the auxiliary triple flag will contain the triple descr

r293668 - [windows] [asan] Add wholearchive flag when including static lib asan.

2017-01-31 Thread Marcos Pividori via cfe-commits
Author: mpividori Date: Tue Jan 31 12:31:38 2017 New Revision: 293668 URL: http://llvm.org/viewvc/llvm-project?rev=293668&view=rev Log: [windows] [asan] Add wholearchive flag when including static lib asan. In Windows, when the sanitizer is implemented as a static library, we use auxiliary static

Re: r292194 - [AST] AttributedType should derive type properties from the EquivalentType

2017-01-31 Thread Hans Wennborg via cfe-commits
Ping? On Thu, Jan 26, 2017 at 3:42 PM, Hans Wennborg wrote: > Should we merge this to the release branch? > > On Mon, Jan 16, 2017 at 8:14 PM, David Majnemer via cfe-commits > wrote: >> Author: majnemer >> Date: Mon Jan 16 22:14:25 2017 >> New Revision: 292194 >> >> URL: http://llvm.org/viewvc/l

Re: [libcxxabi] r292638 - Fix catch_reference_nullptr.pass.cpp test for GCC.

2017-01-31 Thread Hans Wennborg via cfe-commits
On Thu, Jan 26, 2017 at 10:23 AM, Hans Wennborg wrote: > On Fri, Jan 20, 2017 at 1:52 PM, Renato Golin wrote: >> On 20 January 2017 at 19:46, Eric Fiselier wrote: >>> This patch fixes a libc++abi test failure when compiled with GCC 5, 6, or 7. >>> We should merge this into 4.0 to help get `check

Re: r291963 - [clang] Emit `diagnose_if` warnings from system headers

2017-01-31 Thread Hans Wennborg via cfe-commits
Ping? On Thu, Jan 26, 2017 at 10:21 AM, Hans Wennborg wrote: > Ping? > > On Mon, Jan 23, 2017 at 4:27 PM, Hans Wennborg wrote: >> Ping? >> >> On Tue, Jan 17, 2017 at 4:16 PM, Hans Wennborg wrote: >>> Richard, what do you think? >>> >>> On Fri, Jan 13, 2017 at 3:16 PM, Eric Fiselier wrote:

Re: r293416 - [c-index-test] Provide capability for 'c-index-test core' to dump symbol information from a PCH/module file.

2017-01-31 Thread Argyrios Kyrtzidis via cfe-commits
Hi Hans, > On Jan 31, 2017, at 9:08 AM, Hans Wennborg wrote: > > Hi Argyrios, > > Can you provide more background on what this does. Is it fixing an > existing issue or doing something new? On second thought, let’s not get this into the stable branch, this is introducing something new, not fi

[PATCH] D27985: Add demangling support for C++11 thread_local variables

2017-01-31 Thread Dave Bozier via Phabricator via cfe-commits
davidb closed this revision. davidb added a comment. Closed by revision r293638. Repository: rL LLVM https://reviews.llvm.org/D27985 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commit

[PATCH] D16135: Macro Debug Info support in Clang

2017-01-31 Thread Adrian Prantl via Phabricator via cfe-commits
aprantl added inline comments. Comment at: lib/CodeGen/MacroPPCallbacks.cpp:62 +: DebugInfo(DI), PP(PP), FirstInclude(false), FirstIncludeDone(false), + CommandIncludeFiles(0), SkipFiles(2) { + Parents.push_back(nullptr); aprantl wrote: > Comment why Sk

Re: r293596 - Handle ObjCEncodeExpr in extractStringLiteralCharacter.

2017-01-31 Thread Hans Wennborg via cfe-commits
Merged in r293653. Thanks, Hans On Mon, Jan 30, 2017 at 7:16 PM, Akira Hatanaka wrote: > Hans, can this be merged to 4.0? This fixes a regression from 3.9 (the part I > touched was committed a few years ago, but didn’t cause an assert until > recently). > >> On Jan 30, 2017, at 6:31 PM, Akira

[PATCH] D28001: [X86] Teach Clang about -mfentry flag

2017-01-31 Thread Nirav Dave via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL293649: [X86] Teach Clang about -mfentry flag (authored by niravd). Changed prior to commit: https://reviews.llvm.org/D28001?vs=83850&id=86442#toc Repository: rL LLVM https://reviews.llvm.org/D28001

r293649 - [X86] Teach Clang about -mfentry flag

2017-01-31 Thread Nirav Dave via cfe-commits
Author: niravd Date: Tue Jan 31 11:00:35 2017 New Revision: 293649 URL: http://llvm.org/viewvc/llvm-project?rev=293649&view=rev Log: [X86] Teach Clang about -mfentry flag Replace mcount calls with calls to fentry. Reviewers: hfinkel, craig.topper Subscribers: llvm-commits Differential Revision

Re: r293416 - [c-index-test] Provide capability for 'c-index-test core' to dump symbol information from a PCH/module file.

2017-01-31 Thread Hans Wennborg via cfe-commits
Hi Argyrios, Can you provide more background on what this does. Is it fixing an existing issue or doing something new? r293461 is making changes beyond Index/ so I'd like Richard to take a look too. Thanks, Hans On Mon, Jan 30, 2017 at 8:18 AM, Argyrios Kyrtzidis wrote: > Hi Hans, > > Could th

Re: [libcxx] r293581 - Revert "Adorn __call_once_proxy with `inline` and `_LIBCPP_INLINE_VISIBILITY`"

2017-01-31 Thread Hans Wennborg via cfe-commits
Merged to 4.0 as discussed on PR31782. On Mon, Jan 30, 2017 at 5:26 PM, Justin Bogner via cfe-commits wrote: > Author: bogner > Date: Mon Jan 30 19:26:09 2017 > New Revision: 293581 > > URL: http://llvm.org/viewvc/llvm-project?rev=293581&view=rev > Log: > Revert "Adorn __call_once_proxy with `inl

[libcxx] r293645 - Merging r293581:

2017-01-31 Thread Hans Wennborg via cfe-commits
Author: hans Date: Tue Jan 31 10:40:22 2017 New Revision: 293645 URL: http://llvm.org/viewvc/llvm-project?rev=293645&view=rev Log: Merging r293581: r293581 | bogner | 2017-01-30 17:26:09 -0800 (Mon, 30 Jan 2017) | 12 lines R

r293641 - [clang-format] Fix regression about adding leading whitespace to the content of line comments

2017-01-31 Thread Krasimir Georgiev via cfe-commits
Author: krasimir Date: Tue Jan 31 09:40:15 2017 New Revision: 293641 URL: http://llvm.org/viewvc/llvm-project?rev=293641&view=rev Log: [clang-format] Fix regression about adding leading whitespace to the content of line comments Summary: The reflower didn't measure precisely the line column of a

[PATCH] D29329: [clang-format] Fix regression about adding leading whitespace to the content of line comments

2017-01-31 Thread Krasimir Georgiev via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL293641: [clang-format] Fix regression about adding leading whitespace to the content of… (authored by krasimir). Changed prior to commit: https://reviews.llvm.org/D29329?vs=86435&id=86437#toc Repositor

[PATCH] D29329: [clang-format] Fix regression about adding leading whitespace to the content of line comments

2017-01-31 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/D29329 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listi

[PATCH] D28771: [Analyzer] Various fixes for the IteratorPastEnd checker

2017-01-31 Thread Balogh , Ádám via Phabricator via cfe-commits
baloghadamsoftware added inline comments. Comment at: lib/StaticAnalyzer/Checkers/IteratorPastEndChecker.cpp:530 + auto value = RVal; + if (auto loc = value.getAs()) { +value = State->getRawSVal(*loc); NoQ wrote: > Is there a test case for this hack? > > I

[libcxxabi] r293638 - Add support for demangling C++11 thread_local variables. In clang, the grammar for mangling for these names are " ::= TW " for wrapper variables or "

2017-01-31 Thread David Bozier via cfe-commits
Author: davidb Date: Tue Jan 31 09:18:56 2017 New Revision: 293638 URL: http://llvm.org/viewvc/llvm-project?rev=293638&view=rev Log: Add support for demangling C++11 thread_local variables. In clang, the grammar for mangling for these names are " ::= TW " for wrapper variables or " ::= TH " for

[PATCH] D28771: [Analyzer] Various fixes for the IteratorPastEnd checker

2017-01-31 Thread Balogh , Ádám via Phabricator via cfe-commits
baloghadamsoftware updated this revision to Diff 86428. baloghadamsoftware added a comment. Updates based on the comments. https://reviews.llvm.org/D28771 Files: lib/StaticAnalyzer/Checkers/IteratorPastEndChecker.cpp test/Analysis/Inputs/system-header-simulator-cxx.h test/Analysis/diagnos

r293636 - clang-format: [JS] Indent expressions in ${} relative to their surrounding

2017-01-31 Thread Daniel Jasper via cfe-commits
Author: djasper Date: Tue Jan 31 08:39:33 2017 New Revision: 293636 URL: http://llvm.org/viewvc/llvm-project?rev=293636&view=rev Log: clang-format: [JS] Indent expressions in ${} relative to their surrounding This only affects expressions inside ${} scopes of template strings. Here, we want to in

[PATCH] D29326: [clang-format] Fix reflow in block comment lines with leading whitespace.

2017-01-31 Thread Krasimir Georgiev via Phabricator via cfe-commits
krasimir added a comment. @djasper: I agree with the two spaces rule. Sounds pretty reasonable. Will add this feature eventually. Repository: rL LLVM https://reviews.llvm.org/D29326 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://

r293633 - [clang-format] Fix reflow in block comment lines with leading whitespace.

2017-01-31 Thread Krasimir Georgiev via cfe-commits
Author: krasimir Date: Tue Jan 31 08:31:44 2017 New Revision: 293633 URL: http://llvm.org/viewvc/llvm-project?rev=293633&view=rev Log: [clang-format] Fix reflow in block comment lines with leading whitespace. Summary: The reflower was not taking into account the additional leading whitespace in

[PATCH] D29326: [clang-format] Fix reflow in block comment lines with leading whitespace.

2017-01-31 Thread Krasimir Georgiev via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL293633: [clang-format] Fix reflow in block comment lines with leading whitespace. (authored by krasimir). Changed prior to commit: https://reviews.llvm.org/D29326?vs=86419&id=86422#toc Repository: rL

[PATCH] D29326: [clang-format] Fix reflow in block comment lines with leading whitespace.

2017-01-31 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. I don't know. I could also make an argument that more than one space at the beginning of a line should just stop the reflow. E.g. I could see people writing paragraphs like this: /* *

[PATCH] D29304: [cmake] Hint find_package() to prefer LLVM installed alongside clang

2017-01-31 Thread Michał Górny via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL293632: [cmake] Hint find_package() to prefer LLVM installed alongside clang (authored by mgorny). Changed prior to commit: https://reviews.llvm.org/D29304?vs=86339&id=86421#toc Repository: rL LLVM

r293632 - [cmake] Hint find_package() to prefer LLVM installed alongside clang

2017-01-31 Thread Michal Gorny via cfe-commits
Author: mgorny Date: Tue Jan 31 08:15:40 2017 New Revision: 293632 URL: http://llvm.org/viewvc/llvm-project?rev=293632&view=rev Log: [cmake] Hint find_package() to prefer LLVM installed alongside clang Include a path hint for find_package() in ClangConfig.cmake to ensure that CMake prefers LLVM i

[clang-format] add option -fallback-style=fail (fail if -style=file falls back)

2017-01-31 Thread Paul Seyfert via cfe-commits
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Hi, (resend to cfe-commits instead of cfe-dev) please see my feature proposal for an option -fallback-style=fail below. Thanks in advance for feedback, Paul - Forwarded Message Subject: [cfe-dev] [clang-format] add option -fallba

Re: Add warning for c++ member variable shadowing

2017-01-31 Thread James Sun via cfe-commits
Hi Saleem Thanks for the quick response. A test case is added. It covers some ordinary cases as well as corner cases like multiple paths to the same base. Thanks James From: Saleem Abdulrasool Date: Monday, January 30, 2017 at 6:50 PM To: James Sun Cc: Richard Smith , "cfe-commits@lists.llvm

r293609 - [lsan] Enable LSan for x86 Linux

2017-01-31 Thread Maxim Ostapenko via cfe-commits
Author: chefmax Date: Tue Jan 31 01:00:23 2017 New Revision: 293609 URL: http://llvm.org/viewvc/llvm-project?rev=293609&view=rev Log: [lsan] Enable LSan for x86 Linux This is a missed part of https://reviews.llvm.org/D28609. Enable LSan for x86 Linux in clang driver. Differential Revision: https

[PATCH] D29322: [clang-format] Fix regression merging comments across newlines.

2017-01-31 Thread Krasimir Georgiev via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL293624: [clang-format] Fix regression merging comments across newlines. (authored by krasimir). Changed prior to commit: https://reviews.llvm.org/D29322?vs=86412&id=86413#toc Repository: rL LLVM htt

r293624 - [clang-format] Fix regression merging comments across newlines.

2017-01-31 Thread Krasimir Georgiev via cfe-commits
Author: krasimir Date: Tue Jan 31 07:32:38 2017 New Revision: 293624 URL: http://llvm.org/viewvc/llvm-project?rev=293624&view=rev Log: [clang-format] Fix regression merging comments across newlines. Summary: This fixes a regression that causes example: ``` enum A { a, // line a // line b b

[PATCH] D29322: [clang-format] Fix regression merging comments across newlines.

2017-01-31 Thread Krasimir Georgiev via Phabricator via cfe-commits
krasimir added inline comments. Comment at: lib/Format/UnwrappedLineParser.cpp:2127-2129 +// Additional fine-grained breaking of line comment sections is controlled +// by the class BreakableLineCommentSection in case it is desirable to keep +// several line comment s

[PATCH] D29322: [clang-format] Fix regression merging comments across newlines.

2017-01-31 Thread Krasimir Georgiev via Phabricator via cfe-commits
krasimir updated this revision to Diff 86412. krasimir marked an inline comment as done. krasimir added a comment. - Add a FIXME also in the parser https://reviews.llvm.org/D29322 Files: lib/Format/BreakableToken.cpp lib/Format/UnwrappedLineParser.cpp unittests/Format/FormatTest.cpp Ind

[PATCH] D29027: [Stack Protection] Add remark for reasons why Stack Protection has been applied

2017-01-31 Thread James Henderson via Phabricator via cfe-commits
jhenderson added a comment. Ping https://reviews.llvm.org/D29027 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[libcxx] r293623 - Fix up some no-exception compile failures

2017-01-31 Thread Marshall Clow via cfe-commits
Author: marshall Date: Tue Jan 31 07:12:32 2017 New Revision: 293623 URL: http://llvm.org/viewvc/llvm-project?rev=293623&view=rev Log: Fix up some no-exception compile failures Modified: libcxx/trunk/test/std/strings/basic.string/string.cons/copy_alloc.pass.cpp Modified: libcxx/trunk/test/s

r293622 - clang-format: [JS] Properly set scopes inside template strings.

2017-01-31 Thread Daniel Jasper via cfe-commits
Author: djasper Date: Tue Jan 31 07:03:07 2017 New Revision: 293622 URL: http://llvm.org/viewvc/llvm-project?rev=293622&view=rev Log: clang-format: [JS] Properly set scopes inside template strings. Before: var f = `a:${aaa .a} a:

[PATCH] D29322: [clang-format] Fix regression merging comments across newlines.

2017-01-31 Thread Manuel Klimek via Phabricator via cfe-commits
klimek accepted this revision. klimek added a comment. This revision is now accepted and ready to land. lg minus adding the FIXME to the place where we need the change. Comment at: lib/Format/UnwrappedLineParser.cpp:2127-2129 +// Additional fine-grained breaking of line com

[PATCH] D29322: [clang-format] Fix regression merging comments across newlines.

2017-01-31 Thread Krasimir Georgiev via Phabricator via cfe-commits
krasimir marked an inline comment as done. krasimir added inline comments. Comment at: lib/Format/BreakableToken.cpp:685 LineTok = CurrentTok->Next; +if (CurrentTok->Next && CurrentTok->Next->NewlinesBefore > 1) { + // A line comment section needs to broken by a lin

[PATCH] D29322: [clang-format] Fix regression merging comments across newlines.

2017-01-31 Thread Krasimir Georgiev via Phabricator via cfe-commits
krasimir updated this revision to Diff 86410. krasimir added a comment. - Add a FIXME for separating line comment sections into child lines https://reviews.llvm.org/D29322 Files: lib/Format/BreakableToken.cpp lib/Format/UnwrappedLineParser.cpp unittests/Format/FormatTest.cpp Index: unit

[libcxx] r293619 - Workaround new -Wshadow warning introduced by r293599

2017-01-31 Thread Alex Lorenz via cfe-commits
Author: arphaman Date: Tue Jan 31 06:37:48 2017 New Revision: 293619 URL: http://llvm.org/viewvc/llvm-project?rev=293619&view=rev Log: Workaround new -Wshadow warning introduced by r293599 Modified: libcxx/trunk/test/std/strings/basic.string/string.cons/copy_alloc.pass.cpp Modified: libcxx/

[PATCH] D29300: [clang-format] Refactor WhitespaceManager and friends

2017-01-31 Thread Daniel Jasper via Phabricator via cfe-commits
djasper marked an inline comment as done. djasper added inline comments. Comment at: lib/Format/WhitespaceManager.cpp:178 - LastBlockComment = &Change; -} else if (Change.Kind == tok::unknown) { - if ((Change.StartOfBlockComment = LastBlockComment))

[PATCH] D29300: [clang-format] Refactor WhitespaceManager and friends

2017-01-31 Thread Krasimir Georgiev via Phabricator via cfe-commits
krasimir added a comment. looks good! https://reviews.llvm.org/D29300 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[PATCH] D29300: [clang-format] Refactor WhitespaceManager and friends

2017-01-31 Thread Krasimir Georgiev via Phabricator via cfe-commits
krasimir added inline comments. Comment at: lib/Format/WhitespaceManager.cpp:178 - LastBlockComment = &Change; -} else if (Change.Kind == tok::unknown) { - if ((Change.StartOfBlockComment = LastBlockComment)) What happened to the tok::unknown case?

r293618 - clang-format: [JS] Fix incorrect line break in template strings.

2017-01-31 Thread Daniel Jasper via cfe-commits
Author: djasper Date: Tue Jan 31 06:07:35 2017 New Revision: 293618 URL: http://llvm.org/viewvc/llvm-project?rev=293618&view=rev Log: clang-format: [JS] Fix incorrect line break in template strings. Before: var f = ` ${a ? 'a' : 'b' }`; After: var f = ` ${

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

2017-01-31 Thread Daniel Jasper via Phabricator via cfe-commits
djasper added a comment. I apologize in advance if this causes merge conflicts with r293616. However, I do hope that that actually makes this patch easier. https://reviews.llvm.org/D21279 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http

[PATCH] D27651: [clang-format] Even with AlignConsecutiveDeclarations, PointerAlignment: Right should keep *s and &s to the right

2017-01-31 Thread Daniel Jasper via Phabricator via cfe-commits
djasper added a comment. I have given stuff in WhitespaceManager access to the actual FormatToken in r293616. Hopefully that simplifies this patch. https://reviews.llvm.org/D27651 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists

r293617 - [clang-format] Don't reflow comment lines starting with '@'.

2017-01-31 Thread Krasimir Georgiev via cfe-commits
Author: krasimir Date: Tue Jan 31 05:38:02 2017 New Revision: 293617 URL: http://llvm.org/viewvc/llvm-project?rev=293617&view=rev Log: [clang-format] Don't reflow comment lines starting with '@'. Summary: This patch stops reflowing comment lines starting with '@', since they commonly have a speci

[PATCH] D29323: [clang-format] Don't reflow comment lines starting with '@'.

2017-01-31 Thread Krasimir Georgiev via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL293617: [clang-format] Don't reflow comment lines starting with '@'. (authored by krasimir). Changed prior to commit: https://reviews.llvm.org/D29323?vs=86405&id=86406#toc Repository: rL LLVM https:

[PATCH] D29323: [clang-format] Don't reflow comment lines starting with '@'.

2017-01-31 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/D29323 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listi

[PATCH] D28462: clang-format: Add new style option AlignConsecutiveMacros

2017-01-31 Thread Daniel Jasper via Phabricator via cfe-commits
djasper added a comment. Sorry, it took a bit longer, but I have now submitted those changes in r293616. Repository: rL LLVM https://reviews.llvm.org/D28462 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mai

[PATCH] D29300: [clang-format] Refactor WhitespaceManager and friends

2017-01-31 Thread Daniel Jasper via Phabricator via cfe-commits
djasper closed this revision. djasper added a comment. Submitted as r293616. https://reviews.llvm.org/D29300 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

r293616 - [clang-format] Refactor WhitespaceManager and friends

2017-01-31 Thread Daniel Jasper via cfe-commits
Author: djasper Date: Tue Jan 31 05:25:01 2017 New Revision: 293616 URL: http://llvm.org/viewvc/llvm-project?rev=293616&view=rev Log: [clang-format] Refactor WhitespaceManager and friends The main motivation behind this is to cleanup the WhitespaceManager and make it more extensible for future al

[PATCH] D29300: [clang-format] Refactor WhitespaceManager and friends

2017-01-31 Thread Daniel Jasper via Phabricator via cfe-commits
djasper updated this revision to Diff 86404. djasper added a comment. Added assert. Removed unused InToken. https://reviews.llvm.org/D29300 Files: lib/Format/BreakableToken.cpp lib/Format/BreakableToken.h lib/Format/ContinuationIndenter.cpp lib/Format/ContinuationIndenter.h lib/Format

[PATCH] D29300: [clang-format] Refactor WhitespaceManager and friends

2017-01-31 Thread Manuel Klimek via Phabricator via cfe-commits
klimek accepted this revision. klimek added a comment. This revision is now accepted and ready to land. lg https://reviews.llvm.org/D29300 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-com

[PATCH] D29322: [clang-format] Fix regression merging comments across newlines.

2017-01-31 Thread Krasimir Georgiev via Phabricator via cfe-commits
krasimir added inline comments. Comment at: lib/Format/BreakableToken.cpp:685 LineTok = CurrentTok->Next; +if (CurrentTok->Next && CurrentTok->Next->NewlinesBefore > 1) { + // A line comment section needs to broken by a line comment that is klimek w

[PATCH] D29322: [clang-format] Fix regression merging comments across newlines.

2017-01-31 Thread Manuel Klimek via Phabricator via cfe-commits
klimek added inline comments. Comment at: lib/Format/BreakableToken.cpp:685 LineTok = CurrentTok->Next; +if (CurrentTok->Next && CurrentTok->Next->NewlinesBefore > 1) { + // A line comment section needs to broken by a line comment that is Could we p

[PATCH] D26244: [Driver] Add CLANG_PREFER_GCC_LIBRARIES which can be disabled

2017-01-31 Thread Jonas Hahnfeld via Phabricator via cfe-commits
Hahnfeld updated this revision to Diff 86396. Hahnfeld retitled this revision from "[Driver] Prefer libraries installed next to Clang over those from GCC" to "[Driver] Add CLANG_PREFER_GCC_LIBRARIES which can be disabled". Hahnfeld edited the summary of this revision. Hahnfeld added a reviewer: h

[PATCH] D29300: [clang-format] Refactor WhitespaceManager and friends

2017-01-31 Thread Daniel Jasper via Phabricator via cfe-commits
djasper marked an inline comment as done. djasper added inline comments. Comment at: lib/Format/UnwrappedLineFormatter.cpp:904-907 +void UnwrappedLineFormatter::formatFirstToken(const AnnotatedLine &Line, const AnnotatedLine *Previo

[PATCH] D29300: [clang-format] Refactor WhitespaceManager and friends

2017-01-31 Thread Manuel Klimek via Phabricator via cfe-commits
klimek added a comment. Generally looks like the right direction, minus that I'm not sure yet what the plan for things broken in BreakableToken are. Comment at: lib/Format/TokenAnnotator.cpp:1843 +Current->MatchingParen->opensBlockOrBlockTypeList(Style)) + --Inden

r293611 - Revert r293585 "Add better ODR checking for modules."

2017-01-31 Thread Sam McCall via cfe-commits
Author: sammccall Date: Tue Jan 31 02:24:40 2017 New Revision: 293611 URL: http://llvm.org/viewvc/llvm-project?rev=293611&view=rev Log: Revert r293585 "Add better ODR checking for modules." We're seeing what we believe are false positives. (It's hard to tell with the available diagnostics, and I'