r289228 - Don't assert when redefining a built-in macro in a PCH, PR29119

2016-12-09 Thread Nico Weber via cfe-commits
Author: nico Date: Fri Dec 9 11:32:52 2016 New Revision: 289228 URL: http://llvm.org/viewvc/llvm-project?rev=289228&view=rev Log: Don't assert when redefining a built-in macro in a PCH, PR29119 PCH files store the macro history for a given macro, and the whole history list for one identifier is

Re: r289259 - Improve error message when referencing a non-tag type with a tag

2016-12-09 Thread Nico Weber via cfe-commits
I never heard "class specifier" outside of compilerese either… On Fri, Dec 9, 2016 at 2:47 PM, Reid Kleckner via cfe-commits < cfe-commits@lists.llvm.org> wrote: > Author: rnk > Date: Fri Dec 9 13:47:58 2016 > New Revision: 289259 > > URL: http://llvm.org/viewvc/llvm-project?rev=289259&view=rev

Re: r289308 - [clang-format] Another attempt at python 3 compatibility

2016-12-10 Thread Nico Weber via cfe-commits
Shouldn't this at least use >=? (But it feels like there is probably a way that doesn't have to do UA sniffing, so to speak) On Dec 9, 2016 8:04 PM, "Vedant Kumar via cfe-commits" < cfe-commits@lists.llvm.org> wrote: > Author: vedantk > Date: Fri Dec 9 18:54:13 2016 > New Revision: 289308 > > UR

r301032 - [ms] Give -Wmicrosoft-enum-forward-reference a chance to fire in clang-cl, PR32736

2017-04-21 Thread Nico Weber via cfe-commits
Author: nico Date: Fri Apr 21 15:12:26 2017 New Revision: 301032 URL: http://llvm.org/viewvc/llvm-project?rev=301032&view=rev Log: [ms] Give -Wmicrosoft-enum-forward-reference a chance to fire in clang-cl, PR32736 clang-cl sets MicrosoftCompat. In that mode, we always give enums a fixed underlyi

r301039 - Add comments to the diagnostic kinds in Diagnostic.td.

2017-04-21 Thread Nico Weber via cfe-commits
Author: nico Date: Fri Apr 21 15:55:00 2017 New Revision: 301039 URL: http://llvm.org/viewvc/llvm-project?rev=301039&view=rev Log: Add comments to the diagnostic kinds in Diagnostic.td. https://reviews.llvm.org/D32371 Modified: cfe/trunk/include/clang/Basic/Diagnostic.td Modified: cfe/trunk

Re: r261774 - Bail on compilation as soon as a job fails.

2017-04-22 Thread Nico Weber via cfe-commits
On Sat, Apr 22, 2017 at 8:40 PM, Duncan P. N. Exon Smith via cfe-commits < cfe-commits@lists.llvm.org> wrote: > [Some necromancy here...] > > This commit effectively reverted r173361 and r173825, breaking UNIX > conformance for our c99 wrapper. > > See: > http://pubs.opengroup.org/onlinepubs/96999

Re: [PATCH] D32435: clang-cl: Add support for /permissive-

2017-04-24 Thread Nico Weber via cfe-commits
It does sound pretty similar to me from the blog post. I think this is a decent place to start from. On Apr 24, 2017 11:55 AM, "David Majnemer via Phabricator via cfe-commits" < cfe-commits@lists.llvm.org> wrote: > majnemer requested changes to this revision. > majnemer added a comment. > This re

Re: [PATCH] D32435: clang-cl: Add support for /permissive-

2017-04-24 Thread Nico Weber via cfe-commits
"Opting into the conforming mode, /permissive-, during the series of VS 2017 update is a commitment to keeping your code base clean and to fixing non-conforming constructs we fix conformance issues in Visual C++." [...] "By contrast /permissive- offers a useful conformance mode where input C++ code

Re: [PATCH] D32435: clang-cl: Add support for /permissive-

2017-04-24 Thread Nico Weber via cfe-commits
majnemer: opinion on the above? On Apr 24, 2017 2:56 PM, "Nico Weber" wrote: > "Opting into the conforming mode, /permissive-, during the series of VS > 2017 update is a commitment to keeping your code base clean and to fixing > non-conforming constructs we fix conformance issues in Visual C++."

Re: [PATCH] D32435: clang-cl: Add support for /permissive-

2017-04-25 Thread Nico Weber via cfe-commits
On Mon, Apr 24, 2017 at 10:00 PM, David Majnemer wrote: > > > On Mon, Apr 24, 2017 at 11:56 AM, Nico Weber wrote: > >> "Opting into the conforming mode, /permissive-, during the series of VS >> 2017 update is a commitment to keeping your code base clean and to fixing >> non-conforming constructs

Re: [PATCH] D32435: clang-cl: Add support for /permissive-

2017-04-25 Thread Nico Weber via cfe-commits
On Tue, Apr 25, 2017 at 2:06 PM, David Majnemer wrote: > > > On Tue, Apr 25, 2017 at 8:46 AM, Nico Weber wrote: > >> On Mon, Apr 24, 2017 at 10:00 PM, David Majnemer < >> david.majne...@gmail.com> wrote: >> >>> >>> >>> On Mon, Apr 24, 2017 at 11:56 AM, Nico Weber >>> wrote: >>> "Opting int

Re: [PATCH] D32435: clang-cl: Add support for /permissive-

2017-04-25 Thread Nico Weber via cfe-commits
On Tue, Apr 25, 2017 at 4:14 PM, David Majnemer wrote: > > > On Tue, Apr 25, 2017 at 11:42 AM, Nico Weber wrote: > >> On Tue, Apr 25, 2017 at 2:06 PM, David Majnemer > > wrote: >> >>> >>> >>> On Tue, Apr 25, 2017 at 8:46 AM, Nico Weber wrote: >>> On Mon, Apr 24, 2017 at 10:00 PM, David Maj

