r262506 - Serialize `#pragma detect_mismatch`.

2016-03-02 Thread Nico Weber via cfe-commits
Author: nico Date: Wed Mar 2 13:28:54 2016 New Revision: 262506 URL: http://llvm.org/viewvc/llvm-project?rev=262506&view=rev Log: Serialize `#pragma detect_mismatch`. This is like r262493, but for pragma detect_mismatch instead of pragma comment. The two pragmas have similar behavior, so use the

Re: [PATCH] D17799: Serialize `#pragma comment`.

2016-03-02 Thread Nico Weber via cfe-commits
thakis added a comment. Also landed a very similar change for the very similar detect_mismatch pragma in r262506. (The other missing serialized pragmas will use a different approach.) http://reviews.llvm.org/D17799 ___ cfe-commits mailing list cfe

r262508 - fix test from r262506

2016-03-02 Thread Nico Weber via cfe-commits
Author: nico Date: Wed Mar 2 13:38:24 2016 New Revision: 262508 URL: http://llvm.org/viewvc/llvm-project?rev=262508&view=rev Log: fix test from r262506 Modified: cfe/trunk/test/PCH/pragma-detect_mismatch.c Modified: cfe/trunk/test/PCH/pragma-detect_mismatch.c URL: http://llvm.org/viewvc/ll

Re: r262487 - test/Driver/cl-pch-errorhandling.cpp: Copy input file to a temporary

