Re: r276508 - Add -fmodules-ts flag to cc1 for the provisional C++ modules TS, and mark

2016-07-29 Thread Vassil Vassilev via cfe-commits
On 23/07/16 04:32, Richard Smith via cfe-commits wrote: Author: rsmith Date: Fri Jul 22 21:32:21 2016 New Revision: 276508 URL: http://llvm.org/viewvc/llvm-project?rev=276508&view=rev Log: Add -fmodules-ts flag to cc1 for the provisional C++ modules TS, and mark 'module' and 'import' as keywords

Re: [PATCH] D22982: [CloneDetector] No longer reporting clones that don't have a common referenced variable pattern.

2016-08-03 Thread Vassil Vassilev via cfe-commits
v.g.vassilev accepted this revision. v.g.vassilev added a comment. LGTM. My comments were clarified in a Skype chat. https://reviews.llvm.org/D22982 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listin

r278110 - [analyzer] Try to fix coverity CID 1360469.

2016-08-09 Thread Vassil Vassilev via cfe-commits
Author: vvassilev Date: Tue Aug 9 05:00:23 2016 New Revision: 278110 URL: http://llvm.org/viewvc/llvm-project?rev=278110&view=rev Log: [analyzer] Try to fix coverity CID 1360469. Patch by Raphael Isemann! Modified: cfe/trunk/lib/Analysis/CloneDetection.cpp Modified: cfe/trunk/lib/Analysis/

Re: [PATCH] D23320: [analyzer] Fixed crash in CloneDetector in function calls.

2016-08-09 Thread Vassil Vassilev via cfe-commits
v.g.vassilev accepted this revision. v.g.vassilev added a comment. LGTM. https://reviews.llvm.org/D23320 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Re: [PATCH] D23314: [analyzer] CloneDetector allows comparing clones for suspicious variable pattern errors.

2016-08-09 Thread Vassil Vassilev via cfe-commits
v.g.vassilev requested changes to this revision. This revision now requires changes to proceed. Comment at: lib/StaticAnalyzer/Checkers/CloneChecker.cpp:83 @@ +82,3 @@ +auto WarnID = DiagEngine.getCustomDiagID( +DiagnosticsEngine::Warning, "Maybe you wanted to use %0 h

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

2016-08-09 Thread Vassil Vassilev via cfe-commits
v.g.vassilev added inline comments. Comment at: lib/Analysis/CloneDetection.cpp:431 @@ +430,3 @@ +// level of it's containing clone. This prevents false-positives caused by +// complex macros. For example 'assert(false)' could be reported as a clone +// if the assert m

[PATCH] D23400: Implement Use-Define Chain.

2016-08-11 Thread Vassil Vassilev via cfe-commits
v.g.vassilev created this revision. v.g.vassilev added subscribers: teemperor, dergachev.a, krememek, cfe-commits. v.g.vassilev set the repository for this revision to rL LLVM. As a result of a few internal discussions, I'd like to continue the work done in this ancient thread (http://lists.llvm

[PATCH] D23492: Make function local tags visible.

2016-08-14 Thread Vassil Vassilev via cfe-commits
v.g.vassilev created this revision. v.g.vassilev added a reviewer: rsmith. v.g.vassilev added a subscriber: cfe-commits. v.g.vassilev set the repository for this revision to rL LLVM. Upon instantiating function decls, we should mark visible any tag decl in the function's body. Repository: rL L

Re: r258524 - Merge templated static member variables, fixes http://llvm.org/pr26179.

2016-02-05 Thread Vassil Vassilev via cfe-commits
Good point. Do you have in mind calling 'clang::Sema::MergeVarDeclTypes' or we to just "duplicate" the logic in clang::ASTDeclReader::mergeRedeclarable? On 05/02/16 02:50, Richard Smith via cfe-commits wrote: I suspect we'll need to do a little more than this: when we rebuild the redeclaration

Re: r258524 - Merge templated static member variables, fixes http://llvm.org/pr26179.

2016-02-05 Thread Vassil Vassilev via cfe-commits
I am not sure where else to put this logic if not in isSameEntity... Could you point me to a better place? --Vassil On 05/02/16 19:56, Richard Smith wrote: On Fri, Feb 5, 2016 at 7:04 AM, Vassil Vassilev mailto:v.g.vassi...@gmail.com>> wrote: Good point. Do you have in mind calling 'cl

Re: r245794 - Improve the performance of resolving a lookup result. We usually don't need to

2016-02-06 Thread Vassil Vassilev via cfe-commits
On 22/08/15 23:37, Richard Smith via cfe-commits wrote: Author: rsmith Date: Sat Aug 22 16:37:34 2015 New Revision: 245794 URL: http://llvm.org/viewvc/llvm-project?rev=245794&view=rev Log: Improve the performance of resolving a lookup result. We usually don't need to pick the most recent declara

Re: r258524 - Merge templated static member variables, fixes http://llvm.org/pr26179.

2016-02-07 Thread Vassil Vassilev via cfe-commits
Would this patch be any better? --Vassil On 05/02/16 21:49, Richard Smith wrote: This belongs in ASTDeclReader::attachPreviousDecl[Impl]. That's where we propagate data that's supposed to be consistent across a redeclaration chain from earlier declarations to later ones. There's another wrinkl

Re: r258524 - Merge templated static member variables, fixes http://llvm.org/pr26179.

2016-02-07 Thread Vassil Vassilev via cfe-commits
Improve a comment. --Vassil On 07/02/16 20:48, Vassil Vassilev wrote: Would this patch be any better? --Vassil On 05/02/16 21:49, Richard Smith wrote: This belongs in ASTDeclReader::attachPreviousDecl[Impl]. That's where we propagate data that's supposed to be consistent across a redeclaration

Re: r260124 - Remove dead code.

2016-02-08 Thread Vassil Vassilev via cfe-commits
On 08/02/16 20:10, Richard Smith via cfe-commits wrote: Author: rsmith Date: Mon Feb 8 13:10:14 2016 New Revision: 260124 URL: http://llvm.org/viewvc/llvm-project?rev=260124&view=rev Log: Remove dead code. Modified: cfe/trunk/lib/Sema/SemaLookup.cpp Modified: cfe/trunk/lib/Sema/SemaLooku

Re: r260124 - Remove dead code.

2016-02-08 Thread Vassil Vassilev via cfe-commits
On 08/02/16 20:38, Richard Smith wrote: On Mon, Feb 8, 2016 at 11:25 AM, Vassil Vassilev mailto:v.g.vassi...@gmail.com>> wrote: On 08/02/16 20:10, Richard Smith via cfe-commits wrote: Author: rsmith Date: Mon Feb 8 13:10:14 2016 New Revision: 260124 URL: h

Re: r258524 - Merge templated static member variables, fixes http://llvm.org/pr26179.

2016-02-16 Thread Vassil Vassilev via cfe-commits
ping... On 07/02/16 22:33, Vassil Vassilev wrote: Improve a comment. --Vassil On 07/02/16 20:48, Vassil Vassilev wrote: Would this patch be any better? --Vassil On 05/02/16 21:49, Richard Smith wrote: This belongs in ASTDeclReader::attachPreviousDecl[Impl]. That's where we propagate data that's

Re: r258524 - Merge templated static member variables, fixes http://llvm.org/pr26179.

2016-02-17 Thread Vassil Vassilev via cfe-commits
On 16/02/16 22:20, Richard Smith wrote: --- a/lib/Sema/SemaLookup.cpp +++ b/lib/Sema/SemaLookup.cpp @@ -419,6 +419,25 @@ static bool isPreferredLookupResult(Sema &S, Sema::LookupNameKind Kind, } } + // VarDecl can have incomplete array types, prefer the one with more complete + /