Re: [PATCH] D32435: clang-cl: Add support for /permissive-

2017-04-25 Thread Nico Weber via cfe-commits
On Tue, Apr 25, 2017 at 5:28 PM, David Majnemer wrote: > > > On Tue, Apr 25, 2017 at 2:12 PM, Nico Weber wrote: > >> On Tue, Apr 25, 2017 at 4:14 PM, David Majnemer > > wrote: >> >>> >>> >>> On Tue, Apr 25, 2017 at 11:42 AM, Nico Weber >>> wrote: >>> On Tue, Apr 25, 2017 at 2:06 PM, David

Re: [PATCH] D32514: [asan] Unconditionally enable GC of globals on COFF

2017-04-25 Thread Nico Weber via cfe-commits
See https://bugs.chromium.org/p/chromium/issues/detail?id=715315 Looks good, please land to get the tree back green while we investigate. On Apr 25, 2017 8:51 PM, "Evgeniy Stepanov via Phabricator via cfe-commits" wrote: > eugenis added a comment. > > Apparently the ODR detector in Asan on Wind

r302187 - Turn -Wmicrosoft-enum-value off by default.

2017-05-04 Thread Nico Weber via cfe-commits
Author: nico Date: Thu May 4 14:36:26 2017 New Revision: 302187 URL: http://llvm.org/viewvc/llvm-project?rev=302187&view=rev Log: Turn -Wmicrosoft-enum-value off by default. The warning is currently way too noisy to be useful. The plan is to make it warn when an MS enum that's negative is compar

r302190 - Turn on -Wmicrosoft-enum-forward-reference by default.

2017-05-04 Thread Nico Weber via cfe-commits
Author: nico Date: Thu May 4 14:54:50 2017 New Revision: 302190 URL: http://llvm.org/viewvc/llvm-project?rev=302190&view=rev Log: Turn on -Wmicrosoft-enum-forward-reference by default. clang-cl already errs or warns on everything that cl warns on in /permissive- mode, except for enum foward decl

r302247 - Introduce Wzero-as-null-pointer-constant.

2017-05-05 Thread Nico Weber via cfe-commits
Author: nico Date: Fri May 5 11:11:08 2017 New Revision: 302247 URL: http://llvm.org/viewvc/llvm-project?rev=302247&view=rev Log: Introduce Wzero-as-null-pointer-constant. Add an opt-in warning that fires when 0 is used as a null pointer. gcc has this warning, and there's some demand for it. h

r302255 - Warn that the [] spelling of uuid(...) is deprecated.

2017-05-05 Thread Nico Weber via cfe-commits
Author: nico Date: Fri May 5 12:05:56 2017 New Revision: 302255 URL: http://llvm.org/viewvc/llvm-project?rev=302255&view=rev Log: Warn that the [] spelling of uuid(...) is deprecated. https://reviews.llvm.org/D32879 Modified: cfe/trunk/include/clang/Basic/DiagnosticSemaKinds.td cfe/trun

Re: r302255 - Warn that the [] spelling of uuid(...) is deprecated.

2017-05-05 Thread Nico Weber via cfe-commits
Timestamps on cfe-commits are a bit messed up. I landed that just now, but the timestamp is from 13 minutes in the past. Maybe the clock on the mail server is off by 13 min? On Fri, May 5, 2017 at 1:05 PM, Nico Weber via cfe-commits < cfe-commits@lists.llvm.org> wrote: > Author: nico &g

r302258 - ANSIfy. No behavior change.

2017-05-05 Thread Nico Weber via cfe-commits
Author: nico Date: Fri May 5 12:15:08 2017 New Revision: 302258 URL: http://llvm.org/viewvc/llvm-project?rev=302258&view=rev Log: ANSIfy. No behavior change. Modified: cfe/trunk/lib/CodeGen/CGBuiltin.cpp cfe/trunk/lib/Sema/SemaDeclAttr.cpp cfe/trunk/lib/Sema/SemaStmt.cpp Modified: c

Re: r302255 - Warn that the [] spelling of uuid(...) is deprecated.

2017-05-05 Thread Nico Weber via cfe-commits
On Fri, May 5, 2017 at 1:21 PM, Aaron Ballman via cfe-commits < cfe-commits@lists.llvm.org> wrote: > On Fri, May 5, 2017 at 1:05 PM, Nico Weber via cfe-commits > wrote: > > Author: nico > > Date: Fri May 5 12:05:56 2017 > > New Revision: 302255 > > > >

r302259 - ANSIfy more. Still no behavior change.

2017-05-05 Thread Nico Weber via cfe-commits
Author: nico Date: Fri May 5 12:16:58 2017 New Revision: 302259 URL: http://llvm.org/viewvc/llvm-project?rev=302259&view=rev Log: ANSIfy more. Still no behavior change. Modified: cfe/trunk/lib/CodeGen/CGBuiltin.cpp Modified: cfe/trunk/lib/CodeGen/CGBuiltin.cpp URL: http://llvm.org/viewvc/l

Re: r302259 - ANSIfy more. Still no behavior change.

2017-05-05 Thread Nico Weber via cfe-commits
I had run `ack "[\x80-\xFF]" lib` to find these, and didn't expect that it can fire more than once on a given line. (We had 4 instance in all of clang, 2 in this line.) On Fri, May 5, 2017 at 1:16 PM, Nico Weber via cfe-commits < cfe-commits@lists.llvm.org> wrote: > Auth

Re: r302835 - Issue diagnostics when returning FP values on x86_64 without SSE1/2

2017-05-11 Thread Nico Weber via cfe-commits
The inline snippet doesn't show the actual code change, but http://llvm.org/viewvc/llvm-project?view=revision&revision=302835 does show it. Is the email sender broken? On Thu, May 11, 2017 at 6:43 PM, Reid Kleckner via cfe-commits < cfe-commits@lists.llvm.org> wrote: > Author: rnk > Date: Thu May

