[PATCH] D13853: clang-format: Treat --sort-includes that #include and #import mean the same thing.

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. clang accepts both #include and #import for includes (the latter having an implicit header guard). Let clang-format interleave both types if --sort-includes

Re: [PATCH] D13853: clang-format: Treat --sort-includes that #include and #import mean the same thing.

2015-10-18 Thread Nico Weber via cfe-commits
thakis added inline comments. Comment at: lib/Format/Format.cpp:1735 @@ -1734,3 +1734,3 @@ llvm::Regex IncludeRegex( - R"(^[\t\ ]*#[\t\ ]*include[^"<]*(["<][^">]*[">]))"); + R"(^[\t\ ]*#[\t\ ]*(import|include)[^"<]*(["<][^">]*[">]))"); SmallVector Matches;

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

2015-10-19 Thread Nico Weber via cfe-commits
thakis closed this revision. thakis added a comment. Landed in r250706 (with rewrapped lines). Thanks! http://reviews.llvm.org/D13852 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

r250706 - clang-format: Use pipes instead of temporary files for most lit tests.

2015-10-19 Thread Nico Weber via cfe-commits
Author: nico Date: Mon Oct 19 11:21:29 2015 New Revision: 250706 URL: http://llvm.org/viewvc/llvm-project?rev=250706&view=rev Log: clang-format: Use pipes instead of temporary files for most lit tests. This makes the format tests look more like most other FileCheck tests in clang. The multiple-i

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

2015-10-19 Thread Nico Weber via cfe-commits
On Mon, Oct 19, 2015 at 4:24 AM, Daniel Jasper wrote: > Hm, seems to me that this is broken either way. If config.h remains first, > that is good, but the main #include is unlikely to remain second. > In practice, the first two lines are a block with two includes: config.h first and the main hea

Re: [PATCH] D13853: clang-format: Teach --sort-includes that #include and #import mean the same thing.

2015-10-21 Thread Nico Weber via cfe-commits
thakis added a comment. djasper: Ping :-) http://reviews.llvm.org/D13853 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

r250909 - clang-format: Teach --sort-includes to interleave #include and #import.

2015-10-21 Thread Nico Weber via cfe-commits
Author: nico Date: Wed Oct 21 12:13:45 2015 New Revision: 250909 URL: http://llvm.org/viewvc/llvm-project?rev=250909&view=rev Log: clang-format: Teach --sort-includes to interleave #include and #import. clang accepts both #include and #import for includes (the latter having an implicit header gua

Re: [PATCH] D13853: clang-format: Teach --sort-includes that #include and #import mean the same thing.

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

[PATCH] D13969: Tweak how -Wunused-value interacts with macros