Re: r258524 - Merge templated static member variables, fixes http://llvm.org/pr26179.

2016-02-18 Thread Vassil Vassilev via cfe-commits
Тhanks, could you (or smb else with commit perms) check it in? --Vassil On 18/02/16 03:24, Richard Smith wrote: (And otherwise this LGTM.) On Wed, Feb 17, 2016 at 5:24 PM, Richard Smith wrote: + // TODO: Check visibility. New is hidden but has a complete type. If New + // has no arra

Re: [PATCH][modules][PR26237]

2016-02-22 Thread Vassil Vassilev via cfe-commits
sage rather than only citing the bug number On Jan 30, 2016 6:49 AM, "Vassil Vassilev via cfe-commits" wrote: Attaching a fix to https://llvm.org/bugs/show_bug.cgi?id=

Re: [modules] PR24954

2016-02-22 Thread Vassil Vassilev via cfe-commits
On 02/02/16 02:52, Richard Smith via cfe-commits wrote: On Thu, Jan 28, 2016 at 8:23 AM, Vassil Vassilev wrote: Would this patch be more reasonable? It follows what RegisterTemplateSpecialization (introduced in r245779) does. AFAICT this adds an update record far less often. It's still adding

Re: [PATCH][modules][PR26237]

2016-02-24 Thread Vassil Vassilev via cfe-commits
On 30/01/16 17:08, David Blaikie wrote: It might be handy to give an overview of the issue in the review (& certainly in the commit) message rather than only citing the bug number On Jan 30, 2016 6:49 AM, "Vassil Vassilev via cfe-commits" wrote: Attaching a fix to https://llvm.org/bug

Re: [PATCH][modules][PR26237]

2016-02-24 Thread Vassil Vassilev via cfe-commits
a crash (see valgrind reports in the bug report). Unfortunately I haven't been able to make the reproducer independent on STL. --Vassil On 30/01/16 17:08, David Blaikie wrote: It might be handy to give an overview of the issue in the review (& certainly in the commit) message rather than o

Re: [PATCH] Canonicalize UnaryTransformType types when they don't have a known underlying type

2016-02-24 Thread Vassil Vassilev via cfe-commits
ping... On 07/01/16 08:09, Vassil Vassilev via cfe-commits wrote: Hi all, I am attaching a fix for https://llvm.org/bugs/show_bug.cgi?id=26014 To which type should I tie the canonical type of the unknown underlying type? Currently it is tied to its BaseType. Please review. --Vassil

Re: [PATCH][modules][PR26237]

2016-02-24 Thread Vassil Vassilev via cfe-commits
id Blaikie wrote: It might be handy to give an overview of the issue in the review (& certainly in the commit) message rather than only citing the bug number On Jan 30, 2016 6:49 AM, "Vassil Vassilev via cfe-commits" wrote: Attaching a fix to https://llvm.org/bugs/show_bug.cgi?id=

r261999 - Test commit.

2016-02-26 Thread Vassil Vassilev via cfe-commits
Author: vvassilev Date: Fri Feb 26 04:43:34 2016 New Revision: 261999 URL: http://llvm.org/viewvc/llvm-project?rev=261999&view=rev Log: Test commit. Modified: cfe/trunk/lib/Serialization/ASTReaderDecl.cpp Modified: cfe/trunk/lib/Serialization/ASTReaderDecl.cpp URL: http://llvm.org/viewvc/ll