Re: r261774 - Bail on compilation as soon as a job fails.

2017-05-15 Thread Nico Weber via cfe-commits
Now that r262420 is landed. Is there any plan to move CUDA to the new > approach so we can fix the UNIX conformance test? > > Thanks > > Steven > > On Apr 22, 2017, at 8:08 PM, Nico Weber via cfe-commits < > cfe-commits@lists.llvm.org> wrote: > > On Sat, Apr 22, 2

Re: r261774 - Bail on compilation as soon as a job fails.

2017-05-15 Thread Nico Weber via cfe-commits
could be used for CUDA. Justin should reply here. > > On Mon, May 15, 2017 at 1:32 PM, Steven Wu wrote: > >> Hi Nico >> >> Now that r262420 is landed. Is there any plan to move CUDA to the new >> approach so we can fix the UNIX conformance test? >> >> Th

Re: [libcxx] r284214 - XFAIL aligned allocation tests for older Clang versions

2016-10-17 Thread Nico Weber via cfe-commits
Looks like things are still unexpectedly passing at r284389 on macOS (but we currently only build and test libc++ on macOS, so maybe it's broken elsewhere too). https://codereview.chromium.org/2429533002/ https://build.chromium.org/p/tryserver.chromium.mac/builders/mac_upload_clang/builds/106/step

Re: Fwd: r198063 - Warn on mismatched parentheses in memcmp and friends.

2016-10-18 Thread Nico Weber via cfe-commits
Did you find real-world code triggering this, or did you happen to see the implementation of the warning? I'm not sure if omitting just the note or the whole warning is more useful in practice. Intuitively I'd say that people "never" will compare the result of memcpy, so I'd guess that it doesn't m

[PATCH] D23003: [ObjC Availability] Warn upon unguarded use of partially available declaration

2016-10-26 Thread Nico Weber via cfe-commits
thakis added a comment. Erik, are you planning on adding the later phases soon? At the moment, due to this patch, clang emits "enclose 'setAllowsAutomaticWindowTabbing:' in an @available check to silence this warning" but then errors out when trying to use @available. This is proving to be conf

Re: [PATCH] D23003: [ObjC Availability] Warn upon unguarded use of partially available declaration

2016-10-26 Thread Nico Weber via cfe-commits
If you're working on it, let's just wait for that :-) On Wed, Oct 26, 2016 at 12:01 PM, Erik Pilkington wrote: > Hi Nico, > All that is left for the diagnostic to make sense it CodeGen support for > @available, which is something I’m working on now. I should have a patch up > for it in a couple

[PATCH] D26035: Expand -Wlogical-not-parentheses to also fire on `!x & A`.

2016-10-27 Thread Nico Weber via cfe-commits
thakis created this revision. thakis added a reviewer: hans. thakis added a subscriber: cfe-commits. This is a misspelling of the intended `!(x & A)` negated bit test that happens in practice every now and then. I ran this on Chromium and all its dependencies, and it fired 0 times -- no false o

[PATCH] D26035: Expand -Wlogical-not-parentheses to also fire on `!x & A`.

2016-10-27 Thread Nico Weber via cfe-commits
thakis added a comment. Thanks! Landing… Comment at: test/SemaCXX/warn-logical-not-compare.cpp:224 + // These already err, don't also warn. + !x &= 1; // expected-error{{expression is not assignable}} + !x |= 1; // expected-error{{expression is not assignable}} -

r285310 - Expand -Wlogical-not-parentheses to also fire on `!x & A`.

2016-10-27 Thread Nico Weber via cfe-commits
Author: nico Date: Thu Oct 27 11:32:06 2016 New Revision: 285310 URL: http://llvm.org/viewvc/llvm-project?rev=285310&view=rev Log: Expand -Wlogical-not-parentheses to also fire on `!x & A`. This is a misspelling of the intended !(x & A) negated bit test that happens in practice every now and then

[PATCH] D26035: Expand -Wlogical-not-parentheses to also fire on `!x & A`.

2016-10-27 Thread Nico Weber via cfe-commits
thakis closed this revision. thakis added a comment. 285310 https://reviews.llvm.org/D26035 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[PATCH] D26335: [ms] Reinstate https://reviews.llvm.org/D14748 after https://reviews.llvm.org/D20291

2016-11-06 Thread Nico Weber via cfe-commits
thakis created this revision. thakis added a reviewer: hans. thakis added a subscriber: cfe-commits. https://reviews.llvm.org/D26335 Files: lib/Headers/x86intrin.h test/Headers/tzcnt.c Index: test/Headers/tzcnt.c === --- test/H

Re: r272668 - clang-format: [JS] Fix failing format with TypeScript casts.

2016-11-09 Thread Nico Weber via cfe-commits
This apparently caused https://llvm.org/bugs/show_bug.cgi?id=30527 On Tue, Jun 14, 2016 at 9:54 AM, Daniel Jasper via cfe-commits < cfe-commits@lists.llvm.org> wrote: > Author: djasper > Date: Tue Jun 14 08:54:38 2016 > New Revision: 272668 > > URL: http://llvm.org/viewvc/llvm-project?rev=272668&

Re: r272668 - clang-format: [JS] Fix failing format with TypeScript casts.

2016-11-09 Thread Nico Weber via cfe-commits
Oh, looks like someone already sent a fix: https://reviews.llvm.org/D26163 On Wed, Nov 9, 2016 at 4:41 PM, Nico Weber wrote: > This apparently caused https://llvm.org/bugs/show_bug.cgi?id=30527 > > On Tue, Jun 14, 2016 at 9:54 AM, Daniel Jasper via cfe-commits < > cfe-commits@lists.llvm.org> wro

[PATCH] D26163: [clang-format] Fix PR30527: Regression when clang-format insert spaces in [] when in template