2015-10-21 Thread Nico Weber via cfe-commits
thakis created this revision. thakis added a reviewer: rsmith. thakis added a subscriber: cfe-commits. 1. Make the warning more strict in C mode. r172696 added code to suppress warnings from macro expansions in system headers, which checks `SourceMgr.isMacroBodyExpansion(E->IgnoreParens()->getEx

Re: [PATCH] D13969: Tweak how -Wunused-value interacts with macros

2015-10-21 Thread Nico Weber via cfe-commits
thakis added a comment. Sorry about all the emails, I didn't realize that editing the description would send an update every time. Looks like phab's markup language doesn't support code blocks in lists (https://secure.phabricator.com/T4939). The description looks ok in email but broken on phab.

Re: [PATCH] D13969: Tweak how -Wunused-value interacts with macros

2015-10-26 Thread Nico Weber via cfe-commits
thakis added a reviewer: rnk. thakis added a comment. rnk: Can you look at this if Richard is still away doing committee thing? http://reviews.llvm.org/D13969 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mail

r251441 - Tweak how -Wunused-value interacts with macros

2015-10-27 Thread Nico Weber via cfe-commits
Author: nico Date: Tue Oct 27 14:47:40 2015 New Revision: 251441 URL: http://llvm.org/viewvc/llvm-project?rev=251441&view=rev Log: Tweak how -Wunused-value interacts with macros 1. Make the warning more strict in C mode. r172696 added code to suppress warnings from macro expansions in system h

Re: [PATCH] D13969: Tweak how -Wunused-value interacts with macros

2015-10-27 Thread Nico Weber via cfe-commits
thakis closed this revision. thakis marked an inline comment as done. thakis added a comment. Done and landed in r251441, thanks! http://reviews.llvm.org/D13969 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/ma

r251650 - Suppress uninteresting output from crash-recovery-modules.m

2015-10-29 Thread Nico Weber via cfe-commits
Author: nico Date: Thu Oct 29 15:43:31 2015 New Revision: 251650 URL: http://llvm.org/viewvc/llvm-project?rev=251650&view=rev Log: Suppress uninteresting output from crash-recovery-modules.m No behavior change, but it makes this test a bit easier to debug when it fails. Modified: cfe/trunk/t

r251653 - Mark InternalDebugOpt driver options as CoreOptions.

2015-10-29 Thread Nico Weber via cfe-commits
Author: nico Date: Thu Oct 29 15:53:49 2015 New Revision: 251653 URL: http://llvm.org/viewvc/llvm-project?rev=251653&view=rev Log: Mark InternalDebugOpt driver options as CoreOptions. Mostly has the effect of making -ccc-print-phases usable from clang-cl. Modified: cfe/trunk/include/clang/Dr

Re: r251738 - [MSVC Compat] Permit conversions from pointer-to-function to pointer-to-object iff -fms-compatibility

2015-10-31 Thread Nico Weber via cfe-commits
I think we more commonly say "function pointer": $ grep 'pointer-to-function' include/clang/Basic/Diagnostic*td | wc -l 3 $ grep 'function pointer' include/clang/Basic/Diagnostic*td | wc -l 7 For "object pointer" and "pointer-to-object" it's currently a tie. For "member pointer" and

Re: r251738 - [MSVC Compat] Permit conversions from pointer-to-function to pointer-to-object iff -fms-compatibility

2015-11-01 Thread Nico Weber via cfe-commits
On Sun, Nov 1, 2015 at 12:01 AM, James Dennett wrote: > On Sat, Oct 31, 2015 at 5:50 PM, Nico Weber via cfe-commits < > cfe-commits@lists.llvm.org> wrote: > >> I think we more commonly say "function pointer": >> >> $ grep 'pointer-to-fun

Re: r251041 - Define weak and __weak to mean ARC-style weak references, even in MRC.

2015-11-02 Thread Nico Weber via cfe-commits
On Fri, Oct 30, 2015 at 5:55 PM, John McCall wrote: > > On Oct 30, 2015, at 5:39 PM, Nico Weber wrote: > > Hi John, > > > > this breaks programs that use __weak and target 10.6, like so: > > > > $ cat test.m > > #import > > @interface I : NSObject { > > __weak NSObject* foo_; > > } > > - (NSO

Re: r251041 - Define weak and __weak to mean ARC-style weak references, even in MRC.

2015-11-02 Thread Nico Weber via cfe-commits
On Mon, Nov 2, 2015 at 3:00 PM, John McCall wrote: > On Nov 2, 2015, at 2:53 PM, Nico Weber wrote: > On Fri, Oct 30, 2015 at 5:55 PM, John McCall wrote: > >> > On Oct 30, 2015, at 5:39 PM, Nico Weber wrote: >> > Hi John, >> > >> > this breaks programs that use __weak and target 10.6, like so:

Re: [libcxx] r249738 - Split out of .

2016-07-27 Thread Nico Weber via cfe-commits
I played with modules a bit today, and as far as I can tell this is still broken. If this proves difficult to fix, should this change be reverted for now? It breaks using modules on Darwin. On Sun, Mar 13, 2016 at 12:53 AM, Adrian Prantl via cfe-commits < cfe-commits@lists.llvm.org> wrote: > > On

Re: r274991 - [clang-cl] Add support for /Zd

2016-07-29 Thread Nico Weber via cfe-commits
On Thu, Jul 28, 2016 at 9:03 PM, Hans Wennborg wrote: > Sorry, I was supposed to chime in here. > > I don't have a strong opinion on this, but I don't think it's a > problem for us to allow the -gline-tables-only spelling in addition to > /Zd. > > It just doesn't seem like a big deal to me. > Do

Re: r277175 - Reapply r277058: "[ObjC] Consider availability of context when emitting availability warnings"

2016-08-01 Thread Nico Weber via cfe-commits
Hi Erik, with this change clangs warns on this program: $ cat test.mm #import @interface AXPlatformNodeCocoa : NSObject @end @implementation AXPlatformNodeCocoa - (NSArray*)accessibilityAttributeNames { NSArray* const kTextfieldAttributes = @[ NSAccessibilityPlaceholderValueAttribute, ];

Re: [PATCH] D23024: [ObjC Availability] Fix false positive of -Wpartial-availability introduced in r277058

2016-08-01 Thread Nico Weber via cfe-commits
thakis accepted this revision. thakis added a comment. This revision is now accepted and ready to land. Thanks for the quick fix! https://reviews.llvm.org/D23024 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/m

Re: r266719 - Warn if function or variable cannot be implicitly instantiated

2016-08-09 Thread Nico Weber via cfe-commits
ler from implicit >>>> instantiation of this method and thus from instantiation of the static >>>> field as well. >>>> >>>> If encapsulation is not an aim, moving template definition into header >>>> seems to be more natural solutio

Re: r278139 - [clang-cl] Make -gline-tables-only imply -gcodeview

2016-08-10 Thread Nico Weber via cfe-commits
Since this flag is new in 3.9, should we merge this there? On Tue, Aug 9, 2016 at 1:23 PM, Reid Kleckner via cfe-commits < cfe-commits@lists.llvm.org> wrote: > Author: rnk > Date: Tue Aug 9 12:23:56 2016 > New Revision: 278139 > > URL: http://llvm.org/viewvc/llvm-project?rev=278139&view=rev > Lo

Re: [PATCH] D16478: Always build a new TypeSourceInfo for function templates with parameters

2016-02-01 Thread Nico Weber via cfe-commits
thakis updated this revision to Diff 46577. thakis added a comment. just return true http://reviews.llvm.org/D16478 Files: lib/Sema/SemaTemplateInstantiate.cpp Index: lib/Sema/SemaTemplateInstantiate.cpp === --- lib/Sema/SemaTem

Re: [PATCH] D16478: Always build a new TypeSourceInfo for function templates with parameters

2016-02-01 Thread Nico Weber via cfe-commits
thakis marked an inline comment as done. Comment at: lib/Sema/SemaTemplateInstantiate.cpp:1519-1521 @@ -1518,5 +1518,5 @@ TypeLoc TL = T->getTypeLoc().IgnoreParens(); if (!TL.getAs()) return false; Ack. http://reviews.llvm.org/D16478 __

Re: [PATCH] D16478: Always build a new TypeSourceInfo for function templates with parameters

2016-02-01 Thread Nico Weber via cfe-commits
thakis updated this revision to Diff 46578. thakis added a comment. restore accidentally dropped test http://reviews.llvm.org/D16478 Files: lib/Sema/SemaTemplateInstantiate.cpp unittests/ASTMatchers/ASTMatchersTest.cpp Index: unittests/ASTMatchers/ASTMatchersTest.cpp ==

r259428 - Always build a new TypeSourceInfo for function templates with parameters

2016-02-01 Thread Nico Weber via cfe-commits
Author: nico Date: Mon Feb 1 16:31:51 2016 New Revision: 259428 URL: http://llvm.org/viewvc/llvm-project?rev=259428&view=rev Log: Always build a new TypeSourceInfo for function templates with parameters RecursiveASTVisitor::TraverseFunctionHelper() traverses a function's ParmVarDecls by going to

Re: [PATCH] D16478: Always build a new TypeSourceInfo for function templates with parameters

2016-02-01 Thread Nico Weber via cfe-commits
thakis closed this revision. thakis added a comment. r259428, thanks! Went with the for-each loop but left the structure as-is -- I find the comments helpful and it's not clear where they should go else. http://reviews.llvm.org/D16478 ___ cfe-commi

Re: [PATCH] D16503: [MSVC Compat] Warn when suppressing a trailing comma in macro args

2016-02-02 Thread Nico Weber via cfe-commits
thakis added a comment. Sorry for the slow response. I was reading http://reviews.llvm.org/D15670 to understand this patch, and I couldn't find anything in that patch that enables this extension only in Microsoft mode. Trying suppressed-comma-msextension.cpp locally, it seems to pass without -f

Re: [PATCH] D16770: [MS] PR26234: Allow typedef redefinition of equally qualified, sized and aligned types in C

2016-02-03 Thread Nico Weber via cfe-commits
thakis added a subscriber: thakis. thakis added a comment. Out of interest, what is this needed for? System headers? http://reviews.llvm.org/D16770 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinf

Re: r259271 - Improve -Wconstant-conversion

2016-02-05 Thread Nico Weber via cfe-commits
Thanks! Maybe it's interesting if I list the instances where this fired in Chromium. * libwebp calls _mm_set1_epi16(33050) (but then is careful to only use unsigned intrinsics with this). There's no version of this function that takes unsigned short, so the only thing to change here was to add a

Re: [PATCH] D16951: [MS ABI] dllimport'd class cannot have constexpr ctors

2016-02-07 Thread Nico Weber via cfe-commits
thakis added a comment. Thanks for jumping on this so quickly! Hans can probably just stamp this, but I lack the background, so I must ask: Comment at: test/SemaCXX/dllimport.cpp:1262 @@ -1261,1 +1261,3 @@ +struct __declspec(dllimport) PR26506_test1 { + virtual ~PR26506_test

Re: r249542 - clang-format: Hopefully fix code blocks in docs.

2016-02-07 Thread Nico Weber via cfe-commits
http://lab.llvm.org:8011/builders/clang-sphinx-docs is still broken: http://lab.llvm.org:8011/builders/clang-sphinx-docs FAILED: cd /home/llvmbb/llvm-build-dir/clang-sphinx-docs/llvm/build/tools/clang/docs && /usr/bin/sphinx-build -b html -d /home/llvmbb/llvm-build-dir/clang-sphinx-docs/llvm/build

r260056 - Disable failing nozlibcompress.c

2016-02-07 Thread Nico Weber via cfe-commits
Author: nico Date: Sun Feb 7 15:00:17 2016 New Revision: 260056 URL: http://llvm.org/viewvc/llvm-project?rev=260056&view=rev Log: Disable failing nozlibcompress.c This test hasn't been running after it was added until r259976 made "REQUIRES: nozlib" work, and now that the test runs it fails. Mo

r260058 - Make nozlibcompress.c pass and reenable it.

2016-02-07 Thread Nico Weber via cfe-commits
Author: nico Date: Sun Feb 7 15:32:17 2016 New Revision: 260058 URL: http://llvm.org/viewvc/llvm-project?rev=260058&view=rev Log: Make nozlibcompress.c pass and reenable it. Modified: cfe/trunk/test/Driver/nozlibcompress.c Modified: cfe/trunk/test/Driver/nozlibcompress.c URL: http://llvm.o

Re: [PATCH] D16951: [MS ABI] dllimport'd class cannot have constexpr ctors

2016-02-07 Thread Nico Weber via cfe-commits
thakis added a comment. Cool, lgtm. Maybe we'll have to downgrade this to a warning eventually since cl allows it, but for now let's see how this goes. Comment at: test/SemaCXX/dllimport.cpp:1269 @@ +1268,3 @@ + virtual ~PR26506_test2() {} + constexpr PR26506_test2() {} // ex

Re: [PATCH] D16552: Let clang not error out on `const std::vector empty_vec; ` with libstdc++5.3.

2016-02-08 Thread Nico Weber via cfe-commits
thakis added a comment. ping :-) http://reviews.llvm.org/D16552 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Re: [PATCH] D16552: Let clang not error out on `const std::vector empty_vec; ` with libstdc++5.3.

2016-02-08 Thread Nico Weber via cfe-commits
thakis added a comment. Will do, thanks! In "If the implicit default constructor initializes all subobjects, no initializer should be required", is "initializes all subobjects meant recursively? I.e. is this ok according to that language? ` struct Inner { Inner() = default; int i;

r260159 - Make ParentMap work with explicit specializations of function templates.

2016-02-08 Thread Nico Weber via cfe-commits
Author: nico Date: Mon Feb 8 16:23:09 2016 New Revision: 260159 URL: http://llvm.org/viewvc/llvm-project?rev=260159&view=rev Log: Make ParentMap work with explicit specializations of function templates. For an explicit specialization, we first build a FunctionDecl, and then we call SubstDecl() o

r260990 - clang-cl: Expose -isystem.

2016-02-16 Thread Nico Weber via cfe-commits
Author: nico Date: Tue Feb 16 13:05:50 2016 New Revision: 260990 URL: http://llvm.org/viewvc/llvm-project?rev=260990&view=rev Log: clang-cl: Expose -isystem. Like cl.exe, clang-cl allows adding system include directories via the INCLUDE env var. Having a driver flag for this functionality is use

Re: [PATCH] D16552: Let clang not error out on `const std::vector empty_vec; ` with libstdc++5.3.

2016-02-16 Thread Nico Weber via cfe-commits
thakis updated this revision to Diff 48107. thakis added a comment. Checkpointing; not production quality. I tried implementing the general DR 253 rule, and this patch mostly does that. It currently walks all fields and all bases for every const record decl; there should probably be a cache for

Re: [PATCH] D16552: Let clang not error out on `const std::vector empty_vec; ` with libstdc++5.3.

2016-02-16 Thread Nico Weber via cfe-commits
thakis updated this revision to Diff 48115. thakis added a comment. Ok, that was just a bug. Now all libstdc++5.3 cases I tried build. Still not production-quality, but the overall direction won't change. If you want to comment on that, please do, else I'll ping this again after I've cleaned it

Re: [PATCH] D17348: Add -Wcast-calling-convention to warn when casting away calling conventions

2016-02-17 Thread Nico Weber via cfe-commits
thakis added a comment. Nice! Comment at: include/clang/Basic/DiagnosticGroups.td:294 @@ -293,2 +293,3 @@ def SelTypeCast : DiagGroup<"cast-of-sel-type">; +def CastCallingConvention : DiagGroup<"cast-calling-convention">; def FunctionDefInObjCContainer : DiagGroup<"function-de

Re: [PATCH] D16552: Implement the likely resolution of core issue 253.

2016-02-17 Thread Nico Weber via cfe-commits
thakis updated this revision to Diff 48248. thakis added a comment. Ok, now cleaned up and caches the "is this ok?" state on a per-record level. http://reviews.llvm.org/D16552 Files: include/clang/AST/DeclCXX.h lib/AST/ASTImporter.cpp lib/AST/DeclCXX.cpp lib/Sema/SemaInit.cpp lib/Seri

Re: [PATCH] D16552: Implement the likely resolution of core issue 253.

2016-02-18 Thread Nico Weber via cfe-commits
thakis added inline comments. Comment at: include/clang/AST/DeclCXX.h:410 @@ +409,3 @@ +}; +unsigned AllowConstDefaultInit : 3; +AllowConstDefInitKind allowConstDefInitKind() { This should be :2 of course. http://reviews.llvm.org/D16552 __

[PATCH] D17397: Make deprecation message for -fsanitize-coverage= with numeric argument friendlier.

2016-02-18 Thread Nico Weber via cfe-commits
thakis created this revision. thakis added a reviewer: kcc. thakis added a subscriber: cfe-commits. http://reviews.llvm.org/D17397 Files: lib/Driver/SanitizerArgs.cpp test/Driver/fsanitize-coverage.c Index: test/Driver/fsanitize-coverage.c

Re: [PATCH] D16552: Implement the likely resolution of core issue 253.

2016-02-18 Thread Nico Weber via cfe-commits
thakis updated this revision to Diff 48373. thakis marked an inline comment as done. thakis added a comment. address comments http://reviews.llvm.org/D16552 Files: include/clang/AST/DeclCXX.h lib/AST/ASTImporter.cpp lib/AST/DeclCXX.cpp lib/Sema/SemaInit.cpp lib/Serialization/ASTReader

Re: [PATCH] D16552: Implement the likely resolution of core issue 253.

2016-02-18 Thread Nico Weber via cfe-commits
thakis added a comment. thanks! Comment at: include/clang/AST/DeclCXX.h:405-416 @@ -404,1 +404,14 @@ +enum AllowConstDefInitKind { + ACDI_Unknown, + ACDI_Yes, + ACDI_No, +}; +unsigned AllowConstDefaultInit : 3; +AllowConstDefInitKind allowCons

Re: [PATCH] D16552: Implement the likely resolution of core issue 253.

2016-02-18 Thread Nico Weber via cfe-commits
thakis added inline comments. Comment at: lib/AST/DeclCXX.cpp:403-413 @@ +402,13 @@ + for (const auto *F : fields()) { +if (F->hasInClassInitializer() || F->isMutable() || F->isUnnamedBitfield()) + continue; +if (CXXRecordDecl *FieldType = F->getType()->getAsCXXRecor

Re: [PATCH] D16552: Implement the likely resolution of core issue 253.

2016-02-18 Thread Nico Weber via cfe-commits
thakis updated this revision to Diff 48376. thakis added a comment. update test http://reviews.llvm.org/D16552 Files: include/clang/AST/DeclCXX.h lib/AST/ASTImporter.cpp lib/AST/DeclCXX.cpp lib/Sema/SemaInit.cpp lib/Serialization/ASTReaderDecl.cpp lib/Serialization/ASTWriter.cpp t

r261247 - Make deprecation message for -fsanitize-coverage= with numeric argument friendlier.

2016-02-18 Thread Nico Weber via cfe-commits
Author: nico Date: Thu Feb 18 13:32:54 2016 New Revision: 261247 URL: http://llvm.org/viewvc/llvm-project?rev=261247&view=rev Log: Make deprecation message for -fsanitize-coverage= with numeric argument friendlier. http://reviews.llvm.org/D17397 Modified: cfe/trunk/lib/Driver/SanitizerArgs.

Re: [PATCH] D17397: Make deprecation message for -fsanitize-coverage= with numeric argument friendlier.

2016-02-18 Thread Nico Weber via cfe-commits
thakis closed this revision. thakis added a comment. 261247 http://reviews.llvm.org/D17397 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Re: [PATCH] D16552: Implement the likely resolution of core issue 253.

2016-02-18 Thread Nico Weber via cfe-commits
thakis updated this revision to Diff 48418. thakis added a comment. Thanks! All done. http://reviews.llvm.org/D16552 Files: include/clang/AST/DeclCXX.h lib/AST/ASTImporter.cpp lib/AST/DeclCXX.cpp lib/Sema/SemaInit.cpp lib/Serialization/ASTReaderDecl.cpp lib/Serialization/ASTWriter.c

r261295 - Update cxx_dr_status.html with today's cwg_index.html.

2016-02-18 Thread Nico Weber via cfe-commits
Author: nico Date: Thu Feb 18 19:49:39 2016 New Revision: 261295 URL: http://llvm.org/viewvc/llvm-project?rev=261295&view=rev Log: Update cxx_dr_status.html with today's cwg_index.html. Created by: cd www curl -O http://www.open-std.org/jtc1/sc22/wg21/docs/cwg_index.html ./make_cxx_dr_status Mod

Re: [PATCH] D16552: Implement the likely resolution of core issue 253.

2016-02-18 Thread Nico Weber via cfe-commits
thakis closed this revision. thakis added a comment. Thanks! Landed the cxx_dr_status.html update in r261295 and this change in r261297. http://reviews.llvm.org/D16552 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cg

r261297 - Implement the likely resolution of core issue 253.

2016-02-18 Thread Nico Weber via cfe-commits
Author: nico Date: Thu Feb 18 19:52:46 2016 New Revision: 261297 URL: http://llvm.org/viewvc/llvm-project?rev=261297&view=rev Log: Implement the likely resolution of core issue 253. C++11 requires const objects to have a user-provided constructor, even for classes without any fields. DR 253 relax

r261301 - Fix SemaTemplate/instantiate-field.cpp after r261297.

2016-02-18 Thread Nico Weber via cfe-commits
Author: nico Date: Thu Feb 18 20:51:07 2016 New Revision: 261301 URL: http://llvm.org/viewvc/llvm-project?rev=261301&view=rev Log: Fix SemaTemplate/instantiate-field.cpp after r261297. For templates, fields can have incomplete types: template struct A2 { struct B; B b; }; Don't t

Re: r261297 - Implement the likely resolution of core issue 253.

2016-02-19 Thread Nico Weber via cfe-commits
nmez via cfe-commits > wrote: > > On Fri, Feb 19, 2016 at 3:52 AM, Nico Weber via cfe-commits > > wrote: > >> Author: nico > >> Date: Thu Feb 18 19:52:46 2016 > >> New Revision: 261297 > >> > >> URL: http://llvm.org/viewvc/llvm-pro

Re: r261297 - Implement the likely resolution of core issue 253.

2016-02-19 Thread Nico Weber via cfe-commits
On Fri, Feb 19, 2016 at 4:29 PM, Richard Smith via cfe-commits < cfe-commits@lists.llvm.org> wrote: > On Thu, Feb 18, 2016 at 5:52 PM, Nico Weber via cfe-commits > wrote: > > Author: nico > > Date: Thu Feb 18 19:52:46 2016 > > New Revision: 261297 > > > >

Re: r261297 - Implement the likely resolution of core issue 253.

2016-02-19 Thread Nico Weber via cfe-commits
On Fri, Feb 19, 2016 at 8:01 PM, Richard Smith wrote: > On Fri, Feb 19, 2016 at 4:41 PM, Nico Weber wrote: > > On Fri, Feb 19, 2016 at 4:29 PM, Richard Smith via cfe-commits > > wrote: > >> > >> On Thu, Feb 18, 2016 at 5:52 PM, Nico Weber via cfe-commits

Re: r261297 - Implement the likely resolution of core issue 253.

2016-02-19 Thread Nico Weber via cfe-commits
gt;> >> >> On Thu, Feb 18, 2016 at 5:52 PM, Nico Weber via cfe-commits >> >> wrote: >> >> > Author: nico >> >> > Date: Thu Feb 18 19:52:46 2016 >> >> > New Revision: 261297 >> >> > >> >> > URL: http:

Re: r261297 - Implement the likely resolution of core issue 253.

2016-02-20 Thread Nico Weber via cfe-commits
eb 19, 2016 at 4:29 PM, Richard Smith via cfe-commits >>> > wrote: >>> >> >>> >> On Thu, Feb 18, 2016 at 5:52 PM, Nico Weber via cfe-commits >>> >> wrote: >>> >> > Author: nico >>> >> > Date: Thu Feb

r261674 - Rename Action::begin() to Action::input_begin().

2016-02-23 Thread Nico Weber via cfe-commits
Author: nico Date: Tue Feb 23 13:30:43 2016 New Revision: 261674 URL: http://llvm.org/viewvc/llvm-project?rev=261674&view=rev Log: Rename Action::begin() to Action::input_begin(). Also introduce inputs() that reutnrs an llvm::iterator_range. Iterating over A->inputs() is much less mysterious than

Re: r261674 - Rename Action::begin() to Action::input_begin().

2016-02-23 Thread Nico Weber via cfe-commits
On Tue, Feb 23, 2016 at 2:44 PM, David Blaikie via cfe-commits < cfe-commits@lists.llvm.org> wrote: > > > On Tue, Feb 23, 2016 at 11:30 AM, Nico Weber via cfe-commits < > cfe-commits@lists.llvm.org> wrote: > >> Author: nico >> Date: Tue Feb 23 13:30:43 2016

Re: r261674 - Rename Action::begin() to Action::input_begin().

2016-02-23 Thread Nico Weber via cfe-commits
On Tue, Feb 23, 2016 at 3:55 PM, David Blaikie wrote: > > > On Tue, Feb 23, 2016 at 12:46 PM, Nico Weber wrote: > >> On Tue, Feb 23, 2016 at 2:44 PM, David Blaikie via cfe-commits < >> cfe-commits@lists.llvm.org> wrote: >> >>> >>> >>&g

Re: r261297 - Implement the likely resolution of core issue 253.

2016-02-24 Thread Nico Weber via cfe-commits
PM, Richard Smith > >>> wrote: > >>>> > >>>> On Fri, Feb 19, 2016 at 4:41 PM, Nico Weber > wrote: > >>>> > On Fri, Feb 19, 2016 at 4:29 PM, Richard Smith via cfe-commits > >>>> > wrote: > >>>> >&

r261770 - Fix rejects-valid caused by r261297.

2016-02-24 Thread Nico Weber via cfe-commits
Author: nico Date: Wed Feb 24 14:58:14 2016 New Revision: 261770 URL: http://llvm.org/viewvc/llvm-project?rev=261770&view=rev Log: Fix rejects-valid caused by r261297. r261297 called hasUserProvidedDefaultConstructor() to check if defining a const object is ok. This is incorrect for this example

Re: r261297 - Implement the likely resolution of core issue 253.

2016-02-24 Thread Nico Weber via cfe-commits
, 2016 at 10:32 PM, Nico Weber > >> > wrote: > >> >> > >> >> On Fri, Feb 19, 2016 at 10:02 PM, Nico Weber > >> >> wrote: > >> >>> > >> >>> On Fri, Feb 19, 2016 at 8:01 PM, Richard Smith < > rich...@m

Re: [clang-tools-extra] r261738 - [clang-tidy] introduce modernize-deprecated-headers check

2016-02-24 Thread Nico Weber via cfe-commits
This broke the Windows bot: http://lab.llvm.org:8011/builders/clang-x64-ninja-win7/builds/10093/steps/build%20stage%201/logs/stdio FAILED: C:\PROGRA~2\MICROS~1.0\VC\bin\amd64\cl.exe /nologo /TP /DWIN32 /D_WINDOWS /W4 -wd4141 -wd4146 -wd4180 -wd4244 -wd4258 -wd4267 -wd4291 -wd4345 -wd4351 -wd43

r267601 - Try to get at_file_missing.c passing after LLVM r267556.

2016-04-26 Thread Nico Weber via cfe-commits
Author: nico Date: Tue Apr 26 15:40:23 2016 New Revision: 267601 URL: http://llvm.org/viewvc/llvm-project?rev=267601&view=rev Log: Try to get at_file_missing.c passing after LLVM r267556. r267556 made backslashes escape the next character unconditionally in rsp files. This test echos a path into

Re: r267534 - [MSVC] PR27337: allow static_cast from private base to derived for WTL

2016-04-27 Thread Nico Weber via cfe-commits
Is it needed to parse system headers? In general, we implement things like this if they're needed for system headers but don't otherwise. On Wed, Apr 27, 2016 at 6:19 AM, Dmitry Polukhin via cfe-commits < cfe-commits@lists.llvm.org> wrote: > I added example with 'B*' to 'A*' just to make sure tha

r267744 - Revert r267691, it caused PR27535.

2016-04-27 Thread Nico Weber via cfe-commits
Author: nico Date: Wed Apr 27 12:26:08 2016 New Revision: 267744 URL: http://llvm.org/viewvc/llvm-project?rev=267744&view=rev Log: Revert r267691, it caused PR27535. Removed: cfe/trunk/test/Modules/Inputs/PR27401/ cfe/trunk/test/Modules/pr27401.cpp Modified: cfe/trunk/include/clang/AS

Re: [PATCH] D19361: [MS] Improved implementation of MS stack pragmas (vtordisp, *_seg)

2016-04-27 Thread Nico Weber via cfe-commits
thakis added a subscriber: thakis. thakis added a comment. Thanks for the patch! To add to your proposed todo list (which sounds great): All these stack-using pragmas aren't serialized to pch files at the moment either. Maybe you want to work on that too (either serialize the stacks, or emit a

Re: r267744 - Revert r267691, it caused PR27535.

2016-04-28 Thread Nico Weber via cfe-commits
I revert the > "revert" and commit the fix afterwards? > Many thanks > Vassil > On 27/04/16 19:26, Nico Weber via cfe-commits wrote: > >> Author: nico >> Date: Wed Apr 27 12:26:08 2016 >> New Revision: 267744 >> >> URL: http://llvm.org/vi

Re: [PATCH] D19881: clang-cl: Print a blank line at the start of /showIncludes (PR27226)

2016-05-03 Thread Nico Weber via cfe-commits
thakis added inline comments. Comment at: lib/Frontend/HeaderIncludeGen.cpp:106 @@ +105,3 @@ +// it to be there. +*OutputFile << '\n'; + } Doesn't do that for me: C:\src\ninja>cl /c test.cc /nologo /showIncludes test.cc Note: including file: c:\src\ninja

Re: [PATCH] D19881: clang-cl: Print a blank line at the start of /showIncludes (PR27226)

2016-05-03 Thread Nico Weber via cfe-commits
thakis added a comment. I agree with Brad that it'd be nice if we didn't have to add this :-) What's the workaround for current cmake releases? http://reviews.llvm.org/D19881 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm

Re: [PATCH] D19881: clang-cl: Print a blank line at the start of /showIncludes (PR27226)

2016-05-03 Thread Nico Weber via cfe-commits
thakis added a comment. (Also, this "only" affects .rc compilations, not regular source compilations -- those don't go through cmcldeps) http://reviews.llvm.org/D19881 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cg

Re: [PATCH] D19881: clang-cl: Print a blank line at the start of /showIncludes (PR27226)

2016-05-03 Thread Nico Weber via cfe-commits
thakis added a comment. In http://reviews.llvm.org/D19881#420245, @hans wrote: > In http://reviews.llvm.org/D19881#420244, @thakis wrote: > > > I agree with Brad that it'd be nice if we didn't have to add this :-) > > > > What's the workaround for current cmake releases? > > > Passing -DCMAKE_CL_

r268625 - Add a test for PR26076.

2016-05-05 Thread Nico Weber via cfe-commits
Author: nico Date: Thu May 5 06:51:22 2016 New Revision: 268625 URL: http://llvm.org/viewvc/llvm-project?rev=268625&view=rev Log: Add a test for PR26076. r262056 accidentally fixed this. Add a test to ensure it doesn't regress. Modified: cfe/trunk/test/CodeGenCXX/dllexport.cpp Modified: c

Re: r268727 - [MSVC] Implementation of __unaligned as a proper type qualifier

2016-05-06 Thread Nico Weber via cfe-commits
We're getting this crash now with a regression range of 268724:268729 -- i.e. almost certainly this change: FAILED: obj/net/dns/net.mdns_client.obj ninja -t msvc -e environment.x64 -- "..\..\third_party/llvm-build/Release+Asserts/bin/clang-cl" -m64 /nologo /showIncludes /FC @obj\net\dns\net.mdns_c

r268736 - Revert r268727, it caused PR27666.

2016-05-06 Thread Nico Weber via cfe-commits
Author: nico Date: Fri May 6 09:34:29 2016 New Revision: 268736 URL: http://llvm.org/viewvc/llvm-project?rev=268736&view=rev Log: Revert r268727, it caused PR27666. Modified: cfe/trunk/include/clang/AST/Type.h cfe/trunk/include/clang/Basic/AddressSpaces.h cfe/trunk/include/clang/Basi

Re: r268727 - [MSVC] Implementation of __unaligned as a proper type qualifier

2016-05-06 Thread Nico Weber via cfe-commits
I verified that this is due to this change. I filed https://llvm.org/bugs/show_bug.cgi?id=27666 with a reduced repro and reverted this change in r268736. On Fri, May 6, 2016 at 9:52 AM, Nico Weber wrote: > We're getting this crash now with a regression range of 268724:268729 -- > i.e. almost cer

r268797 - Fix sysroot-prefix.c on Windows (/ vs \).

2016-05-06 Thread Nico Weber via cfe-commits
Author: nico Date: Fri May 6 16:17:32 2016 New Revision: 268797 URL: http://llvm.org/viewvc/llvm-project?rev=268797&view=rev Log: Fix sysroot-prefix.c on Windows (/ vs \). Modified: cfe/trunk/test/Preprocessor/sysroot-prefix.c Modified: cfe/trunk/test/Preprocessor/sysroot-prefix.c URL: htt

Re: r268797 - Fix sysroot-prefix.c on Windows (/ vs \).

2016-05-06 Thread Nico Weber via cfe-commits
k allow / match \ when running under Windows? > Seems overly magical to me. Maybe we should use {{.}} instead of {{/|}} unless it's really important it's a slash or backslash for the test ;-) > > Yaron > > > 2016-05-07 0:17 GMT+03:00 Nico Weber via cfe-commits &

Re: [PATCH] D20136: Get default -fms-compatibility-version from cl.exe's version

2016-05-10 Thread Nico Weber via cfe-commits
thakis added a subscriber: thakis. Comment at: lib/Driver/MSVCToolChain.cpp:477 @@ +476,3 @@ + std::vector VersionBlock(VersionSize); + if (!::GetFileVersionInfoA(ClExe.c_str(), 0, VersionSize, + VersionBlock.data())) { We already sta

Re: r269148 - Disable -Wcast-calling-convention by default (follow-up to r269116)

2016-05-10 Thread Nico Weber via cfe-commits
I asked Reid the same thing on the review. He said he wanted to try the warning in practice first and maybe polish it a bit before enabling it. (It was supposed to land in disabled state.) On Tue, May 10, 2016 at 9:00 PM, David Majnemer via cfe-commits < cfe-commits@lists.llvm.org> wrote: > Er, w

Re: [PATCH] D20136: Get default -fms-compatibility-version from cl.exe's version

2016-05-11 Thread Nico Weber via cfe-commits
thakis added inline comments. Comment at: lib/Driver/MSVCToolChain.cpp:478 @@ +477,3 @@ + + const DWORD VersionSize = ::GetFileVersionInfoSizeW(ClExeWide.c_str(), + nullptr); amccarth wrote: > Yes, it looks in

Re: [PATCH] D20136: Get default -fms-compatibility-version from cl.exe's version

2016-05-11 Thread Nico Weber via cfe-commits
thakis added inline comments. Comment at: lib/Driver/MSVCToolChain.cpp:478 @@ +477,3 @@ + + const DWORD VersionSize = ::GetFileVersionInfoSizeW(ClExeWide.c_str(), + nullptr); amccarth wrote: > amccarth wrote: >

Re: [PATCH] D20136: Get default -fms-compatibility-version from cl.exe's version

2016-05-11 Thread Nico Weber via cfe-commits
thakis added a comment. Ok, that seems fine then. Thanks much for checking! http://reviews.llvm.org/D20136 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[PATCH] D20291: [ms] Reintroduce feature guards in intrinsic headers in Microsoft mode

2016-05-16 Thread Nico Weber via cfe-commits
thakis created this revision. thakis added a reviewer: hans. thakis added a subscriber: cfe-commits. Visual Studio's C++ standard library headers include intrin.h, so the intrinsic headers get included a lot more often in Microsoft mode then elsewhere. The AVX512 intrinsics are a lot of code (0.

Re: [PATCH] D20291: [ms] Reintroduce feature guards in intrinsic headers in Microsoft mode

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

r269675 - [ms] Reintroduce feature guards in intrinsic headers in Microsoft mode

2016-05-16 Thread Nico Weber via cfe-commits
Author: nico Date: Mon May 16 13:14:07 2016 New Revision: 269675 URL: http://llvm.org/viewvc/llvm-project?rev=269675&view=rev Log: [ms] Reintroduce feature guards in intrinsic headers in Microsoft mode Visual Studio's C++ standard library headers include intrin.h, so the intrinsic headers get inc

Re: r269680 - [Clang][AVX512] completing missing intrinsics for [vpabs] instruction set

2016-05-16 Thread Nico Weber via cfe-commits
Hi Michael, have you see then trhead "The intrinsics headers (especially avx512) are too big. What to do about it?"? Can you maybe comment on it? Thanks, Nico On Mon, May 16, 2016 at 2:57 PM, Michael Zuckerman via cfe-commits < cfe-commits@lists.llvm.org> wrote: > Author: mzuckerm > Date: Mon M

Re: r269214 - Relax -Wcalling-convention-cast when casting to the default convention (cdecl)

2016-05-16 Thread Nico Weber via cfe-commits
After this tweak, Chromium builds cleanly with the new warning enabled. Maybe it's time to turn it on by default. On Wed, May 11, 2016 at 1:43 PM, Reid Kleckner via cfe-commits < cfe-commits@lists.llvm.org> wrote: > Author: rnk > Date: Wed May 11 12:43:13 2016 > New Revision: 269214 > > URL: http

Re: r269769 - [PCH] Fixed bug with preamble invalidation when overridden files change

2016-05-17 Thread Nico Weber via cfe-commits
Is it possible to write a test for this? On Tue, May 17, 2016 at 10:34 AM, Cameron Desrochers via cfe-commits < cfe-commits@lists.llvm.org> wrote: > Author: cameron314 > Date: Tue May 17 09:34:53 2016 > New Revision: 269769 > > URL: http://llvm.org/viewvc/llvm-project?rev=269769&view=rev > Log: >

Re: [clang-tools-extra] r269918 - [clang-tidy] Fix misc-unused-using-decls test failure in windows

2016-05-18 Thread Nico Weber via cfe-commits
Doesn't look like this helped: http://lab.llvm.org:8011/builders/clang-x64-ninja-win7/builds/12300 On Wed, May 18, 2016 at 9:07 AM, Haojian Wu via cfe-commits < cfe-commits@lists.llvm.org> wrote: > Author: hokein > Date: Wed May 18 08:07:13 2016 > New Revision: 269918 > > URL: http://llvm.org/vie

Re: [PATCH] D20369: [ASTMatcher] Fix a ASTMatcher test failure on Windows.

2016-05-18 Thread Nico Weber via cfe-commits
thakis added a subscriber: thakis. thakis added a comment. I agree with Aaron. Maybe you could change Matcher.UnresolvedLookupExpr to call bar() from a new function foo() so that it gets instantiated? http://reviews.llvm.org/D20369 ___ cfe-commits

Re: [PATCH] D20369: [ASTMatcher] Fix a ASTMatcher test failure on Windows.

2016-05-18 Thread Nico Weber via cfe-commits
thakis added inline comments. Comment at: unittests/ASTMatchers/ASTMatchersNodeTest.cpp:187 @@ +186,3 @@ + "}", + unresolvedLookupExpr(), true, + "-fno-delayed-template-parsing"))

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