r267691 - [modules] Fix Decl's Used invariant.

2016-04-27 Thread Vassil Vassilev via cfe-commits
Author: vvassilev Date: Wed Apr 27 05:46:06 2016 New Revision: 267691 URL: http://llvm.org/viewvc/llvm-project?rev=267691&view=rev Log: [modules] Fix Decl's Used invariant. The Decl::isUsed has a value for every decl. In non-module builds it is very difficult (but possible) to break this invarian

Re: r267744 - Revert r267691, it caused PR27535.

2016-04-28 Thread Vassil Vassilev via cfe-commits
Hi Nico, I have a fix. What is the right way of putting it in? Shall 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/viewvc/llvm-

r267882 - Reland r267691 fixing PR27535.

2016-04-28 Thread Vassil Vassilev via cfe-commits
Author: vvassilev Date: Thu Apr 28 09:13:28 2016 New Revision: 267882 URL: http://llvm.org/viewvc/llvm-project?rev=267882&view=rev Log: Reland r267691 fixing PR27535. Added: cfe/trunk/test/Modules/Inputs/PR27401/ cfe/trunk/test/Modules/Inputs/PR27401/a.h cfe/trunk/test/Modules/Inputs/

Re: r267744 - Revert r267691, it caused PR27535.

2016-04-28 Thread Vassil Vassilev via cfe-commits
r267882. On 28/04/16 15:23, Nico Weber wrote: I'd reland with the fix, and with an additional test that catches the problem this introduced. On Apr 28, 2016 8:16 AM, "Vassil Vassilev via cfe-commits" mailto:cfe-commits@lists.llvm.org>> wrote: Hi Nico, I ha

Re: r269398 - Add support for derived class special members hiding functions brought in from

2016-05-13 Thread Vassil Vassilev via cfe-commits
Hi Richard, I believe this broke our modules builds. Last successful one was with r269388 and the current with r269389 fails with: /usr/lib/gcc/x86_64-redhat-linux/4.9.2/../../../../include/c++/4.9.2/type_traits:69:12: error: constructor cannot be redeclared struct integral_constant

Re: r269398 - Add support for derived class special members hiding functions brought in from

2016-05-16 Thread Vassil Vassilev via cfe-commits
The reduced reproducer: https://llvm.org/bugs/show_bug.cgi?id=27754 On 14/05/16 01:23, Richard Smith wrote: Update: Vassil and I have dug into this a bit offline. It looks like the root cause is a likely-pre-existing bug where we somehow import a default constructor for a class from a module but

[PATCH] D20302: Remove LazyDefinitionDataPtr and rely on getMostRecentDecl. Fixes PR27754.

2016-05-16 Thread Vassil Vassilev via cfe-commits
v.g.vassilev created this revision. v.g.vassilev added a reviewer: rsmith. v.g.vassilev added a subscriber: cfe-commits. v.g.vassilev set the repository for this revision to rL LLVM. Repository: rL LLVM http://reviews.llvm.org/D20302 Files: include/clang/AST/DeclCXX.h lib/AST/DeclCXX.cpp

r269935 - Teach Sema::MergeFunctionDecl to properly check for an out-of-line definition of a function that is declared as =default in its class definition.

2016-05-18 Thread Vassil Vassilev via cfe-commits
Author: vvassilev Date: Wed May 18 10:14:46 2016 New Revision: 269935 URL: http://llvm.org/viewvc/llvm-project?rev=269935&view=rev Log: Teach Sema::MergeFunctionDecl to properly check for an out-of-line definition of a function that is declared as =default in its class definition. First part of

r264908 - [modules] Add a regression test for PR21547.

2016-03-30 Thread Vassil Vassilev via cfe-commits
Author: vvassilev Date: Wed Mar 30 15:10:07 2016 New Revision: 264908 URL: http://llvm.org/viewvc/llvm-project?rev=264908&view=rev Log: [modules] Add a regression test for PR21547. Added: cfe/trunk/test/Modules/Inputs/PR21547/ cfe/trunk/test/Modules/Inputs/PR21547/FirstHeader.h cfe/tr

r264913 - [modules] Write out identifiers if the ID is local, too.

2016-03-30 Thread Vassil Vassilev via cfe-commits
Author: vvassilev Date: Wed Mar 30 15:16:03 2016 New Revision: 264913 URL: http://llvm.org/viewvc/llvm-project?rev=264913&view=rev Log: [modules] Write out identifiers if the ID is local, too. In some cases a slot for an identifier is requested but it gets written to another module, causing an as

Re: r264908 - [modules] Add a regression test for PR21547.

2016-03-30 Thread Vassil Vassilev via cfe-commits
On 31/03/16 00:08, Richard Smith wrote: On Wed, Mar 30, 2016 at 1:10 PM, Vassil Vassilev via cfe-commits wrote: Author: vvassilev Date: Wed Mar 30 15:10:07 2016 New Revision: 264908 URL: http://llvm.org/viewvc/llvm-project?rev=264908&view=rev Log: [modules] Add a regression test for PR2

r264937 - Canonicalize UnaryTransformType types when they don't have a known underlying type.

2016-03-30 Thread Vassil Vassilev via cfe-commits
Author: vvassilev Date: Wed Mar 30 17:18:29 2016 New Revision: 264937 URL: http://llvm.org/viewvc/llvm-project?rev=264937&view=rev Log: Canonicalize UnaryTransformType types when they don't have a known underlying type. Fixes https://llvm.org/bugs/show_bug.cgi?id=26014 Reviewed by Richard Smith

r264939 - Add -emit-llvm-only to the regression test for PR21547.