2016-11-10 Thread Nico Weber via cfe-commits
thakis closed this revision. thakis added a comment. Landed in r286507. Thanks! https://reviews.llvm.org/D26163 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

r286507 - [clang-format] Fix PR30527: Regression when clang-format insert spaces in [] when in template

2016-11-10 Thread Nico Weber via cfe-commits
Author: nico Date: Thu Nov 10 15:49:25 2016 New Revision: 286507 URL: http://llvm.org/viewvc/llvm-project?rev=286507&view=rev Log: [clang-format] Fix PR30527: Regression when clang-format insert spaces in [] when in template Actual regression was introduced in r272668. This revision fixes JS scr

[PATCH] D26540: [Sema] Accept and ignore the leaf attribute

2016-11-11 Thread Nico Weber via cfe-commits
thakis added a comment. (Maybe implementing real support isn't so difficult? From a quick glance, it sounds like this is a sema-only attribute?) Repository: rL LLVM https://reviews.llvm.org/D26540 ___ cfe-commits mailing list cfe-commits@lists.l

Re: [PATCH] D12646: Add libc++ header path for DarwinClang builds

2015-09-08 Thread Nico Weber via cfe-commits
thakis added a comment. In http://reviews.llvm.org/D12646#241318, @hintonda wrote: > In http://reviews.llvm.org/D12646#241308, @kubabrecka wrote: > > > In what scenario exactly are you seeing an issue? If it's a just-built > > clang that can't find C++ headers, then you should just build the li

r247327 - Move sel-address.mm from test/CodeGenCXX to test/SemaObjCXX, it's not a codegen test.

2015-09-10 Thread Nico Weber via cfe-commits
Author: nico Date: Thu Sep 10 14:35:31 2015 New Revision: 247327 URL: http://llvm.org/viewvc/llvm-project?rev=247327&view=rev Log: Move sel-address.mm from test/CodeGenCXX to test/SemaObjCXX, it's not a codegen test. Added: cfe/trunk/test/SemaObjCXX/sel-address.mm - copied, changed fro

r247477 - Let selector-expr-lvalue.mm actually test something.

2015-09-11 Thread Nico Weber via cfe-commits
Author: nico Date: Fri Sep 11 16:24:40 2015 New Revision: 247477 URL: http://llvm.org/viewvc/llvm-project?rev=247477&view=rev Log: Let selector-expr-lvalue.mm actually test something. I accidentally introduced a bug locally, and noticed that none of the tests caught it. No longer! Modified:

Re: r247618 - C11 _Bool bitfield diagnostic

2015-09-14 Thread Nico Weber via cfe-commits
This also fires for bool in C++ files, even though the commit message saying C11 and _Bool. Given the test changes, I suppose that's intentional? This fires a lot on existing code, for example protobuf: ../../third_party/protobuf/src/google/protobuf/extension_set.h:465:10: error: width of bit-fiel

Re: r247618 - C11 _Bool bitfield diagnostic

2015-09-14 Thread Nico Weber via cfe-commits
On Mon, Sep 14, 2015 at 5:28 PM, Richard Smith wrote: > On Mon, Sep 14, 2015 at 5:18 PM, Nico Weber via cfe-commits < > cfe-commits@lists.llvm.org> wrote: > >> This also fires for bool in C++ files, even though the commit message >> saying C11 and _Bool. Given the tes

r247712 - Rebase tests after LLVM r247707.

2015-09-15 Thread Nico Weber via cfe-commits
Author: nico Date: Tue Sep 15 13:49:51 2015 New Revision: 247712 URL: http://llvm.org/viewvc/llvm-project?rev=247712&view=rev Log: Rebase tests after LLVM r247707. Modified: cfe/trunk/test/CodeGenCXX/init-invariant.cpp cfe/trunk/test/CodeGenCXX/microsoft-abi-dynamic-cast.cpp cfe/trunk

Re: r247618 - C11 _Bool bitfield diagnostic

2015-09-15 Thread Nico Weber via cfe-commits
ield diagnostic >> Sent by: tha...@google.com >> -- >> >> >> >> On Mon, Sep 14, 2015 at 5:28 PM, Richard Smith <*rich...@metafoo.co.uk* >> > wrote: >> >>On Mon, Sep 14, 2015 at 5:18 PM, Nico Weber via cfe-

r247717 - Add test coverage for @encode(SEL); completely untested until now.

2015-09-15 Thread Nico Weber via cfe-commits
Author: nico Date: Tue Sep 15 15:05:20 2015 New Revision: 247717 URL: http://llvm.org/viewvc/llvm-project?rev=247717&view=rev Log: Add test coverage for @encode(SEL); completely untested until now. Modified: cfe/trunk/test/CodeGenObjC/encode-test.m Modified: cfe/trunk/test/CodeGenObjC/encode

r247740 - Don't crash when passing &@selector to a _Nonnull parameter. Fixes PR24774.

2015-09-15 Thread Nico Weber via cfe-commits
Author: nico Date: Tue Sep 15 18:17:17 2015 New Revision: 247740 URL: http://llvm.org/viewvc/llvm-project?rev=247740&view=rev Log: Don't crash when passing &@selector to a _Nonnull parameter. Fixes PR24774. The root cause here is that ObjCSelectorExpr is an rvalue, yet it can have its address tak

r247750 - clang-format: In Java, `assert` is followed by an expression.

2015-09-15 Thread Nico Weber via cfe-commits
Author: nico Date: Tue Sep 15 18:48:17 2015 New Revision: 247750 URL: http://llvm.org/viewvc/llvm-project?rev=247750&view=rev Log: clang-format: In Java, `assert` is followed by an expression. Before: assert a&& b; Now:assert a && b; Modified: cfe/trunk/lib/Format/FormatToken.h cfe/t

r247752 - Remove accidental superfluous newline added in r247750.

2015-09-15 Thread Nico Weber via cfe-commits
Author: nico Date: Tue Sep 15 18:51:08 2015 New Revision: 247752 URL: http://llvm.org/viewvc/llvm-project?rev=247752&view=rev Log: Remove accidental superfluous newline added in r247750. Modified: cfe/trunk/unittests/Format/FormatTestJava.cpp Modified: cfe/trunk/unittests/Format/FormatTestJa

[PATCH] D12895: Let cxa_demangle.cpp compile with gcc/libstdc++ 4.8 and clang-cl/MSVC2013's STL.

2015-09-15 Thread Nico Weber via cfe-commits
thakis created this revision. thakis added a reviewer: mclow.lists. thakis added a subscriber: cfe-commits. I wanted a demangler that can demangle both Itanium-style and Microsoft-style mangled symbols, and that runs on all of Windows, Linux, and Mac OS X. I used libcxxabi's cxa_demangle for the

Re: r247618 - C11 _Bool bitfield diagnostic

2015-09-16 Thread Nico Weber via cfe-commits
on, Sep 14, 2015 at 5:28 PM, Richard Smith >>> Weber ---09/14/2015 09:53:25 PM---On Mon, Sep 14, 2015 at 5:28 PM, Richard >>>> Smith wrote: >>>> >>>> From: Nico Weber >>>> To: Richard Smith >>>> Cc: Rachel Craik/Toronto/IBM@IBMCA

[PATCH] D12981: [clang-cl]: Don't warn on /bigobj flag

2015-09-18 Thread Nico Weber via cfe-commits
thakis created this revision. thakis added a reviewer: hans. thakis added a subscriber: cfe-commits. LLVM r217812 made it so that clang-cl implicitly creates bigobj files when needed, independent of this flag. It looks like cl has this flag to produce obj flags compatible with MSVS 2003's linker

r248034 - clang-cl: Don't warn on /bigobj flag

2015-09-18 Thread Nico Weber via cfe-commits
Author: nico Date: Fri Sep 18 15:49:33 2015 New Revision: 248034 URL: http://llvm.org/viewvc/llvm-project?rev=248034&view=rev Log: clang-cl: Don't warn on /bigobj flag LLVM r217812 made it so that clang-cl implicitly creates bigobj files when needed, independent of this flag. It looks like cl has

Re: [PATCH] D12981: [clang-cl]: Don't warn on /bigobj flag

2015-09-18 Thread Nico Weber via cfe-commits
thakis closed this revision. thakis added a comment. r248034, thanks! (with test) http://reviews.llvm.org/D12981 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Re: r247618 - C11 _Bool bitfield diagnostic

2015-09-18 Thread Nico Weber via cfe-commits
On Fri, Sep 18, 2015 at 5:06 PM, Richard Smith wrote: > On Wed, Sep 16, 2015 at 5:33 PM, Richard Smith > wrote: > >> On Wed, Sep 16, 2015 at 5:27 PM, Nico Weber via cfe-commits < >> cfe-commits@lists.llvm.org> wrote: >> >>> On Tue, Sep 15, 2015 at 5:50

Re: r247618 - C11 _Bool bitfield diagnostic

2015-09-18 Thread Nico Weber via cfe-commits
t-field would change the struct layout. >>>> >>>> >>>>> On Mon, Sep 14, 2015 at 11:06 PM, Richard Smith >>>>>> > wrote: >>>>>>> >>>>>>>> On Mon, Sep 14, 2015 at 7:07 PM, Rachel Craik >>>&g

r248100 - Convert two loops to range-based loops. No behavior change.

2015-09-19 Thread Nico Weber via cfe-commits
Author: nico Date: Sat Sep 19 16:36:51 2015 New Revision: 248100 URL: http://llvm.org/viewvc/llvm-project?rev=248100&view=rev Log: Convert two loops to range-based loops. No behavior change. Modified: cfe/trunk/lib/Driver/Driver.cpp Modified: cfe/trunk/lib/Driver/Driver.cpp URL: http://llvm

Re: [PATCH] D12903: Add -fplugin=name.so option to the driver

2015-09-19 Thread Nico Weber via cfe-commits
thakis added a subscriber: thakis. thakis added a comment. Is the idea that this loads plugins that link against clang's C++ api? That api isn't considered stable, so not having an "official" flag for this always looked by design to me. Also, C++ doesn't make for a good ABI. Also also, this app

[libcxxabi] r248129 - Let cxa_demangle.cpp compile with gcc/libstdc++ 4.8 and clang-cl/MSVC2013's STL.

2015-09-20 Thread Nico Weber via cfe-commits
Author: nico Date: Sun Sep 20 13:10:46 2015 New Revision: 248129 URL: http://llvm.org/viewvc/llvm-project?rev=248129&view=rev Log: Let cxa_demangle.cpp compile with gcc/libstdc++ 4.8 and clang-cl/MSVC2013's STL. libstdc++ needs a few typedefs in malloc_alloc. MSVC's STL needs rebind(), construct(

Re: [PATCH] D12895: Let cxa_demangle.cpp compile with gcc/libstdc++ 4.8 and clang-cl/MSVC2013's STL.

2015-09-20 Thread Nico Weber via cfe-commits
thakis closed this revision. thakis added a comment. r248129, thanks! http://reviews.llvm.org/D12895 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

r248205 - clang-format: Remove ChromiumStyle.MacroBlockBegin.

2015-09-21 Thread Nico Weber via cfe-commits
Author: nico Date: Mon Sep 21 15:06:42 2015 New Revision: 248205 URL: http://llvm.org/viewvc/llvm-project?rev=248205&view=rev Log: clang-format: Remove ChromiumStyle.MacroBlockBegin. We prefer setting these in our .clang-format file as the macros change over time. (Also, the code was setting Mac

r248234 - ms Intrin.h: Fix __movsw's and __stosw's inline asm.

2015-09-21 Thread Nico Weber via cfe-commits
Author: nico Date: Mon Sep 21 19:46:21 2015 New Revision: 248234 URL: http://llvm.org/viewvc/llvm-project?rev=248234&view=rev Log: ms Intrin.h: Fix __movsw's and __stosw's inline asm. Before, clang's internal assembler would reject the inline asm in clang's Intrin.h. To make sure this doesn't ha

r248235 - Add bug number to FIXME comment.

2015-09-21 Thread Nico Weber via cfe-commits
Author: nico Date: Mon Sep 21 19:51:10 2015 New Revision: 248235 URL: http://llvm.org/viewvc/llvm-project?rev=248235&view=rev Log: Add bug number to FIXME comment. Modified: cfe/trunk/test/Headers/ms-intrin.cpp Modified: cfe/trunk/test/Headers/ms-intrin.cpp URL: http://llvm.org/viewvc/llvm-

Re: r248234 - ms Intrin.h: Fix __movsw's and __stosw's inline asm.

2015-09-22 Thread Nico Weber via cfe-commits
vm.org> wrote: > On 21 September 2015 at 17:46, Nico Weber via cfe-commits > wrote: > > Author: nico > > Date: Mon Sep 21 19:46:21 2015 > > New Revision: 248234 > > > > URL: http://llvm.org/viewvc/llvm-project?rev=248234&view=rev > > Log: > &

r248355 - Make ms-intrin.cpp test require the x86 target.

2015-09-22 Thread Nico Weber via cfe-commits
Author: nico Date: Tue Sep 22 19:24:34 2015 New Revision: 248355 URL: http://llvm.org/viewvc/llvm-project?rev=248355&view=rev Log: Make ms-intrin.cpp test require the x86 target. Modified: cfe/trunk/test/Headers/ms-intrin.cpp Modified: cfe/trunk/test/Headers/ms-intrin.cpp URL: http://llvm.o

Re: r248234 - ms Intrin.h: Fix __movsw's and __stosw's inline asm.

2015-09-22 Thread Nico Weber via cfe-commits
? > > On Tue, Sep 22, 2015 at 6:00 PM, Renato Golin via cfe-commits < > cfe-commits@lists.llvm.org> wrote: > >> On 21 September 2015 at 17:46, Nico Weber via cfe-commits >> wrote: >> > Author: nico >> > Date: Mon Sep 21 19:46:21 2015 >> > N

Re: [PATCH] D13080: [libc++] ~unique_ptr() should not set stored pointer to null

2015-09-22 Thread Nico Weber via cfe-commits
thakis added a subscriber: thakis. thakis added a comment. mclow should review this, not me. http://reviews.llvm.org/D13080 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

r248456 - Make a test a bit shorter. No behavior change.

2015-09-23 Thread Nico Weber via cfe-commits
Author: nico Date: Wed Sep 23 20:34:27 2015 New Revision: 248456 URL: http://llvm.org/viewvc/llvm-project?rev=248456&view=rev Log: Make a test a bit shorter. No behavior change. Modified: cfe/trunk/test/Sema/warn-sizeof-arrayarg.c Modified: cfe/trunk/test/Sema/warn-sizeof-arrayarg.c URL: ht

Re: [libcxxabi] r248129 - Let cxa_demangle.cpp compile with gcc/libstdc++ 4.8 and clang-cl/MSVC2013's STL.

2015-09-24 Thread Nico Weber via cfe-commits
t) #else __attr... #endif` then it compiles with 2015. (I want to send out something for this soon too.) > > > 2015-09-20 21:10 GMT+03:00 Nico Weber via cfe-commits < > cfe-commits@lists.llvm.org>: > >> Author: nico >> Date: Sun Sep 20 13:10:46 2015 >> New