2016-03-02 Thread Nico Weber via cfe-commits
(A different fix would've been to just add /Fp%.pch to set the output path to be not next to the inputs.) On Wed, Mar 2, 2016 at 6:27 AM, Daniel Jasper via cfe-commits < cfe-commits@lists.llvm.org> wrote: > Author: djasper > Date: Wed Mar 2 08:26:59 2016 > New Revision: 262487 > > URL: http://ll

Re: r262487 - test/Driver/cl-pch-errorhandling.cpp: Copy input file to a temporary

2016-03-02 Thread Nico Weber via cfe-commits
Thanks! On Wed, Mar 2, 2016 at 6:27 AM, Daniel Jasper via cfe-commits < cfe-commits@lists.llvm.org> wrote: > Author: djasper > Date: Wed Mar 2 08:26:59 2016 > New Revision: 262487 > > URL: http://llvm.org/viewvc/llvm-project?rev=262487&view=rev > Log: > test/Driver/cl-pch-errorhandling.cpp: Copy

r262539 - Serialize `pragma ms_struct` state.

2016-03-02 Thread Nico Weber via cfe-commits
Author: nico Date: Wed Mar 2 17:22:00 2016 New Revision: 262539 URL: http://llvm.org/viewvc/llvm-project?rev=262539&view=rev Log: Serialize `pragma ms_struct` state. pragma ms_struct has an effect on struct decls, and the effect is serialized correctly already. But the "is ms_struct currently o

r262541 - clang-cl pch test: Instead of copying the input, use /Fp to not write into the test directory.

2016-03-02 Thread Nico Weber via cfe-commits
Author: nico Date: Wed Mar 2 17:29:29 2016 New Revision: 262541 URL: http://llvm.org/viewvc/llvm-project?rev=262541&view=rev Log: clang-cl pch test: Instead of copying the input, use /Fp to not write into the test directory. Also fix a bug with /Fp and absolute paths uncovered by this. Follow-u

Re: r262487 - test/Driver/cl-pch-errorhandling.cpp: Copy input file to a temporary

2016-03-02 Thread Nico Weber via cfe-commits
Ok, gave that a try in r262541. On Wed, Mar 2, 2016 at 1:20 PM, Daniel Jasper wrote: > Feel free to change. I have no idea what I am doing here. > > On Wed, Mar 2, 2016 at 12:55 PM, Nico Weber wrote: > >> (A different fix would've been to just add /Fp%.pch to set the output >> path to be not ne

r262552 - Serialize `pragma pointers_to_members` state.

2016-03-02 Thread Nico Weber via cfe-commits
Author: nico Date: Wed Mar 2 18:17:35 2016 New Revision: 262552 URL: http://llvm.org/viewvc/llvm-project?rev=262552&view=rev Log: Serialize `pragma pointers_to_members` state. Like r262539, but for pointers_to_members. Added: cfe/trunk/test/PCH/pragma-pointers_to_members.cpp Modified: c

Re: r262576 - Caught and fixed a typo in r262572.

2016-03-02 Thread Nico Weber via cfe-commits
Is it possible to test this? On Mar 2, 2016 6:26 PM, "Sean Callanan via cfe-commits" < cfe-commits@lists.llvm.org> wrote: > Author: spyffe > Date: Wed Mar 2 20:22:05 2016 > New Revision: 262576 > > URL: http://llvm.org/viewvc/llvm-project?rev=262576&view=rev > Log: > Caught and fixed a typo in r2

Re: [PATCH] D17741: adds __FILE_BASENAME__ builtin macro

2016-03-03 Thread Nico Weber via cfe-commits
On Thu, Mar 3, 2016 at 1:50 PM, Joerg Sonnenberger via cfe-commits < cfe-commits@lists.llvm.org> wrote: > On Thu, Mar 03, 2016 at 07:39:04PM +, Weiming Zhao via cfe-commits > wrote: > > Change the option name to -ffile-macro-prefix-to-remove > > This still sounds to me like a solution for a ve

Re: [PATCH] D17741: adds __FILE_BASENAME__ builtin macro

2016-03-03 Thread Nico Weber via cfe-commits
On Thu, Mar 3, 2016 at 4:28 PM, Joerg Sonnenberger via cfe-commits < cfe-commits@lists.llvm.org> wrote: > On Thu, Mar 03, 2016 at 02:09:17PM -0800, Nico Weber via cfe-commits wrote: > > On Thu, Mar 3, 2016 at 1:50 PM, Joerg Sonnenberger via cfe-commits < > > cfe-commi

r262749 - clang-cl: Enable PCH flags by default.

2016-03-04 Thread Nico Weber via cfe-commits
Author: nico Date: Fri Mar 4 15:59:42 2016 New Revision: 262749 URL: http://llvm.org/viewvc/llvm-project?rev=262749&view=rev Log: clang-cl: Enable PCH flags by default. Now that pragma comment and pragma detect_mismatch are implemented, this might just work. Some pragmas aren't serialized yet (

Re: r262741 - [OPENMP] Codegen for distribute directive

2016-03-04 Thread Nico Weber via cfe-commits
Looks like the new tests don't pass on Windows: http://lab.llvm.org:8011/builders/clang-x64-ninja-win7/builds/10365 On Mar 4, 2016 12:29 PM, "Carlo Bertolli via cfe-commits" < cfe-commits@lists.llvm.org> wrote: > Author: cbertol > Date: Fri Mar 4 14:24:58 2016 > New Revision: 262741 > > URL: http

Re: r262881 - P0188R1: add support for standard [[fallthrough]] attribute. This is almost

2016-03-08 Thread Nico Weber via cfe-commits
This causes clang to warn on default: assert (false); HB_FALLTHROUGH; The fallthrough needs to be there for release builds, but now it must not be there for debug builds. I suppose this means projects now need an UNREACHED_CASE macro that expands to assert(false) in debug and to fallthrough in

Re: r262881 - P0188R1: add support for standard [[fallthrough]] attribute. This is almost

2016-03-08 Thread Nico Weber via cfe-commits
On Tue, Mar 8, 2016 at 1:49 PM, Richard Smith wrote: > On Tue, Mar 8, 2016 at 9:05 AM, Nico Weber wrote: > > This causes clang to warn on > > > > default: assert (false); HB_FALLTHROUGH; > > What follows this? (A case label?) What warning is being produced? > A case label. Full snippet: https

Re: r262881 - P0188R1: add support for standard [[fallthrough]] attribute. This is almost

2016-03-08 Thread Nico Weber via cfe-commits
On Tue, Mar 8, 2016 at 2:10 PM, Richard Smith wrote: > On Tue, Mar 8, 2016 at 11:04 AM, Nico Weber wrote: > > On Tue, Mar 8, 2016 at 1:49 PM, Richard Smith > wrote: > >> > >> On Tue, Mar 8, 2016 at 9:05 AM, Nico Weber wrote: > >> > This causes clang to warn on > >> > > >> > default: assert (

Re: r262881 - P0188R1: add support for standard [[fallthrough]] attribute. This is almost

2016-03-09 Thread Nico Weber via cfe-commits
On Tue, Mar 8, 2016 at 12:18 PM, Nico Weber wrote: > On Tue, Mar 8, 2016 at 2:10 PM, Richard Smith > wrote: > >> On Tue, Mar 8, 2016 at 11:04 AM, Nico Weber wrote: >> > On Tue, Mar 8, 2016 at 1:49 PM, Richard Smith >> wrote: >> >> >> >> On Tue, Mar 8, 2016 at 9:05 AM, Nico Weber >> wrote: >>

Re: [libcxx] r263036 - Implement LWG#2583: There is no way to supply an allocator for basic_string(str, pos)

2016-03-10 Thread Nico Weber via cfe-commits
I think this is ABI-breaking. On OS X, new libc++ headers must work with old system libc++.dylibs. When I build in this setup with this change, I get Undefined symbols for architecture x86_64: "std::__1::basic_string, std::__1::allocator >::basic_string(std::__1::basic_string, std::__1::allocato

r263138 - Make remaining ImplicitFallthrough warning DefaultIgnore.

2016-03-10 Thread Nico Weber via cfe-commits
Author: nico Date: Thu Mar 10 12:42:37 2016 New Revision: 263138 URL: http://llvm.org/viewvc/llvm-project?rev=263138&view=rev Log: Make remaining ImplicitFallthrough warning DefaultIgnore. Follow-up to r262881, which caused this to fire more often. Modified: cfe/trunk/include/clang/Basic/Dia

Re: r262881 - P0188R1: add support for standard [[fallthrough]] attribute. This is almost

2016-03-10 Thread Nico Weber via cfe-commits
On Wed, Mar 9, 2016 at 6:44 PM, Nico Weber wrote: > On Tue, Mar 8, 2016 at 12:18 PM, Nico Weber wrote: > >> On Tue, Mar 8, 2016 at 2:10 PM, Richard Smith >> wrote: >> >>> On Tue, Mar 8, 2016 at 11:04 AM, Nico Weber wrote: >>> > On Tue, Mar 8, 2016 at 1:49 PM, Richard Smith >>> wrote: >>> >> >

Re: r263155 - Add test for r263138.

2016-03-10 Thread Nico Weber via cfe-commits
Thank you! On Thu, Mar 10, 2016 at 2:22 PM, Richard Smith via cfe-commits < cfe-commits@lists.llvm.org> wrote: > Author: rsmith > Date: Thu Mar 10 13:22:21 2016 > New Revision: 263155 > > URL: http://llvm.org/viewvc/llvm-project?rev=263155&view=rev > Log: > Add test for r263138. > > Added: >

r263168 - Reenable asm-errors.c

2016-03-10 Thread Nico Weber via cfe-commits
Author: nico Date: Thu Mar 10 16:40:02 2016 New Revision: 263168 URL: http://llvm.org/viewvc/llvm-project?rev=263168&view=rev Log: Reenable asm-errors.c r134811 made the test pass and reenabled it, but r134831 accidentally disabled it again due to a bad merge. Modified: cfe/trunk/test/CodeGe

[libcxx] r263246 - Revert r263036, it's ABI-breaking.

2016-03-11 Thread Nico Weber via cfe-commits
Author: nico Date: Fri Mar 11 09:26:06 2016 New Revision: 263246 URL: http://llvm.org/viewvc/llvm-project?rev=263246&view=rev Log: Revert r263036, it's ABI-breaking. Modified: libcxx/trunk/include/string libcxx/trunk/test/std/strings/basic.string/string.cons/substr.pass.cpp libcxx/tru

Re: [libcxx] r263036 - Implement LWG#2583: There is no way to supply an allocator for basic_string(str, pos)

2016-03-11 Thread Nico Weber via cfe-commits
I reverted this in 263246 for now. I think the right fix is just to add _LIBCPP_INLINE_VISIBILITY to the new constructor, but I'm not 100% sure. On Thu, Mar 10, 2016 at 10:21 AM, Nico Weber wrote: > I think this is ABI-breaking. On OS X, new libc++ headers must work with > old system libc++.dyli

Re: r263299 - Add fix-it for format-security warnings.

2016-03-11 Thread Nico Weber via cfe-commits
I think http://clang.llvm.org/docs/InternalsManual.html#fix-it-hints says that if a fixit is on a warning, then clang should process the code as if the fixit had been applied. That's not the case here, so I think the fixit should be on a note instead. On Fri, Mar 11, 2016 at 4:55 PM, Bob Wilson vi

r263344 - clang-cl: Add a test for the interaction of /Yc and /showIncludes.

2016-03-12 Thread Nico Weber via cfe-commits
Author: nico Date: Sat Mar 12 13:55:59 2016 New Revision: 263344 URL: http://llvm.org/viewvc/llvm-project?rev=263344&view=rev Log: clang-cl: Add a test for the interaction of /Yc and /showIncludes. We almost get this right, but not completely (see FIXME). It looks like /FI headers generally aren

r263352 - clang-cl: Add /Yc argument to /showIncludes output.

2016-03-12 Thread Nico Weber via cfe-commits
Author: nico Date: Sat Mar 12 20:44:13 2016 New Revision: 263352 URL: http://llvm.org/viewvc/llvm-project?rev=263352&view=rev Log: clang-cl: Add /Yc argument to /showIncludes output. To make this work, delay printing of ExtraDeps in HeaderIncludesCallback a bit, so that it happens after CompilerI

r263353 - Make test a bit stricter to check not just the file basename is printed.

2016-03-12 Thread Nico Weber via cfe-commits
Author: nico Date: Sat Mar 12 20:48:51 2016 New Revision: 263353 URL: http://llvm.org/viewvc/llvm-project?rev=263353&view=rev Log: Make test a bit stricter to check not just the file basename is printed. Modified: cfe/trunk/test/Driver/cl-pch-showincludes.cpp Modified: cfe/trunk/test/Driver/

r263355 - Also test that the pch file is not printed in /showIncludes

2016-03-12 Thread Nico Weber via cfe-commits
Author: nico Date: Sat Mar 12 21:04:46 2016 New Revision: 263355 URL: http://llvm.org/viewvc/llvm-project?rev=263355&view=rev Log: Also test that the pch file is not printed in /showIncludes Modified: cfe/trunk/test/Driver/cl-pch-showincludes.cpp Modified: cfe/trunk/test/Driver/cl-pch-showin

Re: r188037 - clang-cl: Support /showIncludes

2016-03-12 Thread Nico Weber via cfe-commits
On Thu, Aug 8, 2013 at 8:32 PM, Hans Wennborg wrote: > Author: hans > Date: Thu Aug 8 19:32:23 2013 > New Revision: 188037 > > URL: http://llvm.org/viewvc/llvm-project?rev=188037&view=rev > Log: > clang-cl: Support /showIncludes > > This option prints information about #included files to stderr.

r263400 - Try to get cl-pch-showincludes passing on AArch64 bots.

2016-03-13 Thread Nico Weber via cfe-commits
Author: nico Date: Sun Mar 13 17:26:26 2016 New Revision: 263400 URL: http://llvm.org/viewvc/llvm-project?rev=263400&view=rev Log: Try to get cl-pch-showincludes passing on AArch64 bots. Modified: cfe/trunk/test/Driver/cl-pch-showincludes.cpp Modified: cfe/trunk/test/Driver/cl-pch-showinclud

Re: r263344 - clang-cl: Add a test for the interaction of /Yc and /showIncludes.

2016-03-13 Thread Nico Weber via cfe-commits
ake a look. On Sun, Mar 13, 2016 at 5:26 AM, Renato Golin via cfe-commits < cfe-commits@lists.llvm.org> wrote: > On 13 March 2016 at 02:56, Nico Weber via cfe-commits > wrote: > > Author: nico > > Date: Sat Mar 12 13:55:59 2016 > > New Revision: 263344 > > > &g

r263920 - clang-cl: Add a comment about /Oy- (see r245913).

2016-03-20 Thread Nico Weber via cfe-commits
Author: nico Date: Sun Mar 20 21:48:05 2016 New Revision: 263920 URL: http://llvm.org/viewvc/llvm-project?rev=263920&view=rev Log: clang-cl: Add a comment about /Oy- (see r245913). Modified: cfe/trunk/include/clang/Driver/CLCompatOptions.td Modified: cfe/trunk/include/clang/Driver/CLCompatOp

r263953 - clang-cl: Move /FC from "Unsupported" to "Ignored" list.

2016-03-21 Thread Nico Weber via cfe-commits
Author: nico Date: Mon Mar 21 12:19:31 2016 New Revision: 263953 URL: http://llvm.org/viewvc/llvm-project?rev=263953&view=rev Log: clang-cl: Move /FC from "Unsupported" to "Ignored" list. /FC affects if diagnostics print with full paths and if __FILE__ expands with a full path. clang-cl does bot

r263974 - clang-cl: With -fmsc-version=1900, use MSVS2015 diag formatting.

2016-03-21 Thread Nico Weber via cfe-commits
Author: nico Date: Mon Mar 21 14:44:18 2016 New Revision: 263974 URL: http://llvm.org/viewvc/llvm-project?rev=263974&view=rev Log: clang-cl: With -fmsc-version=1900, use MSVS2015 diag formatting. Modified: cfe/trunk/lib/Driver/Tools.cpp cfe/trunk/lib/Frontend/TextDiagnostic.cpp cfe/tr

Re: r263974 - clang-cl: With -fmsc-version=1900, use MSVS2015 diag formatting.

2016-03-21 Thread Nico Weber via cfe-commits
and then we default to the 2013 behavior. ...bleh, I was just running `svn commit` with a fix, but got a conflict. Seems like somewhat reverted the change at the same time I was fixing. Will try again some other time. > > On Mon, Mar 21, 2016 at 12:44 PM, Nico Weber via cfe-commits >

Re: r263974 - clang-cl: With -fmsc-version=1900, use MSVS2015 diag formatting.

2016-03-21 Thread Nico Weber via cfe-commits
t reverted the change at the same time I was fixing. Will > try again some other time. > To be clear, the "bleh" here was directed at myself. It's always ok to revert changes that break stuff, and it's entirely on me that I didn't fix this earlier. So thanks for the r

[PATCH] D18392: clang-cl: Don't warn about /Oy- being unused in 64-bit builds.

2016-03-23 Thread Nico Weber via cfe-commits
thakis created this revision. thakis added reviewers: hans, rnk. thakis added a subscriber: cfe-commits. http://reviews.llvm.org/D18392 Files: lib/Driver/MSVCToolChain.cpp test/Driver/cl-options.c Index: test/Driver/cl-options.c ===

Re: [PATCH] D18392: clang-cl: Don't warn about /Oy- being unused in 64-bit builds.

2016-03-23 Thread Nico Weber via cfe-commits
thakis closed this revision. thakis added a comment. r264163, thanks! http://reviews.llvm.org/D18392 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

r264163 - clang-cl: Don't warn about /Oy- being unused in 64-bit builds.

2016-03-23 Thread Nico Weber via cfe-commits
Author: nico Date: Wed Mar 23 10:37:41 2016 New Revision: 264163 URL: http://llvm.org/viewvc/llvm-project?rev=264163&view=rev Log: clang-cl: Don't warn about /Oy- being unused in 64-bit builds. http://reviews.llvm.org/D18392 Modified: cfe/trunk/lib/Driver/MSVCToolChain.cpp cfe/trunk/test

[PATCH] D18401: clang-cl: Include /FI headers in /showIncludes output.

2016-03-23 Thread Nico Weber via cfe-commits
thakis created this revision. thakis added a reviewer: hans. thakis added a subscriber: cfe-commits. `-H` in gcc mode doesn't print `-include` headers, but they are included in depfiles written by MMD and friends. Since `/showIncludes` is what's used instead of depfiles, printing `/FI` there see

Re: [PATCH] D18401: clang-cl: Include /FI headers in /showIncludes output.

2016-03-23 Thread Nico Weber via cfe-commits
thakis added a comment. On second thought, and after looking at -E output with -include and gch files, and at CC_PRINT_HEADERS behavior (it prints but doesn't indent), I think I like the alternative implementation I'm mentioning better. Let me make that change. http://reviews.llvm.org/D18401

Re: [PATCH] D18401: clang-cl: Include /FI headers in /showIncludes output.

2016-03-23 Thread Nico Weber via cfe-commits
thakis updated the summary for this revision. thakis updated this revision to Diff 51442. http://reviews.llvm.org/D18401 Files: lib/Frontend/CompilerInstance.cpp lib/Frontend/HeaderIncludeGen.cpp lib/Frontend/InitPreprocessor.cpp test/Driver/cl-pch-showincludes.cpp test/Frontend/print-h

Re: [PATCH] D18401: clang-cl: Include /FI headers in /showIncludes output.

2016-03-23 Thread Nico Weber via cfe-commits
thakis updated this revision to Diff 51448. thakis marked 2 inline comments as done. thakis added a comment. Thanks! All done. http://reviews.llvm.org/D18401 Files: lib/Frontend/CompilerInstance.cpp lib/Frontend/HeaderIncludeGen.cpp lib/Frontend/InitPreprocessor.cpp test/Driver/cl-pch-s

r264174 - clang-cl: Include /FI headers in /showIncludes output.

2016-03-23 Thread Nico Weber via cfe-commits
Author: nico Date: Wed Mar 23 13:00:22 2016 New Revision: 264174 URL: http://llvm.org/viewvc/llvm-project?rev=264174&view=rev Log: clang-cl: Include /FI headers in /showIncludes output. -H in gcc mode doesn't print -include headers, but they are included in depfiles written by MMD and friends. Si

Re: [PATCH] D18401: clang-cl: Include /FI headers in /showIncludes output.

2016-03-23 Thread Nico Weber via cfe-commits
thakis closed this revision. thakis added a comment. …and landed in r264174. http://reviews.llvm.org/D18401 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Re: [PATCH] D18271: Avoid -Wshadow warnings about constructor parameters named after fields

2016-03-23 Thread Nico Weber via cfe-commits
thakis added a subscriber: thakis. thakis added a comment. FWIW we don't currently use this warning on Chromium because it's way to noisy. So something like this looks like a great change to me. dblaikie, are you aware of any codebases that use this warning in its current form? http://reviews

r264178 - clang-cl: Add more tests for the interaction of /FI and /Yc /Yu.

2016-03-23 Thread Nico Weber via cfe-commits
Author: nico Date: Wed Mar 23 13:17:02 2016 New Revision: 264178 URL: http://llvm.org/viewvc/llvm-project?rev=264178&view=rev Log: clang-cl: Add more tests for the interaction of /FI and /Yc /Yu. Most things even work; see the included FIXMEs for things that need polishing. Also don't warn about

Re: [PATCH] D18271: Avoid -Wshadow warnings about constructor parameters named after fields

2016-03-23 Thread Nico Weber via cfe-commits
thakis added a comment. In http://reviews.llvm.org/D18271#381758, @bcraig wrote: > In http://reviews.llvm.org/D18271#381744, @thakis wrote: > > > FWIW we don't currently use this warning on Chromium because it's way to > > noisy. So something like this looks like a great change to me. > > > > db

r264182 - clang-cl: Fix remaining bugs in interaction of /Yc and /FI /showIncludes.

2016-03-23 Thread Nico Weber via cfe-commits
Author: nico Date: Wed Mar 23 13:46:57 2016 New Revision: 264182 URL: http://llvm.org/viewvc/llvm-project?rev=264182&view=rev Log: clang-cl: Fix remaining bugs in interaction of /Yc and /FI /showIncludes. Instead of putting the /Yc header into ExtraDeps, give DependencyOutputOptions a dedicated f

r264210 - clang-cl: With -fmsc-version=1900, use MSVS2015 diag formatting.

2016-03-23 Thread Nico Weber via cfe-commits
Author: nico Date: Wed Mar 23 17:57:55 2016 New Revision: 264210 URL: http://llvm.org/viewvc/llvm-project?rev=264210&view=rev Log: clang-cl: With -fmsc-version=1900, use MSVS2015 diag formatting. Remove tests that have neither a triple nor an explicit -fmsc-version flag, since in the absence of a

r264211 - Fix typo in test from r264210, sigh.

2016-03-23 Thread Nico Weber via cfe-commits
Author: nico Date: Wed Mar 23 18:01:38 2016 New Revision: 264211 URL: http://llvm.org/viewvc/llvm-project?rev=264211&view=rev Log: Fix typo in test from r264210, sigh. (The test passes both with and without this change, but it's confusing without it.) Modified: cfe/trunk/test/Misc/diag-forma

r264216 - clang-cl: Add a FIXME for bumping the default msc version.

2016-03-23 Thread Nico Weber via cfe-commits
Author: nico Date: Wed Mar 23 18:26:59 2016 New Revision: 264216 URL: http://llvm.org/viewvc/llvm-project?rev=264216&view=rev Log: clang-cl: Add a FIXME for bumping the default msc version. Modified: cfe/trunk/lib/Driver/Tools.cpp Modified: cfe/trunk/lib/Driver/Tools.cpp URL: http://llvm.or

Re: r264277 - Added support for different VFSs in format::getStyle. Disable platform-related test case for MS compilers to avoid breaking buildbot.

2016-03-24 Thread Nico Weber via cfe-commits
Won't this still be broken in mingw (GCC, but on Windows)? On Mar 24, 2016 9:28 AM, "Eric Liu via cfe-commits" < cfe-commits@lists.llvm.org> wrote: > Author: ioeric > Date: Thu Mar 24 08:22:42 2016 > New Revision: 264277 > > URL: http://llvm.org/viewvc/llvm-project?rev=264277&view=rev > Log: > Add

r264582 - Reduce size of DefinitionData from 120 to 96 bytes on Windows.

2016-03-28 Thread Nico Weber via cfe-commits
Author: nico Date: Mon Mar 28 09:55:24 2016 New Revision: 264582 URL: http://llvm.org/viewvc/llvm-project?rev=264582&view=rev Log: Reduce size of DefinitionData from 120 to 96 bytes on Windows. In the Microsoft ABI, only bitfields with identical types get packed together, so use unsigned consiste

r264597 - Windows: Shrink sizeof(MacroInfo) from 256 to 248, MacroDirective 24 to 16

2016-03-28 Thread Nico Weber via cfe-commits
Author: nico Date: Mon Mar 28 12:28:06 2016 New Revision: 264597 URL: http://llvm.org/viewvc/llvm-project?rev=264597&view=rev Log: Windows: Shrink sizeof(MacroInfo) from 256 to 248, MacroDirective 24 to 16 In the Microsoft ABI, only bitfields with identical types get packed together, so use consi

r256595 - Emit a -Wmicrosoft warning when pasting /##/ into a comment token in MS mode.

2015-12-29 Thread Nico Weber via cfe-commits
Author: nico Date: Tue Dec 29 17:06:17 2015 New Revision: 256595 URL: http://llvm.org/viewvc/llvm-project?rev=256595&view=rev Log: Emit a -Wmicrosoft warning when pasting /##/ into a comment token in MS mode. Modified: cfe/trunk/include/clang/Basic/DiagnosticGroups.td cfe/trunk/include/cl

r256596 - Emit a -Wmicrosoft warning when treating ^Z as EOF in MS mode.

2015-12-29 Thread Nico Weber via cfe-commits
Author: nico Date: Tue Dec 29 17:17:27 2015 New Revision: 256596 URL: http://llvm.org/viewvc/llvm-project?rev=256596&view=rev Log: Emit a -Wmicrosoft warning when treating ^Z as EOF in MS mode. Modified: cfe/trunk/include/clang/Basic/DiagnosticGroups.td cfe/trunk/include/clang/Basic/Diagn

Re: r256595 - Emit a -Wmicrosoft warning when pasting /##/ into a comment token in MS mode.

2015-12-29 Thread Nico Weber via cfe-commits
On Tue, Dec 29, 2015 at 6:16 PM, Richard Smith via cfe-commits < cfe-commits@lists.llvm.org> wrote: > On Tue, Dec 29, 2015 at 3:06 PM, Nico Weber via cfe-commits < > cfe-commits@lists.llvm.org> wrote: > >> Author: nico >> Date: Tue Dec 29 17:06:17 2015 >&g

r256599 - Fix test from r256596

2015-12-29 Thread Nico Weber via cfe-commits
Author: nico Date: Tue Dec 29 17:23:38 2015 New Revision: 256599 URL: http://llvm.org/viewvc/llvm-project?rev=256599&view=rev Log: Fix test from r256596 Modified: cfe/trunk/test/Lexer/msdos-cpm-eof.c Modified: cfe/trunk/test/Lexer/msdos-cpm-eof.c URL: http://llvm.org/viewvc/llvm-project/cfe

r256600 - Address review comment on r256595

2015-12-29 Thread Nico Weber via cfe-commits
Author: nico Date: Tue Dec 29 17:30:42 2015 New Revision: 256600 URL: http://llvm.org/viewvc/llvm-project?rev=256600&view=rev Log: Address review comment on r256595 Modified: cfe/trunk/include/clang/Basic/DiagnosticLexKinds.td Modified: cfe/trunk/include/clang/Basic/DiagnosticLexKinds.td URL

Re: r256595 - Emit a -Wmicrosoft warning when pasting /##/ into a comment token in MS mode.

2015-12-29 Thread Nico Weber via cfe-commits
On Tue, Dec 29, 2015 at 6:28 PM, Richard Smith wrote: > On Tue, Dec 29, 2015 at 3:23 PM, Nico Weber wrote: > >> On Tue, Dec 29, 2015 at 6:16 PM, Richard Smith via cfe-commits < >> cfe-commits@lists.llvm.org> wrote: >> >>> On Tue, Dec 29, 2015 at 3:06 P

Re: [libcxx] r250319 - [libcxx] Make it drastically simpler to link libc++.

2015-12-30 Thread Nico Weber via cfe-commits
gen_link_script.py is missing a license header. On Thu, Oct 22, 2015 at 5:39 PM, Alexey Samsonov via cfe-commits < cfe-commits@lists.llvm.org> wrote: > Seems to work now, thanks for the quick fix! > > On Thu, Oct 22, 2015 at 1:57 PM, Eric Fiselier wrote: > >> Hi Alexey, >> >> Please confirm that

Re: [libcxx] r249798 - Split out of .

2015-12-30 Thread Nico Weber via cfe-commits
One problem with this patch: stdio.h can be used in .c files, and when building .c files with -gnu99 -pedantic, clang will complain about // comments. Not only does this stdio.h have // comments, it also pulls in some libc++ headers (__config) that have // comments as well. I suppose all the commen

Re: [libcxx] r249798 - Split out of .

2015-12-31 Thread Nico Weber via cfe-commits
On Wed, Dec 30, 2015 at 8:28 PM, Richard Smith wrote: > On Wed, Dec 30, 2015 at 1:17 PM, Nico Weber wrote: > >> One problem with this patch: stdio.h can be used in .c files, and when >> building .c files with -gnu99 -pedantic, >> > > Do you mean -std=gnu89? > Sorry, I meant -std=gnu99 -pedantic

Re: [libcxx] r249798 - Split out of .

2015-12-31 Thread Nico Weber via cfe-commits
On Thu, Dec 31, 2015 at 10:52 AM, Nico Weber wrote: > On Wed, Dec 30, 2015 at 8:28 PM, Richard Smith > wrote: > >> On Wed, Dec 30, 2015 at 1:17 PM, Nico Weber wrote: >> >>> One problem with this patch: stdio.h can be used in .c files, and when >>> building .c files with -gnu99 -pedantic, >>> >>

Re: r256596 - Emit a -Wmicrosoft warning when treating ^Z as EOF in MS mode.

2016-01-04 Thread Nico Weber via cfe-commits
On Wed, Dec 30, 2015 at 12:28 PM, Joerg Sonnenberger via cfe-commits < cfe-commits@lists.llvm.org> wrote: > On Tue, Dec 29, 2015 at 11:17:28PM -0000, Nico Weber via cfe-commits wrote: > > Author: nico > > Date: Tue Dec 29 17:17:27 2015 > > New Revision: 256596 > >

[PATCH] D15866: Warn when using `defined` in a macro definition.

2016-01-04 Thread Nico Weber via cfe-commits
thakis created this revision. thakis added a reviewer: rsmith. thakis added a subscriber: cfe-commits. As far as I can tell, doing #define HAVE_FOO_BAR defined(FOO) && defined(BAR) #if HAVE_FOO ... #endif has undefined behavior per [cpp.cond]p4. In practice, it can have different

Re: [libcxx] r249798 - Split out of .

2016-01-05 Thread Nico Weber via cfe-commits
On Wed, Dec 30, 2015 at 8:28 PM, Richard Smith wrote: > On Wed, Dec 30, 2015 at 1:17 PM, Nico Weber wrote: > >> One problem with this patch: stdio.h can be used in .c files, and when >> building .c files with -gnu99 -pedantic, >> > > Do you mean -std=gnu89? > > >> clang will complain about // co

[PATCH] D15928: Add -Wfor-loop-analysis to -Wall.

2016-01-06 Thread Nico Weber via cfe-commits
thakis created this revision. thakis added a reviewer: rtrieu. thakis added a subscriber: cfe-commits. Every time I try this warning, it finds a few bugs (I think about 4 total in Chromium so far), with 0 false positives. I couldn't measure any build performance degradation when turning it on; I

r256960 - Fix -Wdocumentation warning after r256933

2016-01-06 Thread Nico Weber via cfe-commits
Author: nico Date: Wed Jan 6 13:13:49 2016 New Revision: 256960 URL: http://llvm.org/viewvc/llvm-project?rev=256960&view=rev Log: Fix -Wdocumentation warning after r256933 Modified: cfe/trunk/lib/CodeGen/CGOpenMPRuntime.h Modified: cfe/trunk/lib/CodeGen/CGOpenMPRuntime.h URL: http://llvm.o

r256975 - Add -Wfor-loop-analysis to -Wall.

2016-01-06 Thread Nico Weber via cfe-commits
Author: nico Date: Wed Jan 6 14:55:00 2016 New Revision: 256975 URL: http://llvm.org/viewvc/llvm-project?rev=256975&view=rev Log: Add -Wfor-loop-analysis to -Wall. This warning seems to have 0 false positives and some true positives in practice, without a measurable compile time cost. It should

Re: [PATCH] D15928: Add -Wfor-loop-analysis to -Wall.

2016-01-06 Thread Nico Weber via cfe-commits
thakis closed this revision. thakis added a comment. r256975, thanks! http://reviews.llvm.org/D15928 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Re: [libcxx] r255177 - Remove visibility attributes from out-of-class method definitions in iostreams.

2016-01-08 Thread Nico Weber via cfe-commits
On OS X 10.8, __ZNSt3__115basic_streambufIcNS_11char_traitsIcEEE5sputcEc (and others) are a hidden symbol in libc++.1.dylib. This means: * If I use streambuf::sputc() and link against the 10.8 SDK, and the compiler decides to not inline the call, I will get linker errors. * If I do the same with t

Re: [libcxx] r255177 - Remove visibility attributes from out-of-class method definitions in iostreams.

2016-01-08 Thread Nico Weber via cfe-commits
Thank you! On Fri, Jan 8, 2016 at 2:24 PM, Evgenii Stepanov wrote: > Reverted in r257193. > > On Fri, Jan 8, 2016 at 11:12 AM, Evgenii Stepanov > wrote: > > On Fri, Jan 8, 2016 at 11:02 AM, Duncan P. N. Exon Smith > > wrote: > >> > >>> On 2016

[PATCH] D16087: Add some overview doxygen comments to lib/Format.

2016-01-11 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. It always takes me a while to understand how clang-format's pieces fit together -- hopefully this will save me some time the next time I need it. http://revi

[PATCH] D16206: Make -Wdelete-non-virtual-dtor warn on explicit `a->~A()` dtor calls too.

2016-01-14 Thread Nico Weber via cfe-commits
thakis created this revision. thakis added a reviewer: rtrieu. thakis added a subscriber: cfe-commits. -Wdelete-non-virtual-dtor warns if A is a type with virtual functions but without virtual dtor has its constructor called via `delete a`. This makes the warning also fire if the dtor is called

Re: [PATCH] D15866: Warn when using `defined` in a macro definition.

2016-01-14 Thread Nico Weber via cfe-commits
thakis updated this revision to Diff 44958. thakis added a comment. For function-type macros, make the warning only show up with -pedantic http://reviews.llvm.org/D15866 Files: include/clang/Basic/DiagnosticGroups.td include/clang/Basic/DiagnosticLexKinds.td lib/Lex/PPExpressions.cpp te

Re: [PATCH] D15866: Warn when using `defined` in a macro definition.

2016-01-14 Thread Nico Weber via cfe-commits
Thanks for the review! I tweaked it a bit so that this only warns on function-type macros in -pedantic mode. That way, the warning can even be used in practice :-) On Thu, Jan 14, 2016 at 10:33 PM, Nico Weber wrote: > thakis updated this revision to Diff 44958. > thakis added a comment. > > For

Re: [PATCH] D15866: Warn when using `defined` in a macro definition.

2016-01-14 Thread Nico Weber via cfe-commits
thakis updated this revision to Diff 44959. thakis added a comment. Address review comment. http://reviews.llvm.org/D15866 Files: include/clang/Basic/DiagnosticGroups.td include/clang/Basic/DiagnosticLexKinds.td lib/Lex/PPExpressions.cpp test/Lexer/cxx-features.cpp test/Preprocessor/e

Re: [PATCH] D15866: Warn when using `defined` in a macro definition.

2016-01-14 Thread Nico Weber via cfe-commits
thakis marked an inline comment as done. thakis added a comment. Also addressed your comment and added a test for that. http://reviews.llvm.org/D15866 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/list

Re: [libcxxabi] r256323 - Add new tests for throwing incomplete pointer types

2016-01-15 Thread Nico Weber via cfe-commits
This test fails on OS X for me: Testing: 0 .. 10.. 20.. 30.. 40.. 50.. 60.. 70.. 80.. 90.. FAIL: libc++abi :: incomplete_type.sh.cpp (29529 of 29545) TEST 'libc++abi :: incomplete_type.sh.cpp' FAILED Script: -- /Applications/Xcode.app/Contents/Developer/T

Re: [libcxxabi] r256323 - Add new tests for throwing incomplete pointer types

2016-01-15 Thread Nico Weber via cfe-commits
I reverted this and 322 for now in 257896. On Fri, Jan 15, 2016 at 10:36 AM, Nico Weber wrote: > This test fails on OS X for me: > > > Testing: 0 .. 10.. 20.. 30.. 40.. 50.. 60.. 70.. 80.. 90.. > FAIL: libc++abi :: incomplete_type.sh.cpp (29529 of 29545) > TEST 'libc++abi ::

[libcxxabi] r257896 - Revert r256322 (and follow-up 256323), the test it added does not pass on OS X.

2016-01-15 Thread Nico Weber via cfe-commits
Author: nico Date: Fri Jan 15 09:44:14 2016 New Revision: 257896 URL: http://llvm.org/viewvc/llvm-project?rev=257896&view=rev Log: Revert r256322 (and follow-up 256323), the test it added does not pass on OS X. Removed: libcxxabi/trunk/test/incomplete_type.sh.cpp Modified: libcxxabi/trunk

Re: [PATCH] D15363: [UBSan] Implement runtime suppressions (PR25066).

2016-01-15 Thread Nico Weber via cfe-commits
thakis added a comment. This test is failing again when it runs as part of llvm's tests when I build a clang package for chromium. It passes when I run it in my regular llvm build directory (where I ran it to test my "fix") -- this explains why the fix didn't work when I tried it in the chrome cas

Re: [PATCH] D15363: [UBSan] Implement runtime suppressions (PR25066).

2016-01-15 Thread Nico Weber via cfe-commits
thakis added a comment. In http://reviews.llvm.org/D15363#321941, @samsonov wrote: > Interesting. Do we run test/asan/TestCases/suppressions-interceptor.cc on > Windows? Seems so: I don't see an XFAIL there, and it also uses > suppressions, but with single quote, followed by double quote: > > %

r257939 - Make -Wdelete-non-virtual-dtor warn on explicit `a->~A()` dtor calls too.

2016-01-15 Thread Nico Weber via cfe-commits
Author: nico Date: Fri Jan 15 15:45:31 2016 New Revision: 257939 URL: http://llvm.org/viewvc/llvm-project?rev=257939&view=rev Log: Make -Wdelete-non-virtual-dtor warn on explicit `a->~A()` dtor calls too. -Wdelete-non-virtual-dtor warns if A is a type with virtual functions but without virtual dt

Re: [PATCH] D16206: Make -Wdelete-non-virtual-dtor warn on explicit `a->~A()` dtor calls too.

2016-01-15 Thread Nico Weber via cfe-commits
thakis closed this revision. thakis added a comment. r257939, thanks! http://reviews.llvm.org/D16206 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Re: [PATCH] D15363: [UBSan] Implement runtime suppressions (PR25066).

2016-01-15 Thread Nico Weber via cfe-commits
thakis added a comment. I figured out the difference. If I set up my environment by running `setenv.cmd` in the windows sdk, the test fails. If I set it up by running `vcvarsall.bat`, the test succeeds. Not clear yet why. But with the setenv.cmd setup, the asan suppression test fails too. Rep

Re: [PATCH] D15363: [UBSan] Implement runtime suppressions (PR25066).

2016-01-15 Thread Nico Weber via cfe-commits
thakis added a comment. I re-disabled the test in 257952. Repository: rL LLVM http://reviews.llvm.org/D15363 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

r258128 - Add -Wexpansion-to-undefined: warn when using `defined` in a macro definition.

2016-01-19 Thread Nico Weber via cfe-commits
Author: nico Date: Tue Jan 19 09:15:31 2016 New Revision: 258128 URL: http://llvm.org/viewvc/llvm-project?rev=258128&view=rev Log: Add -Wexpansion-to-undefined: warn when using `defined` in a macro definition. [cpp.cond]p4: Prior to evaluation, macro invocations in the list of preprocessing t

Re: [PATCH] D15866: Warn when using `defined` in a macro definition.

2016-01-19 Thread Nico Weber via cfe-commits
thakis closed this revision. thakis added a comment. r258128 http://reviews.llvm.org/D15866 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

r258131 - Rename -Wexpansion-to-undefined to -Wexpansion-to-defined.

2016-01-19 Thread Nico Weber via cfe-commits
Author: nico Date: Tue Jan 19 09:32:55 2016 New Revision: 258131 URL: http://llvm.org/viewvc/llvm-project?rev=258131&view=rev Log: Rename -Wexpansion-to-undefined to -Wexpansion-to-defined. Modified: cfe/trunk/include/clang/Basic/DiagnosticGroups.td cfe/trunk/include/clang/Basic/Diagnosti

Re: r258128 - Add -Wexpansion-to-undefined: warn when using `defined` in a macro definition.

2016-01-19 Thread Nico Weber via cfe-commits
ng our internal builds (we build with -Werror). > > I fixed one file that was producing this, but there are several that have > the same problem (e.g., gtest-port.h). Could you fix them or rollback? > > > Thanks. Diego. > > On Tue, Jan 19, 2016 at 10:15 AM, Nico Weber via c

Re: r258128 - Add -Wexpansion-to-undefined: warn when using `defined` in a macro definition.

2016-01-19 Thread Nico Weber via cfe-commits
I mean you could pass a -Wno flag. It's undefined behavior that's actually causing bugs in practice; it should probably be on by default. On Jan 19, 2016 3:38 PM, "Diego Novillo" wrote: > > > On Tue, Jan 19, 2016 at 3:30 PM, Nico Weber wrote: > >> I'll take a look. If it's urgent it's also possi

Re: r258128 - Add -Wexpansion-to-undefined: warn when using `defined` in a macro definition.

2016-01-19 Thread Nico Weber via cfe-commits
Back at my desk now, looking. On Tue, Jan 19, 2016 at 3:44 PM, Diego Novillo wrote: > > > On Tue, Jan 19, 2016 at 3:43 PM, Nico Weber wrote: > >> I mean you could pass a -Wno flag. It's undefined behavior that's >> actually causing bugs in practice; it should probably be on by default. >> > > B

Re: r258128 - Add -Wexpansion-to-undefined: warn when using `defined` in a macro definition.

2016-01-19 Thread Nico Weber via cfe-commits
r258181 should stop the bleeding. I'll look at fixing the warnings now. On Tue, Jan 19, 2016 at 3:46 PM, Nico Weber wrote: > Back at my desk now, looking. > > On Tue, Jan 19, 2016 at 3:44 PM, Diego Novillo > wrote: > >> >> >> On Tue, Jan 19, 2016 at 3:43 PM, Nico Weber wrote: >> >>> I mean you

Re: r258128 - Add -Wexpansion-to-undefined: warn when using `defined` in a macro definition.

2016-01-19 Thread Nico Weber via cfe-commits
I think I've fixed all warnings by now, and I've reenabled the warning for LLVM builds (in r258210; that commit's commit message links to the individual fixes.) On Tue, Jan 19, 2016 at 3:56 PM, Nico Weber wrote: > r258181 should stop the bleeding. I'll look at fixing the warnings now. > > On Tue

Re: [libcxx] r249798 - Split out of .

2016-01-20 Thread Nico Weber via cfe-commits
Eric, Marshall: another ping. This should be fixed on the 3.8 branch, so it needs to be resolved soon. On Jan 5, 2016 5:25 PM, "Nico Weber" wrote: > On Wed, Dec 30, 2015 at 8:28 PM, Richard Smith > wrote: > >> On Wed, Dec 30, 2015 at 1:17 PM, Nico Weber wrote: >> >>> One problem with this patch

<    9   10   11   12   13   14   15   16   17   >