2016-03-30 Thread Vassil Vassilev via cfe-commits
Author: vvassilev Date: Wed Mar 30 17:22:50 2016 New Revision: 264939 URL: http://llvm.org/viewvc/llvm-project?rev=264939&view=rev Log: Add -emit-llvm-only to the regression test for PR21547. Modified: cfe/trunk/test/Modules/pr21547.cpp Modified: cfe/trunk/test/Modules/pr21547.cpp URL: http

Re: r264908 - [modules] Add a regression test for PR21547.

2016-03-30 Thread Vassil Vassilev via cfe-commits
On 31/03/16 00:08, Richard Smith wrote: On Wed, Mar 30, 2016 at 1:10 PM, Vassil Vassilev via cfe-commits wrote: Author: vvassilev Date: Wed Mar 30 15:10:07 2016 New Revision: 264908 URL: http://llvm.org/viewvc/llvm-project?rev=264908&view=rev Log: [modules] Add a regression test for PR2

Re: [PATCH] Canonicalize UnaryTransformType types when they don't have a known underlying type

2016-03-30 Thread Vassil Vassilev via cfe-commits
. On Thu, Mar 17, 2016 at 11:55 AM, Vassil Vassilev via cfe-commits wrote: ping... On 10/03/16 15:33, Vassil Vassilev wrote: Would this one more reasonable to commit. As you suggested if the base type is dependent, create a unique canonical UnaryTransformType with the canonical form of the base

Re: r259734 - Fix predefine for __NSConstantString struct type

2016-04-03 Thread Vassil Vassilev via cfe-commits
On 04/02/16 01:55, Ben Langmuir via cfe-commits wrote: Author: benlangmuir Date: Wed Feb 3 18:55:24 2016 New Revision: 259734 URL: http://llvm.org/viewvc/llvm-project?rev=259734&view=rev Log: Fix predefine for __NSConstantString struct type Per review feedback the name was wrong and it can be

r265597 - [modules] Don't try to add lookup results to non-lookup contexts.

2016-04-06 Thread Vassil Vassilev via cfe-commits
Author: vvassilev Date: Wed Apr 6 15:56:03 2016 New Revision: 265597 URL: http://llvm.org/viewvc/llvm-project?rev=265597&view=rev Log: [modules] Don't try to add lookup results to non-lookup contexts. Fixes https://llvm.org/bugs/show_bug.cgi?id=27186 Patch reviewed by Richard Smith. Modified:

r265599 - [modules] Add forgotten test case to r265597.

2016-04-06 Thread Vassil Vassilev via cfe-commits
Author: vvassilev Date: Wed Apr 6 15:58:12 2016 New Revision: 265599 URL: http://llvm.org/viewvc/llvm-project?rev=265599&view=rev Log: [modules] Add forgotten test case to r265597. Added: cfe/trunk/test/Modules/Inputs/PR27186/ cfe/trunk/test/Modules/Inputs/PR27186/Rtypes.h cfe/trunk/

Re: r265640 - Basic: thread CodeGenOptions into TargetInfo

2016-04-07 Thread Vassil Vassilev via cfe-commits
On 07/04/16 07:41, Saleem Abdulrasool via cfe-commits wrote: Author: compnerd Date: Thu Apr 7 00:41:11 2016 New Revision: 265640 URL: http://llvm.org/viewvc/llvm-project?rev=265640&view=rev Log: Basic: thread CodeGenOptions into TargetInfo This threads CodeGenOptions into the TargetInfo hierar

Re: r259734 - Fix predefine for __NSConstantString struct type

2016-04-11 Thread Vassil Vassilev via cfe-commits
> wrote: +1, if possible. There is a if (getLangOpts().ObjC1) block just before this. 2016-04-03 14:21 GMT+03:00 Vassil Vassilev via cfe-commits mailto:cfe-commits@lists.llvm.org>>: On 04/02/16 01:55, Ben Langmuir via cfe-commits wrote: Author: benl

Re: r265766 - [modules] Add a comment to explain why -E leaves some #includes in the preprocessed output.

2016-04-18 Thread Vassil Vassilev via cfe-commits
On 08/04/16 03:24, Richard Smith via cfe-commits wrote: Author: rsmith Date: Thu Apr 7 20:23:59 2016 New Revision: 265766 URL: http://llvm.org/viewvc/llvm-project?rev=265766&view=rev Log: [modules] Add a comment to explain why -E leaves some #includes in the preprocessed output. Modified:

Re: r265766 - [modules] Add a comment to explain why -E leaves some #includes in the preprocessed output.

2016-04-18 Thread Vassil Vassilev via cfe-commits
On 18/04/16 20:32, Richard Smith wrote: On Mon, Apr 18, 2016 at 6:28 AM, Vassil Vassilev mailto:v.g.vassi...@gmail.com>> wrote: On 08/04/16 03:24, Richard Smith via cfe-commits wrote: Author: rsmith Date: Thu Apr 7 20:23:59 2016 New Revision: 265766 URL: h

Re: r265766 - [modules] Add a comment to explain why -E leaves some #includes in the preprocessed output.

2016-04-18 Thread Vassil Vassilev via cfe-commits
On 18/04/16 21:06, Richard Smith wrote: On Mon, Apr 18, 2016 at 11:49 AM, Vassil Vassilev mailto:v.g.vassi...@gmail.com>> wrote: On 18/04/16 20:32, Richard Smith wrote: On Mon, Apr 18, 2016 at 6:28 AM, Vassil Vassilev mailto:v.g.vassi...@gmail.com>> wrote: On 08/04/16 03:2