Re: [PATCH] D11940: don't diagnose -Wunused-parameter in virtual method or method that overrides base class method

2015-08-11 Thread Nico Weber via cfe-commits
Can't you just change your signature to virtual void a(int /* x */) {} in these cases? On Tue, Aug 11, 2015 at 6:43 AM, Daniel Marjamäki < cfe-commits@lists.llvm.org> wrote: > danielmarjamaki created this revision. > danielmarjamaki added a reviewer: krememek. > danielmarjamaki added a subscr

Re: [PATCH] D11940: don't diagnose -Wunused-parameter in virtual method or method that overrides base class method

2015-08-11 Thread Nico Weber via cfe-commits
thakis added a subscriber: thakis. thakis added a comment. Can't you just change your signature to virtual void a(int /* x */) {} in these cases? http://reviews.llvm.org/D11940 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists

Re: [PATCH] D11940: don't diagnose -Wunused-parameter in virtual method or method that overrides base class method

2015-08-11 Thread Nico Weber via cfe-commits
On Tue, Aug 11, 2015 at 11:32 AM, David Blaikie wrote: > > > On Tue, Aug 11, 2015 at 8:46 AM, Nico Weber via cfe-commits < > cfe-commits@lists.llvm.org> wrote: > >> Can't you just change your signature to >> >> virtual void a(int /* x */) {} >>