r270553 - [modules] Ask the canonical decl whether the constructor was defaulted.

2016-05-24 Thread Vassil Vassilev via cfe-commits
Author: vvassilev Date: Tue May 24 07:10:36 2016 New Revision: 270553 URL: http://llvm.org/viewvc/llvm-project?rev=270553&view=rev Log: [modules] Ask the canonical decl whether the constructor was defaulted. In case of template instantiations query the template instantiation pattern, which had ac

Re: [PATCH] D21390: redefinition of '__true_type' struct __true_type {}; - Bug 27991

2016-06-16 Thread Vassil Vassilev via cfe-commits
v.g.vassilev closed this revision. v.g.vassilev added a comment. Landed in r272877. Comment at: include/llvm/module.modulemap:121-126 @@ -106,8 +120,8 @@ // FIXME: Is this the right place for these? module Pass { header "Pass.h" export * } module PassSupport { header

Re: [libcxx] r249738 - Split out of .

2016-06-20 Thread Vassil Vassilev via cfe-commits
On 17/10/15 01:27, Richard Smith via cfe-commits wrote: On Thu, Oct 15, 2015 at 11:14 AM, Adrian Prantl > wrote: On Oct 14, 2015, at 5:07 PM, Richard Smith mailto:rich...@metafoo.co.uk>> wrote: Ack, there are non-modular headers in the Darwin module. =( I

r273159 - [modules] Allow emission of update records for predefined __va_list_tag.

2016-06-20 Thread Vassil Vassilev via cfe-commits
Author: vvassilev Date: Mon Jun 20 10:10:40 2016 New Revision: 273159 URL: http://llvm.org/viewvc/llvm-project?rev=273159&view=rev Log: [modules] Allow emission of update records for predefined __va_list_tag. Handles the cases where old __va_list_tag is coming from a module and the new is not, ne

Re: [PATCH] D20382: Add postorder support to RecursiveASTVisitor

2016-06-27 Thread Vassil Vassilev via cfe-commits
v.g.vassilev added a comment. @bkramer are those modifications enough to accept this patch? It is holding back quite a lot of ongoing development from @teemperor as part of his GSoC project. http://reviews.llvm.org/D20382 ___ cfe-commits mailing l

r274348 - Add postorder traversal support to the RecursiveASTVisitor.

2016-07-01 Thread Vassil Vassilev via cfe-commits
Author: vvassilev Date: Fri Jul 1 08:28:31 2016 New Revision: 274348 URL: http://llvm.org/viewvc/llvm-project?rev=274348&view=rev Log: Add postorder traversal support to the RecursiveASTVisitor. This feature needs to be explicitly enabled by overriding shouldTraversePostOrder() as it has perfor

r274349 - Add forgotten test to r274348.

2016-07-01 Thread Vassil Vassilev via cfe-commits
Author: vvassilev Date: Fri Jul 1 08:30:08 2016 New Revision: 274349 URL: http://llvm.org/viewvc/llvm-project?rev=274349&view=rev Log: Add forgotten test to r274348. Added: cfe/trunk/unittests/AST/PostOrderASTVisitor.cpp Added: cfe/trunk/unittests/AST/PostOrderASTVisitor.cpp URL: http://ll

Re: [PATCH] D20382: Add postorder support to RecursiveASTVisitor

2016-07-01 Thread Vassil Vassilev via cfe-commits
v.g.vassilev closed this revision. v.g.vassilev added a comment. Landed in r274348 and r274349. http://reviews.llvm.org/D20382 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

r274359 - Revert r274348 and r274349 until the Windows failures are fixed.

2016-07-01 Thread Vassil Vassilev via cfe-commits
Author: vvassilev Date: Fri Jul 1 11:07:57 2016 New Revision: 274359 URL: http://llvm.org/viewvc/llvm-project?rev=274359&view=rev Log: Revert r274348 and r274349 until the Windows failures are fixed. Removed: cfe/trunk/unittests/AST/PostOrderASTVisitor.cpp Modified: cfe/trunk/include/cla

Re: [PATCH] D20795: Added ASTStructure for analyzing the structure of Stmts.

2016-07-02 Thread Vassil Vassilev via cfe-commits
v.g.vassilev requested changes to this revision. This revision now requires changes to proceed. Comment at: include/clang/Basic/SourceManager.h:1173 @@ +1172,3 @@ + + // + A leftover from something else? Comment at: include/clang/Basic/SourceMan

Re: [PATCH] D20795: Added basic capabilities to detect source code clones.

2016-07-07 Thread Vassil Vassilev via cfe-commits
v.g.vassilev requested changes to this revision. This revision now requires changes to proceed. Comment at: include/clang/AST/CloneDetection.h:148 @@ +147,3 @@ +/// This class only searches for clones in exectuable source code +/// (e.g. function bodies). Other clones (e.g. cloned

r274830 - Recommit r274348 and r274349. The Windows failures should be fixed.

2016-07-08 Thread Vassil Vassilev via cfe-commits
Author: vvassilev Date: Fri Jul 8 03:33:56 2016 New Revision: 274830 URL: http://llvm.org/viewvc/llvm-project?rev=274830&view=rev Log: Recommit r274348 and r274349. The Windows failures should be fixed. Original commit message: "Add postorder traversal support to the RecursiveASTVisitor. This f

r274859 - Don't crash when printing auto variables.

2016-07-08 Thread Vassil Vassilev via cfe-commits
Author: vvassilev Date: Fri Jul 8 11:04:22 2016 New Revision: 274859 URL: http://llvm.org/viewvc/llvm-project?rev=274859&view=rev Log: Don't crash when printing auto variables. Patch by Axel Naumann! Modified: cfe/trunk/lib/AST/DeclPrinter.cpp cfe/trunk/test/SemaCXX/ast-print.cpp Modif

r274930 - Teach -ast-print to print constexpr variables.

2016-07-08 Thread Vassil Vassilev via cfe-commits
Author: vvassilev Date: Fri Jul 8 16:09:08 2016 New Revision: 274930 URL: http://llvm.org/viewvc/llvm-project?rev=274930&view=rev Log: Teach -ast-print to print constexpr variables. Patch reviewed by Richard Smith (D22168). Modified: cfe/trunk/lib/AST/DeclPrinter.cpp cfe/trunk/test/Sema

[PATCH] D22439: Add missing includes.

2016-07-16 Thread Vassil Vassilev via cfe-commits
v.g.vassilev created this revision. v.g.vassilev added a reviewer: rsmith. v.g.vassilev added a subscriber: cfe-commits. I am not sure if we should #include but the instantiation of `operator*` of `ManagedStatic` needs `std::memory_order_aquire`. Modules builds error out with: `In module 'LLVM

r262189 - [modules] Prefer more complete array types.

2016-02-28 Thread Vassil Vassilev via cfe-commits
Author: vvassilev Date: Sun Feb 28 13:08:24 2016 New Revision: 262189 URL: http://llvm.org/viewvc/llvm-project?rev=262189&view=rev Log: [modules] Prefer more complete array types. If we import a module that has a complete array type and one that has an incomplete array type, the declaration found

Re: [modules] PR24954

2016-03-07 Thread Vassil Vassilev via cfe-commits
ping... On 22/02/16 21:51, Vassil Vassilev wrote: On 02/02/16 02:52, Richard Smith via cfe-commits wrote: On Thu, Jan 28, 2016 at 8:23 AM, Vassil Vassilev wrote: Would this patch be more reasonable? It follows what RegisterTemplateSpecialization (introduced in r245779) does. AFAICT this adds

Re: [PATCH] Canonicalize UnaryTransformType types when they don't have a known underlying type

2016-03-10 Thread Vassil Vassilev via cfe-commits
should definitely not be treated as being canonically equivalent to its BaseType. On Wed, Feb 24, 2016 at 2:03 PM, Vassil Vassilev wrote: ping... On 07/01/16 08:09, Vassil Vassilev via cfe-commits wrote: Hi all, I am attaching a fix for https://llvm.org/bugs/show_bug.cgi?id=26014 To which

Re: [modules] PR24954

2016-03-18 Thread Vassil Vassilev via cfe-commits
On 16/03/16 03:22, Richard Smith wrote: Please restrict this to the case where the function template is a friend (check D->getFriendObjectKind()). Otherwise, this looks good to me. Thanks! Done and committed in r263634. Thanks! On Mon, Mar 7, 2016 at 2:23 AM, Vassil Vassilev wrote: ping...

r263634 - [modules] Fix adding a templated friend functions to a namespace from another module.

2016-03-19 Thread Vassil Vassilev via cfe-commits
Author: vvassilev Date: Wed Mar 16 06:17:04 2016 New Revision: 263634 URL: http://llvm.org/viewvc/llvm-project?rev=263634&view=rev Log: [modules] Fix adding a templated friend functions to a namespace from another module. When clang adds argument dependent lookup candidates, it can perform templ

Re: [PATCH] Canonicalize UnaryTransformType types when they don't have a known underlying type

2016-03-19 Thread Vassil Vassilev via cfe-commits
, its CanonicalType should be QualType(this, 0). It should definitely not be treated as being canonically equivalent to its BaseType. On Wed, Feb 24, 2016 at 2:03 PM, Vassil Vassilev wrote: ping... On 07/01/16 08:09, Vassil Vassilev via cfe-commits wrote: Hi all, I am attaching a fix for https

[PATCH][Modules][PR26179]

2016-01-18 Thread Vassil Vassilev via cfe-commits
Hi, Could somebody review the attached patch. It fixes https://llvm.org/bugs/show_bug.cgi?id=26179 Many thanks! Vassil From 947a163ab4e13c44625085dd51faa656b72de3ac Mon Sep 17 00:00:00 2001 From: Vassil Vassilev Date: Sat, 16 Jan 2016 23:52:40 +0100 Subject: [PATCH] [modules] Teach clang to

Re: [PATCH][Modules][PR26179]

2016-01-18 Thread Vassil Vassilev via cfe-commits
Attaching v3 of the patch. Added your case to the current test and fixed my silly non-array mistake. -- Vassil On 18/01/16 20:38, Richard Smith wrote: Please also add a test case that your old patch would have failed on, such as: m1.h: extern int a[]; m2.h: extern int a[5]; x.cc: #include

Re: [PATCH][Modules][PR26179]

2016-01-18 Thread Vassil Vassilev via cfe-commits
Thanks! Could you check it in? -- Vassil On 18/01/16 21:38, Richard Smith via cfe-commits wrote: LGTM On Jan 18, 2016 12:06 PM, "Vassil Vassilev" > wrote: Attaching v3 of the patch. Added your case to the current test and fixed my silly non-array mistake.

Re: [PATCH][Modules][PR26179]

2016-01-21 Thread Vassil Vassilev via cfe-commits
ping... (perhaps someone else with commit rights can check it it...) --Vassil On 18/01/16 22:07, Vassil Vassilev wrote: Thanks! Could you check it in? -- Vassil On 18/01/16 21:38, Richard Smith via cfe-commits wrote: LGTM On Jan 18, 2016 12:06 PM, "Vassil Vassilev" > w

Re: [PATCH][Modules][PR26179]

2016-01-22 Thread Vassil Vassilev via cfe-commits
Thanks! --Vassil On 22/01/16 20:07, Yaron Keren wrote: Committed revision 258524. 2016-01-21 19:33 GMT+02:00 Vassil Vassilev via cfe-commits mailto:cfe-commits@lists.llvm.org>>: ping... (perhaps someone else with commit rights can check it it...) --Vassil On 18/01/16

Re: [modules] PR24954

2016-01-28 Thread Vassil Vassilev via cfe-commits
Would this patch be more reasonable? It follows what RegisterTemplateSpecialization (introduced in r245779) does. AFAICT this adds an update record far less often. --Vassil On 12/12/15 16:13, Vassil Vassilev wrote: I couldn't find GetDecl routine in the ASTWriter. Could you elaborate? Assuming

[PATCH][modules][PR26237]

2016-01-30 Thread Vassil Vassilev via cfe-commits
Attaching a fix to https://llvm.org/bugs/show_bug.cgi?id=26237 Please review. Many thanks! --Vassil From da6b27875042ee23afaf898f189e410f177311ad Mon Sep 17 00:00:00 2001 From: Vassil Vassilev Date: Sat, 30 Jan 2016 14:50:06 +0100 Subject: [PATCH] [modules] Writing out template specializations

Re: [PATCH][modules][PR26237]

2016-01-30 Thread Vassil Vassilev via cfe-commits
ge rather than only citing the bug number On Jan 30, 2016 6:49 AM, "Vassil Vassilev via cfe-commits" mailto:cfe-commits@lists.llvm.org>> wrote: Attaching a fix to https://llvm.org/bugs/show_bug.cgi?id=26237 Please review.

Re: [PATCH][modules][PR26237]

2016-01-30 Thread Vassil Vassilev via cfe-commits
mp; certainly in the commit) message rather than only citing the bug number On Jan 30, 2016 6:49 AM, "Vassil Vassilev via cfe-commits" mailto:cfe-commits@lists.llvm.org>> wrote: Attaching a fix to https://llvm.org/bugs/show_bug.cgi?id=2623