Re: [PATCH] D11940: don't diagnose -Wunused-parameter in virtual method or method that overrides base class method

2015-08-12 Thread Nico Weber via cfe-commits
s@lists.llvm.org > Ämne: Re: [PATCH] D11940: don't diagnose -Wunused-parameter in virtual > method or method that overrides base class method > > On Tue, Aug 11, 2015 at 11:32 AM, David Blaikie <mailto:dblai...@gmail.com>> wrote: > > > On Tue, Aug 11, 2015 at 8:46 AM, Nico

Re: [PATCH] D11940: don't diagnose -Wunused-parameter in virtual method or method that overrides base class method

2015-08-12 Thread Nico Weber via cfe-commits
; Evidente ES East AB Warfvinges väg 34 SE-112 51 Stockholm Sweden >>> >>> Mobile: +46 (0)709 12 42 62 >>> E-mail: daniel.marjam...@evidente.se >>> >>> www.evidente.se >>> >>> ___

Re: [PATCH] D11940: don't diagnose -Wunused-parameter in virtual method or method that overrides base class method

2015-08-12 Thread Nico Weber via cfe-commits
s using constants. >>>>> etc >>>>> >>>>> Best regards, >>>>> Daniel Marjamäki >>>>> >>>>> >>>>> ..

Re: [PATCH] D12036: We shouldn't need to pass -fno-strict-aliasing when building clang with clang.

2015-08-14 Thread Nico Weber via cfe-commits
thakis added a subscriber: thakis. Comment at: Makefile:68 @@ -67,3 +67,3 @@ # http://gcc.gnu.org/PR41874 # http://gcc.gnu.org/PR41838 # The first of these is marked fixed, the second has a "works on trunk" comment (from 2010). Maybe this isn't needed with

Re: [PATCH] D10431: PR21174 - clang only searches current working directory for precompiled include file

2015-08-17 Thread Nico Weber via cfe-commits
thakis added a subscriber: thakis. Comment at: lib/Driver/Tools.cpp:398 @@ +397,3 @@ + FoundPTH = !UsePCH; +} + } kimgr wrote: > kimgr wrote: > > kimgr wrote: > > > kimgr wrote: > > > > Add a `break;` here so we don't continue sea

Re: r245304 - We shouldn't need to pass -fno-strict-aliasing when building clang with clang.

2015-08-18 Thread Nico Weber via cfe-commits
On Tue, Aug 18, 2015 at 9:15 AM, Chris Bieneman via cfe-commits < cfe-commits@lists.llvm.org> wrote: > Author: cbieneman > Date: Tue Aug 18 11:15:44 2015 > New Revision: 245304 > > URL: http://llvm.org/viewvc/llvm-project?rev=245304&view=rev > Log: > We shouldn't need to pass -fno-strict-aliasing

[libcxxabi] r245325 - Revert r243752, it broke running tests on OS X (PR24491).

2015-08-18 Thread Nico Weber via cfe-commits
Author: nico Date: Tue Aug 18 13:29:33 2015 New Revision: 245325 URL: http://llvm.org/viewvc/llvm-project?rev=245325&view=rev Log: Revert r243752, it broke running tests on OS X (PR24491). Modified: libcxxabi/trunk/test/lit.cfg Modified: libcxxabi/trunk/test/lit.cfg URL: http://llvm.org/vie

r245342 - Revert r245323, it caused PR24493.

2015-08-18 Thread Nico Weber via cfe-commits
Author: nico Date: Tue Aug 18 15:32:55 2015 New Revision: 245342 URL: http://llvm.org/viewvc/llvm-project?rev=245342&view=rev Log: Revert r245323, it caused PR24493. Modified: cfe/trunk/lib/AST/ExprConstant.cpp cfe/trunk/test/CodeGen/object-size.c cfe/trunk/test/Sema/const-eval.c Mod

Re: r240188 - Handle 'instancetype' in ParseDeclarationSpecifiers.

2015-08-19 Thread Nico Weber via cfe-commits
On Fri, Jun 19, 2015 at 4:18 PM, Douglas Gregor wrote: > Author: dgregor > Date: Fri Jun 19 18:18:00 2015 > New Revision: 240188 > > URL: http://llvm.org/viewvc/llvm-project?rev=240188&view=rev > Log: > Handle 'instancetype' in ParseDeclarationSpecifiers. > > ...instead of as a special case in Pa

Re: [PATCH] D11737: Add -linker (and -linker=) alias for -fuse-ld=

2015-08-24 Thread Nico Weber via cfe-commits
thakis added a subscriber: thakis. This revision is now accepted and ready to land. Comment at: include/clang/Driver/Options.td:1853 @@ -1853,1 +1852,3 @@ +def fuse_ld_EQ : Joined<["-"], "fuse-ld=">, HelpText<"Use linker ">, Group; +def linker_EQ : Joined<["-"], "linker=">, Alias

r245965 - Revert r245879. Speculative, might have caused crbug.com/524604

2015-08-25 Thread Nico Weber via cfe-commits
Author: nico Date: Tue Aug 25 13:43:32 2015 New Revision: 245965 URL: http://llvm.org/viewvc/llvm-project?rev=245965&view=rev Log: Revert r245879. Speculative, might have caused crbug.com/524604 Modified: cfe/trunk/lib/CodeGen/CGCall.cpp cfe/trunk/lib/CodeGen/CGCall.h cfe/trunk/test/C

r246589 - Make trunk release notes point to 3.7, not 3.6

2015-09-01 Thread Nico Weber via cfe-commits
Author: nico Date: Tue Sep 1 16:13:14 2015 New Revision: 246589 URL: http://llvm.org/viewvc/llvm-project?rev=246589&view=rev Log: Make trunk release notes point to 3.7, not 3.6 Modified: cfe/trunk/docs/ReleaseNotes.rst Modified: cfe/trunk/docs/ReleaseNotes.rst URL: http://llvm.org/viewvc/l

Re: [PATCH][www] Mention that libcxx is necessary on OS X

2015-09-07 Thread Nico Weber via cfe-commits
libcxx is needed to run compiler-rt tests, but it shouldn't be needed to run clang's tests. And to _use_ your self-built compiler, you need to add `-isysroot $(xcrun -show-sdk-path)` to the compile flags to let the compiler find C headers anyway, which also makes it find the libc++ headers. For co

Re: [PATCH][www] Mention that libcxx is necessary on OS X

2015-09-07 Thread Nico Weber via cfe-commits
On Mon, Sep 7, 2015 at 9:17 AM, Kuba Brecka wrote: > > > On 07 Sep 2015, at 17:21, Nico Weber wrote: > > > > libcxx is needed to run compiler-rt tests, but it shouldn't be needed to > run clang's tests. And to _use_ your self-built compiler, you need to add > `-isysroot $(xcrun -show-sdk-path)`