Re: [PATCH][modules][PR26237]

2016-01-30 Thread Vassil Vassilev via cfe-commits
only citing the bug number On Jan 30, 2016 6:49 AM, "Vassil Vassilev via cfe-commits" mailto:cfe-commits@lists.llvm.org>> wrote: Attaching a fix to https://llvm.org/bugs/show

[clang] [Serialization] Load Specializations Lazily (PR #76774)

2024-02-17 Thread Vassil Vassilev via cfe-commits
vgvassilev wrote: > > [do not merge] [runtime-cxxmodules] Rework our lazy template specialization > > deserialization mechanism > > [root-project/root#14495](https://github.com/root-project/root/pull/14495) > > From > [root-project/root#14495](https://github.com/root-project/root/pull/14495),

[clang] [Serialization] Load Specializations Lazily (PR #76774)

2024-02-17 Thread Vassil Vassilev via cfe-commits
vgvassilev wrote: > > > > [do not merge] [runtime-cxxmodules] Rework our lazy template > > > > specialization deserialization mechanism > > > > [root-project/root#14495](https://github.com/root-project/root/pull/14495) > > > > > > > > > From > > > [root-project/root#14495](https://github.com

[clang] [Serialization] Load Specializations Lazily (PR #76774)

2024-02-18 Thread Vassil Vassilev via cfe-commits
vgvassilev wrote: > > > > > > [do not merge] [runtime-cxxmodules] Rework our lazy template > > > > > > specialization deserialization mechanism > > > > > > [root-project/root#14495](https://github.com/root-project/root/pull/14495) > > > > > > > > > > > > > > > From > > > > > [root-project/ro

[clang] [Serialization] Load Specializations Lazily (PR #76774)

2024-02-18 Thread Vassil Vassilev via cfe-commits
vgvassilev wrote: > > > > > > > > [do not merge] [runtime-cxxmodules] Rework our lazy template > > > > > > > > specialization deserialization mechanism > > > > > > > > [root-project/root#14495](https://github.com/root-project/root/pull/14495) > > > > > > > > > > > > > > > > > > > > > From >

[clang] [Serialization] Load Specializations Lazily (PR #76774)

2024-02-18 Thread Vassil Vassilev via cfe-commits
vgvassilev wrote: > > > > > > > [do not merge] [runtime-cxxmodules] Rework our lazy template > > > > > > > specialization deserialization mechanism > > > > > > > [root-project/root#14495](https://github.com/root-project/root/pull/14495) > > > > > > > > > > > > > > > > > > From > > > > > > [r

[clang] [Serialization] Load Specializations Lazily (PR #76774)

2024-02-18 Thread Vassil Vassilev via cfe-commits
vgvassilev wrote: > > > > > > > > > [do not merge] [runtime-cxxmodules] Rework our lazy template > > > > > > > > > specialization deserialization mechanism > > > > > > > > > [root-project/root#14495](https://github.com/root-project/root/pull/14495) > > > > > > > > > > > > > > > > > > > > > >

[clang] [Serialization] Load Specializations Lazily (PR #76774)

2024-02-18 Thread Vassil Vassilev via cfe-commits
vgvassilev wrote: Let's zoom out a little. The approach in D41416 shows that it is feasible to store *a* hash of the template arguments to delay eager deserializations. The ODR hash approach is a second order problem because we can swap it with something better once we need to. In order to mak

[clang] [Serialization] Load Specializations Lazily (PR #76774)

2024-02-18 Thread Vassil Vassilev via cfe-commits
vgvassilev wrote: > > Let's zoom out a little. The approach in D41416 shows that it is feasible > > to store _a_ hash of the template arguments to delay eager > > deserializations. The ODR hash approach is a second order problem because > > we can swap it with something better once we need to.

[clang] [Serialization] Load Specializations Lazily (PR #76774)

2024-02-21 Thread Vassil Vassilev via cfe-commits
vgvassilev wrote: > Sorry for losing track of the discussion here. What is the current status > here? Should we run another round of testing? > > Also, I see proposals to land the new behaviour under a flag and have it off > by default. If that does not add a lot of complexity, that would defi

[clang] [Serialization] Load Specializations Lazily (PR #76774)

2024-02-21 Thread Vassil Vassilev via cfe-commits
vgvassilev wrote: > > > Let's zoom out a little. The approach in D41416 shows that it is feasible > > > to store _a_ hash of the template arguments to delay eager > > > deserializations. The ODR hash approach is a second order problem because > > > we can swap it with something better once we

[clang] [clang-repl] Support wasm execution (PR #86402)

2024-07-02 Thread Vassil Vassilev via cfe-commits
https://github.com/vgvassilev updated https://github.com/llvm/llvm-project/pull/86402 >From ac273dc784a356f6b61e0928b02cdd74418846ce Mon Sep 17 00:00:00 2001 From: Anubhab Ghosh Date: Sat, 23 Mar 2024 15:13:57 + Subject: [PATCH] [clang-repl] Support wasm execution. This commit introduces s

[clang] [clang-repl] Support wasm execution (PR #86402)

2024-07-02 Thread Vassil Vassilev via cfe-commits
https://github.com/vgvassilev closed https://github.com/llvm/llvm-project/pull/86402 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] Support C++20 Modules in clang-repl (PR #79261)

2024-07-02 Thread Vassil Vassilev via cfe-commits
vgvassilev wrote: Do you mean the documentation? If so, yes, that’s probably not the right place. I am on my phone but can you suggest a place where we should move this or just move it? I think that was an oversight. https://github.com/llvm/llvm-project/pull/79261

[clang] Support C++20 Modules in clang-repl (PR #79261)

2024-07-02 Thread Vassil Vassilev via cfe-commits
vgvassilev wrote: Oh, understood. Perhaps would be better if you move it. I am currently on vacation for a while… https://github.com/llvm/llvm-project/pull/79261 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/ma

[clang] [clang][docs] Move entries around (PR #97416)

2024-07-02 Thread Vassil Vassilev via cfe-commits
vgvassilev wrote: Thank you! https://github.com/llvm/llvm-project/pull/97416 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-repl] Implement continuation for preprocessor directives. (PR #107552)

2024-09-06 Thread Vassil Vassilev via cfe-commits
https://github.com/vgvassilev created https://github.com/llvm/llvm-project/pull/107552 None >From 1947d04f969c53b75103cabf02a1f2c851d082e1 Mon Sep 17 00:00:00 2001 From: Vassil Vassilev Date: Fri, 6 Sep 2024 09:05:15 + Subject: [PATCH] [clang-repl] Implement continuation for preprocessor

[clang] [clang-repl] Simplify the value printing logic to enable out-of-process. (PR #107737)

2024-09-08 Thread Vassil Vassilev via cfe-commits
https://github.com/vgvassilev created https://github.com/llvm/llvm-project/pull/107737 This patch improves the design of the IncrementalParser and Interpreter classes. Now the incremental parser is only responsible for building the partial translation unit declaration and the AST, while the In

[clang] [clang-repl] Simplify the value printing logic to enable out-of-process. (PR #107737)

2024-09-08 Thread Vassil Vassilev via cfe-commits
https://github.com/vgvassilev edited https://github.com/llvm/llvm-project/pull/107737 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-repl] Simplify the value printing logic to enable out-of-process. (PR #107737)

2024-09-08 Thread Vassil Vassilev via cfe-commits
https://github.com/vgvassilev updated https://github.com/llvm/llvm-project/pull/107737 >From 2aa7527b52656d064c39aec94c9f1001ed10f7d8 Mon Sep 17 00:00:00 2001 From: Vassil Vassilev Date: Fri, 6 Sep 2024 09:52:36 + Subject: [PATCH] [clang-repl] Simplify the value printing logic to enable ou

[clang] [clang-repl] Simplify the value printing logic to enable out-of-process. (PR #107737)

2024-09-09 Thread Vassil Vassilev via cfe-commits
https://github.com/vgvassilev updated https://github.com/llvm/llvm-project/pull/107737 >From 2aa7527b52656d064c39aec94c9f1001ed10f7d8 Mon Sep 17 00:00:00 2001 From: Vassil Vassilev Date: Fri, 6 Sep 2024 09:52:36 + Subject: [PATCH 1/2] [clang-repl] Simplify the value printing logic to enable

[clang] [clang-repl] Simplify the value printing logic to enable out-of-process. (PR #107737)

2024-09-09 Thread Vassil Vassilev via cfe-commits
https://github.com/vgvassilev updated https://github.com/llvm/llvm-project/pull/107737 >From 2aa7527b52656d064c39aec94c9f1001ed10f7d8 Mon Sep 17 00:00:00 2001 From: Vassil Vassilev Date: Fri, 6 Sep 2024 09:52:36 + Subject: [PATCH 1/2] [clang-repl] Simplify the value printing logic to enable

<    1   2   3   4   5   6   7   8   9   10   >