Re: [PATCH] D12686: Add support for GCC's '__auto_type' extension.

2015-10-12 Thread Nico Weber via cfe-commits
thakis added a subscriber: thakis. Comment at: test/SemaCXX/auto-type-from-cxx.cpp:14 @@ +13,3 @@ + auto _ = [](__auto_type f) {}; // expected-error {{'__auto_type' not allowed in lambda parameter}} + __auto_type g = 2; + struct BitField { int field:2; }; Shou

Re: [PATCH] D12686: Add support for GCC's '__auto_type' extension.

2015-10-13 Thread Nico Weber via cfe-commits
thakis added inline comments. Comment at: test/SemaCXX/auto-type-from-cxx.cpp:14 @@ +13,3 @@ + auto _ = [](__auto_type f) {}; // expected-error {{'__auto_type' not allowed in lambda parameter}} + __auto_type g = 2; + struct BitField { int field:2; }; comex wro

Re: [PATCH] D12686: Add support for GCC's '__auto_type' extension.

2015-10-13 Thread Nico Weber via cfe-commits
thakis added inline comments. Comment at: test/SemaCXX/auto-type-from-cxx.cpp:14 @@ +13,3 @@ + auto _ = [](__auto_type f) {}; // expected-error {{'__auto_type' not allowed in lambda parameter}} + __auto_type g = 2; + struct BitField { int field:2; }; comex wro

r250422 - clang-format/java: Break after annotations on fields in Chromium style.

2015-10-15 Thread Nico Weber via cfe-commits
Author: nico Date: Thu Oct 15 11:03:01 2015 New Revision: 250422 URL: http://llvm.org/viewvc/llvm-project?rev=250422&view=rev Log: clang-format/java: Break after annotations on fields in Chromium style. Chromium follows the Android style guide for Java code, and that doesn't make the distinction

Re: r250440 - clang-format: Basic escaping when outputting XML.

2015-10-15 Thread Nico Weber via cfe-commits
test? On Thu, Oct 15, 2015 at 11:39 AM, Daniel Jasper via cfe-commits < cfe-commits@lists.llvm.org> wrote: > Author: djasper > Date: Thu Oct 15 13:39:31 2015 > New Revision: 250440 > > URL: http://llvm.org/viewvc/llvm-project?rev=250440&view=rev > Log: > clang-format: Basic escaping when outputti

Re: [libcxx] r249738 - Split out of .

2015-10-16 Thread Nico Weber via cfe-commits
On Wed, Oct 14, 2015 at 5:28 PM, Adrian Prantl via cfe-commits < cfe-commits@lists.llvm.org> wrote: > > On Oct 14, 2015, at 5:07 PM, Richard Smith wrote: > > On Wed, Oct 14, 2015 at 3:58 PM, Adrian Prantl via cfe-commits < > cfe-commits@lists.llvm.org> wrote: > >> On Oct 14, 2015, at 3:32 PM, Ric

[PATCH] D13852: clang-format: Use pipes instead of temporary files for most lit tests.

2015-10-18 Thread Nico Weber via cfe-commits
thakis created this revision. thakis added a reviewer: djasper. thakis added a subscriber: cfe-commits. Herald added a subscriber: klimek. This makes the format tests look more like most other FileCheck tests in clang. The multiple-inputs tests still use temp files, to make sure that the file in

r250671 - Update list of languages advertised in OVERVIEW: A tool to format C/C++/Java/JavaScript/Objective-C/Protobuf code.

2015-10-18 Thread Nico Weber via cfe-commits
Author: nico Date: Sun Oct 18 20:03:19 2015 New Revision: 250671 URL: http://llvm.org/viewvc/llvm-project?rev=250671&view=rev Log: Update list of languages advertised in OVERVIEW: A tool to format C/C++/Java/JavaScript/Objective-C/Protobuf code. If no arguments are specified, it formats the code

r250672 - Update `clang-format -help` output in clang-format docs.

2015-10-18 Thread Nico Weber via cfe-commits
Author: nico Date: Sun Oct 18 20:08:30 2015 New Revision: 250672 URL: http://llvm.org/viewvc/llvm-project?rev=250672&view=rev Log: Update `clang-format -help` output in clang-format docs. -assume-filename, -fallback-style, and -sort-includes are new. (They're also longer than the previous option

Re: r250671 - Update list of languages advertised in OVERVIEW: A tool to format C/C++/Java/JavaScript/Objective-C/Protobuf code.

2015-10-18 Thread Nico Weber via cfe-commits
Oct 18, 2015 at 6:03 PM, Nico Weber via cfe-commits < cfe-commits@lists.llvm.org> wrote: > Author: nico > Date: Sun Oct 18 20:03:19 2015 > New Revision: 250671 > > URL: http://llvm.org/viewvc/llvm-project?rev=250671&view=rev > Log: > Update list of languages adv

r250675 - clang-format: Extend main header include sorting heuristic to Objective-C files.

2015-10-18 Thread Nico Weber via cfe-commits
Author: nico Date: Sun Oct 18 20:36:09 2015 New Revision: 250675 URL: http://llvm.org/viewvc/llvm-project?rev=250675&view=rev Log: clang-format: Extend main header include sorting heuristic to Objective-C files. Modified: cfe/trunk/lib/Format/Format.cpp cfe/trunk/unittests/Format/SortIncl

Re: r248782 - clang-format: Extend #include sorting functionality

2015-10-18 Thread Nico Weber via cfe-commits
On Tue, Sep 29, 2015 at 12:53 AM, Daniel Jasper via cfe-commits < cfe-commits@lists.llvm.org> wrote: > Author: djasper > Date: Tue Sep 29 02:53:08 2015 > New Revision: 248782 > > URL: http://llvm.org/viewvc/llvm-project?rev=248782&view=rev > Log: > clang-format: Extend #include sorting functionali

<    6   7   8   9   10   11   12   13   14   15   >