r373896 - [ASTImporter][NFC] Enable disabled but passing test

2019-10-07 Thread Gabor Marton via cfe-commits
Author: martong Date: Mon Oct 7 04:34:54 2019 New Revision: 373896 URL: http://llvm.org/viewvc/llvm-project?rev=373896=rev Log: [ASTImporter][NFC] Enable disabled but passing test RedeclChainShouldBeCorrectAmongstNamespaces Modified: cfe/trunk/unittests/AST/ASTImporterTest.cpp Modified:

r373895 - [ASTImporter][NFC] Update ASTImporter internals docs

2019-10-07 Thread Gabor Marton via cfe-commits
Author: martong Date: Mon Oct 7 04:15:18 2019 New Revision: 373895 URL: http://llvm.org/viewvc/llvm-project?rev=373895=rev Log: [ASTImporter][NFC] Update ASTImporter internals docs Modified: cfe/trunk/docs/InternalsManual.rst Modified: cfe/trunk/docs/InternalsManual.rst URL:

r373894 - [ASTImporter][NFC] Fix typo in user docs

2019-10-07 Thread Gabor Marton via cfe-commits
Author: martong Date: Mon Oct 7 04:14:53 2019 New Revision: 373894 URL: http://llvm.org/viewvc/llvm-project?rev=373894=rev Log: [ASTImporter][NFC] Fix typo in user docs Modified: cfe/trunk/docs/LibASTImporter.rst Modified: cfe/trunk/docs/LibASTImporter.rst URL:

r372705 - [ASTImporter] 4th attempt to fix Windows buildbot test errors

2019-09-24 Thread Gabor Marton via cfe-commits
Author: martong Date: Tue Sep 24 02:00:46 2019 New Revision: 372705 URL: http://llvm.org/viewvc/llvm-project?rev=372705=rev Log: [ASTImporter] 4th attempt to fix Windows buildbot test errors Modified: cfe/trunk/unittests/AST/ASTImporterODRStrategiesTest.cpp Modified:

r372688 - [ASTImporter] 3rd attempt to fix Windows buildbot test errors

2019-09-23 Thread Gabor Marton via cfe-commits
Author: martong Date: Mon Sep 23 22:50:02 2019 New Revision: 372688 URL: http://llvm.org/viewvc/llvm-project?rev=372688=rev Log: [ASTImporter] 3rd attempt to fix Windows buildbot test errors Modified: cfe/trunk/unittests/AST/ASTImporterODRStrategiesTest.cpp Modified:

r372646 - [ASTImporter] 2nd attempt to fix Windows buildbot test errors

2019-09-23 Thread Gabor Marton via cfe-commits
Author: martong Date: Mon Sep 23 12:49:45 2019 New Revision: 372646 URL: http://llvm.org/viewvc/llvm-project?rev=372646=rev Log: [ASTImporter] 2nd attempt to fix Windows buildbot test errors Modified: cfe/trunk/unittests/AST/ASTImporterODRStrategiesTest.cpp Modified:

r372633 - [ASTImporter] Attempt to fix Windows buildbot test errors

2019-09-23 Thread Gabor Marton via cfe-commits
Author: martong Date: Mon Sep 23 10:29:08 2019 New Revision: 372633 URL: http://llvm.org/viewvc/llvm-project?rev=372633=rev Log: [ASTImporter] Attempt to fix Windows buildbot test errors Modified: cfe/trunk/unittests/AST/ASTImporterODRStrategiesTest.cpp Modified:

r372564 - [ASTImporter][NFC] Add comprehensive tests for ODR violation handling strategies

2019-09-23 Thread Gabor Marton via cfe-commits
Author: martong Date: Mon Sep 23 02:32:07 2019 New Revision: 372564 URL: http://llvm.org/viewvc/llvm-project?rev=372564=rev Log: [ASTImporter][NFC] Add comprehensive tests for ODR violation handling strategies Summary: In this patch we provide additional and comprehensive tests for the ODR

r371839 - [ASTImporter] Add development internals docs

2019-09-13 Thread Gabor Marton via cfe-commits
Author: martong Date: Fri Sep 13 04:21:52 2019 New Revision: 371839 URL: http://llvm.org/viewvc/llvm-project?rev=371839=rev Log: [ASTImporter] Add development internals docs Reviewers: a_sidorin, shafik, teemperor, gamesh411, balazske, dkrupp, a.sidorin Subscribers: rnkovacs, Szelethus,

r370461 - [ASTImporter] Do not look up lambda classes

2019-08-30 Thread Gabor Marton via cfe-commits
Author: martong Date: Fri Aug 30 03:55:41 2019 New Revision: 370461 URL: http://llvm.org/viewvc/llvm-project?rev=370461=rev Log: [ASTImporter] Do not look up lambda classes Summary: Consider this code: ``` void f() { auto L0 = [](){}; auto L1 = [](){}; } ``` First we

r370045 - [ASTImporter] Fix name conflict handling with different strategies

2019-08-27 Thread Gabor Marton via cfe-commits
Author: martong Date: Tue Aug 27 04:36:10 2019 New Revision: 370045 URL: http://llvm.org/viewvc/llvm-project?rev=370045=rev Log: [ASTImporter] Fix name conflict handling with different strategies There are numorous flaws about the name conflict handling, this patch attempts fixes them. Changes

r369099 - Fix typos in LibASTImporter.rst

2019-08-16 Thread Gabor Marton via cfe-commits
Author: martong Date: Fri Aug 16 05:21:49 2019 New Revision: 369099 URL: http://llvm.org/viewvc/llvm-project?rev=369099=rev Log: Fix typos in LibASTImporter.rst Modified: cfe/trunk/docs/LibASTImporter.rst Modified: cfe/trunk/docs/LibASTImporter.rst URL:

r368562 - [CrossTU] User docs: remove temporary limiation with macro expansion

2019-08-12 Thread Gabor Marton via cfe-commits
Author: martong Date: Mon Aug 12 05:46:28 2019 New Revision: 368562 URL: http://llvm.org/viewvc/llvm-project?rev=368562=rev Log: [CrossTU] User docs: remove temporary limiation with macro expansion D65064, D64635, D64638 pathces solve the issue with macor expansion. Modified:

r368009 - Add User docs for ASTImporter

2019-08-06 Thread Gabor Marton via cfe-commits
Author: martong Date: Tue Aug 6 02:52:21 2019 New Revision: 368009 URL: http://llvm.org/viewvc/llvm-project?rev=368009=rev Log: Add User docs for ASTImporter Summary: This document includes the description of the ASTImporter from the user/client perspective. A subsequent patch will describe the

r366997 - [ASTImporter] Reorder fields after structure import is finished

2019-07-25 Thread Gabor Marton via cfe-commits
Author: martong Date: Thu Jul 25 02:07:17 2019 New Revision: 366997 URL: http://llvm.org/viewvc/llvm-project?rev=366997=rev Log: [ASTImporter] Reorder fields after structure import is finished We reorder declarations in RecordDecls because they may have another order in the "to" context than

r366818 - [ASTImporter] Fix inequivalence of ClassTemplateInstantiations

2019-07-23 Thread Gabor Marton via cfe-commits
Author: martong Date: Tue Jul 23 08:46:38 2019 New Revision: 366818 URL: http://llvm.org/viewvc/llvm-project?rev=366818=rev Log: [ASTImporter] Fix inequivalence of ClassTemplateInstantiations Summary: We falsely state inequivalence if the template parameter is a qualified/nonquialified template

r366439 - [analyzer] Add CTU user docs

2019-07-18 Thread Gabor Marton via cfe-commits
Author: martong Date: Thu Jul 18 07:03:25 2019 New Revision: 366439 URL: http://llvm.org/viewvc/llvm-project?rev=366439=rev Log: [analyzer] Add CTU user docs Reviewers: dkrupp, a_sidorin, Szelethus, NoQ Subscribers: whisperity, xazax.hun, baloghadamsoftware, szepet, rnkovacs, a.sidorin,

r366332 - [ASTImporter] Fix structural eq of lambdas

2019-07-17 Thread Gabor Marton via cfe-commits
Author: martong Date: Wed Jul 17 07:40:09 2019 New Revision: 366332 URL: http://llvm.org/viewvc/llvm-project?rev=366332=rev Log: [ASTImporter] Fix structural eq of lambdas Summary: The structural equivalence check reported false eq between lambda classes with different parameters in their call

r366325 - [ASTImporter] Fix LLDB lookup in transparent ctx and with ext src

2019-07-17 Thread Gabor Marton via cfe-commits
Author: martong Date: Wed Jul 17 06:47:46 2019 New Revision: 366325 URL: http://llvm.org/viewvc/llvm-project?rev=366325=rev Log: [ASTImporter] Fix LLDB lookup in transparent ctx and with ext src Summary: With LLDB we use localUncachedLookup(), however, that fails to find Decls when a transparent

r365639 - [analyzer]Add user docs rst

2019-07-10 Thread Gabor Marton via cfe-commits
Author: martong Date: Wed Jul 10 07:49:53 2019 New Revision: 365639 URL: http://llvm.org/viewvc/llvm-project?rev=365639=rev Log: [analyzer]Add user docs rst Summary: Add user documentation page. This is an empty page atm, later patches will add the specific user documentatoins. Reviewers:

r365315 - [ASTImporter] Fix import of lambda in function param

2019-07-08 Thread Gabor Marton via cfe-commits
Author: martong Date: Mon Jul 8 05:49:13 2019 New Revision: 365315 URL: http://llvm.org/viewvc/llvm-project?rev=365315=rev Log: [ASTImporter] Fix import of lambda in function param Summary: The current import implementation fails to import the definition of a lambda class if the lambda class is

r365133 - [CTU] Add support for virtual functions

2019-07-04 Thread Gabor Marton via cfe-commits
Author: martong Date: Thu Jul 4 04:39:00 2019 New Revision: 365133 URL: http://llvm.org/viewvc/llvm-project?rev=365133=rev Log: [CTU] Add support for virtual functions Reviewers: Szelethus, xazax.hun Subscribers: rnkovacs, dkrupp, gamesh411, cfe-commits Tags: #clang Differential Revision:

r364889 - [ASTImporter] Structural eq: handle DependentScopeDeclRefExpr

2019-07-02 Thread Gabor Marton via cfe-commits
Author: martong Date: Tue Jul 2 00:36:39 2019 New Revision: 364889 URL: http://llvm.org/viewvc/llvm-project?rev=364889=rev Log: [ASTImporter] Structural eq: handle DependentScopeDeclRefExpr Summary: Structural equivalence did not handle dependent template args properly when the arg contained a

r364785 - [ASTImporter] Mark erroneous nodes in shared st

2019-07-01 Thread Gabor Marton via cfe-commits
Author: martong Date: Mon Jul 1 08:37:07 2019 New Revision: 364785 URL: http://llvm.org/viewvc/llvm-project?rev=364785=rev Log: [ASTImporter] Mark erroneous nodes in shared st Summary: Now we store the errors for the Decls in the "to" context too. For that, however, we have to put these errors

r364771 - [ASTImporter] Mark erroneous nodes in from ctx

2019-07-01 Thread Gabor Marton via cfe-commits
Author: martong Date: Mon Jul 1 07:19:53 2019 New Revision: 364771 URL: http://llvm.org/viewvc/llvm-project?rev=364771=rev Log: [ASTImporter] Mark erroneous nodes in from ctx Summary: During import of a specific Decl D, it may happen that some AST nodes had already been created before we

r364752 - [ASTImporter] Propagate error from ImportDeclContext

2019-07-01 Thread Gabor Marton via cfe-commits
Author: martong Date: Mon Jul 1 05:44:39 2019 New Revision: 364752 URL: http://llvm.org/viewvc/llvm-project?rev=364752=rev Log: [ASTImporter] Propagate error from ImportDeclContext Summary: During analysis of one project we failed to import one CXXDestructorDecl. But since we did not propagate

r364630 - [CTU] Add missing statistics

2019-06-28 Thread Gabor Marton via cfe-commits
Author: martong Date: Fri Jun 28 01:08:51 2019 New Revision: 364630 URL: http://llvm.org/viewvc/llvm-project?rev=364630=rev Log: [CTU] Add missing statistics Reviewers: xazax.hun Subscribers: rnkovacs, dkrupp, Szelethus, gamesh411, cfe-commits Tags: #clang Differential Revision:

r364279 - [ASTImporter] Store import errors for Decls

2019-06-25 Thread Gabor Marton via cfe-commits
Author: martong Date: Tue Jun 25 01:00:51 2019 New Revision: 364279 URL: http://llvm.org/viewvc/llvm-project?rev=364279=rev Log: [ASTImporter] Store import errors for Decls Summary: We add a new member which is a mapping from the already-imported declarations in the "from" context to the error

r363062 - [ASTImporter] Fix unhandled cases in ASTImporterLookupTable

2019-06-11 Thread Gabor Marton via cfe-commits
Author: martong Date: Tue Jun 11 06:35:25 2019 New Revision: 363062 URL: http://llvm.org/viewvc/llvm-project?rev=363062=rev Log: [ASTImporter] Fix unhandled cases in ASTImporterLookupTable Summary: In most cases the FriendDecl contains the declaration of the befriended class as a child node, so

r361139 - [ASTImporter] Enable disabled but passing tests

2019-05-20 Thread Gabor Marton via cfe-commits
Author: martong Date: Mon May 20 03:38:14 2019 New Revision: 361139 URL: http://llvm.org/viewvc/llvm-project?rev=361139=rev Log: [ASTImporter] Enable disabled but passing tests Reviewers: a_sidorin, a.sidorin, shafik Subscribers: rnkovacs, dkrupp, Szelethus, gamesh411, cfe-commits Tags: #clang

r360760 - [ASTImporter] Use llvm::Expected and Error in the importer API

2019-05-15 Thread Gabor Marton via cfe-commits
Author: martong Date: Wed May 15 03:29:48 2019 New Revision: 360760 URL: http://llvm.org/viewvc/llvm-project?rev=360760=rev Log: [ASTImporter] Use llvm::Expected and Error in the importer API Summary: This is the final phase of the refactoring towards using llvm::Expected and llvm::Error in the

r360572 - [ASTImporter] Separate unittest files

2019-05-13 Thread Gabor Marton via cfe-commits
Author: martong Date: Mon May 13 03:06:25 2019 New Revision: 360572 URL: http://llvm.org/viewvc/llvm-project?rev=360572=rev Log: [ASTImporter] Separate unittest files Summary: Move generic redecl chain tests and visibility tests into their own separate test files. Reviewers: a_sidorin,

r360261 - [ASTImporter] Fix inequivalence of unresolved exception spec

2019-05-08 Thread Gabor Marton via cfe-commits
Author: martong Date: Wed May 8 08:23:48 2019 New Revision: 360261 URL: http://llvm.org/viewvc/llvm-project?rev=360261=rev Log: [ASTImporter] Fix inequivalence of unresolved exception spec Summary: Structural equivalence of methods can falsely report false when the exception specifier is

r357405 - Attempt to fix failing buildbot (ppc64le)

2019-04-01 Thread Gabor Marton via cfe-commits
Author: martong Date: Mon Apr 1 08:48:29 2019 New Revision: 357405 URL: http://llvm.org/viewvc/llvm-project?rev=357405=rev Log: Attempt to fix failing buildbot (ppc64le) Modified: cfe/trunk/lib/AST/ASTStructuralEquivalence.cpp Modified: cfe/trunk/lib/AST/ASTStructuralEquivalence.cpp URL:

r357402 - [ASTImporter] Convert ODR diagnostics inside ASTImporter implementation

2019-04-01 Thread Gabor Marton via cfe-commits
Author: martong Date: Mon Apr 1 08:29:55 2019 New Revision: 357402 URL: http://llvm.org/viewvc/llvm-project?rev=357402=rev Log: [ASTImporter] Convert ODR diagnostics inside ASTImporter implementation Summary: ASTStructuralEquivalence uses a flag to indicate whether ODR diagnostics should be

r357394 - [ASTImporter] Make ODR error handling configurable

2019-04-01 Thread Gabor Marton via cfe-commits
Author: martong Date: Mon Apr 1 07:46:53 2019 New Revision: 357394 URL: http://llvm.org/viewvc/llvm-project?rev=357394=rev Log: [ASTImporter] Make ODR error handling configurable Summary: ODR errors are not necessarily true errors during the import of ASTs. ASTMerge and CrossTU should use the

r356455 - [ASTImporter] Fix redecl failures of FunctionTemplateSpec

2019-03-19 Thread Gabor Marton via cfe-commits
Author: martong Date: Tue Mar 19 07:04:50 2019 New Revision: 356455 URL: http://llvm.org/viewvc/llvm-project?rev=356455=rev Log: [ASTImporter] Fix redecl failures of FunctionTemplateSpec Summary: Redecl chains of function template specializations are not handled well currently. We want to handle

r356452 - [ASTImporter] Fix redecl failures of ClassTemplateSpec

2019-03-19 Thread Gabor Marton via cfe-commits
Author: martong Date: Tue Mar 19 06:34:10 2019 New Revision: 356452 URL: http://llvm.org/viewvc/llvm-project?rev=356452=rev Log: [ASTImporter] Fix redecl failures of ClassTemplateSpec Summary: Redecl chains of class template specializations are not handled well currently. We want to handle them

r355596 - [ASTImporter] Import member expr with explicit template args

2019-03-07 Thread Gabor Marton via cfe-commits
Author: martong Date: Thu Mar 7 05:38:20 2019 New Revision: 355596 URL: http://llvm.org/viewvc/llvm-project?rev=355596=rev Log: [ASTImporter] Import member expr with explicit template args Summary: Member expressions with explicit template arguments were not imported correctly: the DeclRefExpr

r355593 - [ASTImporter] Handle redecl chain of FunctionTemplateDecls

2019-03-07 Thread Gabor Marton via cfe-commits
Author: martong Date: Thu Mar 7 05:01:51 2019 New Revision: 355593 URL: http://llvm.org/viewvc/llvm-project?rev=355593=rev Log: [ASTImporter] Handle redecl chain of FunctionTemplateDecls Summary: Redecl chains of function templates are not handled well currently. We want to handle them

r355390 - [ASTImporter] Fix redecl failures of Class and ClassTemplate

2019-03-05 Thread Gabor Marton via cfe-commits
Author: martong Date: Tue Mar 5 03:23:24 2019 New Revision: 355390 URL: http://llvm.org/viewvc/llvm-project?rev=355390=rev Log: [ASTImporter] Fix redecl failures of Class and ClassTemplate Summary: Redecl chains of classes and class templates are not handled well currently. We want to handle

r355096 - [CTU] Do not allow different CPP dialects in CTU

2019-02-28 Thread Gabor Marton via cfe-commits
Author: martong Date: Thu Feb 28 07:24:59 2019 New Revision: 355096 URL: http://llvm.org/viewvc/llvm-project?rev=355096=rev Log: [CTU] Do not allow different CPP dialects in CTU Summary: If CPP dialects are different then return with error. Consider this STL code: template struct

r354503 - Fix remaining semicolon pedantic errors for intel

2019-02-20 Thread Gabor Marton via cfe-commits
Author: martong Date: Wed Feb 20 11:07:36 2019 New Revision: 354503 URL: http://llvm.org/viewvc/llvm-project?rev=354503=rev Log: Fix remaining semicolon pedantic errors for intel Modified: cfe/trunk/unittests/AST/ASTImporterTest.cpp Modified: cfe/trunk/unittests/AST/ASTImporterTest.cpp URL:

r354482 - Fix compile error with Intel's compiler (-Werror=pedantic)

2019-02-20 Thread Gabor Marton via cfe-commits
Author: martong Date: Wed Feb 20 08:57:41 2019 New Revision: 354482 URL: http://llvm.org/viewvc/llvm-project?rev=354482=rev Log: Fix compile error with Intel's compiler (-Werror=pedantic) An extra semicolon at the end of macro invocations caused a build bot failure for Intel's compiler when

r354267 - [ASTImporter] Find previous friend function template

2019-02-18 Thread Gabor Marton via cfe-commits
Author: martong Date: Mon Feb 18 05:09:27 2019 New Revision: 354267 URL: http://llvm.org/viewvc/llvm-project?rev=354267=rev Log: [ASTImporter] Find previous friend function template Reviewers: a_sidorin, shafik, a.sidorin Subscribers: rnkovacs, dkrupp, Szelethus, gamesh411, cfe-commits Tags:

r354259 - [ASTImporter] Unify redecl chain tests as type parameterized tests

2019-02-18 Thread Gabor Marton via cfe-commits
Author: martong Date: Mon Feb 18 03:09:56 2019 New Revision: 354259 URL: http://llvm.org/viewvc/llvm-project?rev=354259=rev Log: [ASTImporter] Unify redecl chain tests as type parameterized tests Summary: This patch unifies all those tests which check the correctness of the redecl chains.

r354120 - [ASTImporter] Import every Decl in lambda record

2019-02-15 Thread Gabor Marton via cfe-commits
Author: martong Date: Fri Feb 15 04:04:05 2019 New Revision: 354120 URL: http://llvm.org/viewvc/llvm-project?rev=354120=rev Log: [ASTImporter] Import every Decl in lambda record Summary: Previously only the fields were imported. Now every Decl is imported. This way the destructor decl is not

r354027 - [ASTImporter] Check visibility/linkage of functions and variables

2019-02-14 Thread Gabor Marton via cfe-commits
Author: martong Date: Thu Feb 14 05:07:03 2019 New Revision: 354027 URL: http://llvm.org/viewvc/llvm-project?rev=354027=rev Log: [ASTImporter] Check visibility/linkage of functions and variables Summary: During import of a global variable with external visibility the lookup will find variables

r353684 - [ASTImporter] Add test RedeclChainShouldBeCorrectAmongstNamespaces

2019-02-11 Thread Gabor Marton via cfe-commits
Author: martong Date: Mon Feb 11 02:27:58 2019 New Revision: 353684 URL: http://llvm.org/viewvc/llvm-project?rev=353684=rev Log: [ASTImporter] Add test RedeclChainShouldBeCorrectAmongstNamespaces Summary: We add a new test to show that redecl chains are not handled properly amongst namespaces.

r353505 - [ASTImporter][ASTImporterSpecificLookup] Add test for different operators

2019-02-08 Thread Gabor Marton via cfe-commits
Author: martong Date: Fri Feb 8 01:19:34 2019 New Revision: 353505 URL: http://llvm.org/viewvc/llvm-project?rev=353505=rev Log: [ASTImporter][ASTImporterSpecificLookup] Add test for different operators Summary: This is to check that operators are handled properly in `ASTImporterSpecificLookup`.

r353504 - [AST] Fix structural inequivalence of operators

2019-02-08 Thread Gabor Marton via cfe-commits
Author: martong Date: Fri Feb 8 00:55:32 2019 New Revision: 353504 URL: http://llvm.org/viewvc/llvm-project?rev=353504=rev Log: [AST] Fix structural inequivalence of operators Summary: Operators kind was not checked, so we reported e.g. op- to be equal with op+ Reviewers: shafik, a_sidorin,

r353425 - [ASTImporter] Refactor unittests to be able to parameterize them in a more flexible way

2019-02-07 Thread Gabor Marton via cfe-commits
Author: martong Date: Thu Feb 7 08:52:48 2019 New Revision: 353425 URL: http://llvm.org/viewvc/llvm-project?rev=353425=rev Log: [ASTImporter] Refactor unittests to be able to parameterize them in a more flexible way Summary: Currently `TestImportBase` is derived from

r352345 - [AST] Add structural eq tests for template args

2019-01-28 Thread Gabor Marton via cfe-commits
Author: martong Date: Mon Jan 28 02:01:11 2019 New Revision: 352345 URL: http://llvm.org/viewvc/llvm-project?rev=352345=rev Log: [AST] Add structural eq tests for template args Summary: New tests added to verify equivalency of templates when their parameters are different. Reviewers: a_sidorin,

r352060 - Fix failing buildbots

2019-01-24 Thread Gabor Marton via cfe-commits
Author: martong Date: Thu Jan 24 08:27:21 2019 New Revision: 352060 URL: http://llvm.org/viewvc/llvm-project?rev=352060=rev Log: Fix failing buildbots Fix remaining unittest errors caused by __attribute__((no_caller_saved_registers)) Related commit which caused the buildbots to fail: rL352050

r352055 - Fix failing buildbots

2019-01-24 Thread Gabor Marton via cfe-commits
Author: martong Date: Thu Jan 24 07:42:20 2019 New Revision: 352055 URL: http://llvm.org/viewvc/llvm-project?rev=352055=rev Log: Fix failing buildbots Related commit which caused the buildbots to fail: rL352050 Modified: cfe/trunk/unittests/AST/StructuralEquivalenceTest.cpp Modified:

r352050 - [ASTImporter] Fix inequality of functions with different attributes

2019-01-24 Thread Gabor Marton via cfe-commits
Author: martong Date: Thu Jan 24 06:47:44 2019 New Revision: 352050 URL: http://llvm.org/viewvc/llvm-project?rev=352050=rev Log: [ASTImporter] Fix inequality of functions with different attributes Summary: FunctionType::ExtInfo holds such properties of a function which are needed mostly for code

r350521 - [CTU] Make loadExternalAST return with non nullptr on success

2019-01-07 Thread Gabor Marton via cfe-commits
Author: martong Date: Mon Jan 7 06:05:19 2019 New Revision: 350521 URL: http://llvm.org/viewvc/llvm-project?rev=350521=rev Log: [CTU] Make loadExternalAST return with non nullptr on success Summary: In loadExternalAST we return with either an error or with a valid ASTUnit pointer which should

r349351 - [ASTImporter] Add importer specific lookup

2018-12-17 Thread Gabor Marton via cfe-commits
Author: martong Date: Mon Dec 17 05:53:12 2018 New Revision: 349351 URL: http://llvm.org/viewvc/llvm-project?rev=349351=rev Log: [ASTImporter] Add importer specific lookup Summary: There are certain cases when normal C/C++ lookup (localUncachedLookup) does not find AST nodes. E.g.: Example 1:

r349349 - [ASTImporter] Fix redecl chain of classes and class templates

2018-12-17 Thread Gabor Marton via cfe-commits
Author: martong Date: Mon Dec 17 04:42:12 2018 New Revision: 349349 URL: http://llvm.org/viewvc/llvm-project?rev=349349=rev Log: [ASTImporter] Fix redecl chain of classes and class templates Summary: The crux of the issue that is being fixed is that lookup could not find previous decls of a

r348923 - [ASTImporter] Remove import of definition from GetAlreadyImportedOrNull

2018-12-12 Thread Gabor Marton via cfe-commits
Author: martong Date: Wed Dec 12 03:22:55 2018 New Revision: 348923 URL: http://llvm.org/viewvc/llvm-project?rev=348923=rev Log: [ASTImporter] Remove import of definition from GetAlreadyImportedOrNull Summary: a_sidorin Reviewers: a.sidorin Subscribers: rnkovacs, dkrupp, Szelethus, cfe-commits

r348614 - [CTU] test/Analysis/ctu-main.cpp Attempt to fix failing windows bot

2018-12-07 Thread Gabor Marton via cfe-commits
Author: martong Date: Fri Dec 7 09:36:44 2018 New Revision: 348614 URL: http://llvm.org/viewvc/llvm-project?rev=348614=rev Log: [CTU] test/Analysis/ctu-main.cpp Attempt to fix failing windows bot Modified: cfe/trunk/test/Analysis/ctu-main.cpp Modified: cfe/trunk/test/Analysis/ctu-main.cpp

r348610 - [CTU] Add triple/lang mismatch handling

2018-12-07 Thread Gabor Marton via cfe-commits
Author: martong Date: Fri Dec 7 08:32:43 2018 New Revision: 348610 URL: http://llvm.org/viewvc/llvm-project?rev=348610=rev Log: [CTU] Add triple/lang mismatch handling Summary: We introduce a strict policy for C++ CTU. It can work across TUs only if the C++ dialects are the same. We neither

r348609 - [CTU] test/Analysis/ctu-main.cpp Attempt to fix failing windows bot

2018-12-07 Thread Gabor Marton via cfe-commits
Author: martong Date: Fri Dec 7 08:27:31 2018 New Revision: 348609 URL: http://llvm.org/viewvc/llvm-project?rev=348609=rev Log: [CTU] test/Analysis/ctu-main.cpp Attempt to fix failing windows bot Modified: cfe/trunk/test/Analysis/ctu-main.cpp Modified: cfe/trunk/test/Analysis/ctu-main.cpp

r348605 - [CTU] Add more lit tests and better error handling

2018-12-07 Thread Gabor Marton via cfe-commits
Author: martong Date: Fri Dec 7 08:05:58 2018 New Revision: 348605 URL: http://llvm.org/viewvc/llvm-project?rev=348605=rev Log: [CTU] Add more lit tests and better error handling Summary: Adding some more CTU list tests. E.g. to check if a construct is unsupported. We also slightly modify the

r348594 - [CTU] Add DisplayCTUProgress analyzer switch

2018-12-07 Thread Gabor Marton via cfe-commits
Author: martong Date: Fri Dec 7 06:56:02 2018 New Revision: 348594 URL: http://llvm.org/viewvc/llvm-project?rev=348594=rev Log: [CTU] Add DisplayCTUProgress analyzer switch Summary: With a new switch we may be able to print to stderr if a new TU is being loaded during CTU. This is very

r348587 - [CTU] Eliminate race condition in CTU lit tests

2018-12-07 Thread Gabor Marton via cfe-commits
Author: martong Date: Fri Dec 7 04:29:02 2018 New Revision: 348587 URL: http://llvm.org/viewvc/llvm-project?rev=348587=rev Log: [CTU] Eliminate race condition in CTU lit tests Summary: We plan to introduce additional CTU related lit test. Since lit may run the tests in parallel, it is not safe

r348586 - [CTU] Add asserts to protect invariants

2018-12-07 Thread Gabor Marton via cfe-commits
Author: martong Date: Fri Dec 7 04:21:43 2018 New Revision: 348586 URL: http://llvm.org/viewvc/llvm-project?rev=348586=rev Log: [CTU] Add asserts to protect invariants Reviewers: xazax.hun, a_sidorin Subscribers: rnkovacs, dkrupp, Szelethus, gamesh411, cfe-commits Differential Revision:

r348584 - [CTU] Add statistics

2018-12-07 Thread Gabor Marton via cfe-commits
Author: martong Date: Fri Dec 7 03:55:22 2018 New Revision: 348584 URL: http://llvm.org/viewvc/llvm-project?rev=348584=rev Log: [CTU] Add statistics Reviewers: xazax.hun, a_sidorin Subscribers: rnkovacs, dkrupp, Szelethus, gamesh411, cfe-commits Differential Revision:

r347648 - [ASTImporter] Typedef import brings in the complete type

2018-11-27 Thread Gabor Marton via cfe-commits
Author: martong Date: Tue Nov 27 01:51:36 2018 New Revision: 347648 URL: http://llvm.org/viewvc/llvm-project?rev=347648=rev Log: [ASTImporter] Typedef import brings in the complete type Summary: When we already have an incomplete underlying type of a typedef in the "To" context, and the "From"

r347564 - [ASTImporter][Structural Eq] Check for isBeingDefined

2018-11-26 Thread Gabor Marton via cfe-commits
Author: martong Date: Mon Nov 26 07:54:08 2018 New Revision: 347564 URL: http://llvm.org/viewvc/llvm-project?rev=347564=rev Log: [ASTImporter][Structural Eq] Check for isBeingDefined Summary: If one definition is currently being defined, we do not compare for equality and we assume that the

r347306 - [ASTImporter] Set redecl chain of functions before any other import

2018-11-20 Thread Gabor Marton via cfe-commits
Author: martong Date: Tue Nov 20 06:19:39 2018 New Revision: 347306 URL: http://llvm.org/viewvc/llvm-project?rev=347306=rev Log: [ASTImporter] Set redecl chain of functions before any other import Summary: FunctionDecl import starts with a lookup and then we create a new Decl. Then in case of

r345760 - [ASTImporter][Structural Eq] Check for isBeingDefined

2018-10-31 Thread Gabor Marton via cfe-commits
Author: martong Date: Wed Oct 31 11:46:13 2018 New Revision: 345760 URL: http://llvm.org/viewvc/llvm-project?rev=345760=rev Log: [ASTImporter][Structural Eq] Check for isBeingDefined Summary: If one definition is currently being defined, we do not compare for equality and we assume that the

r345496 - [ASTImporter] Import overrides before importing the rest of the chain

2018-10-29 Thread Gabor Marton via cfe-commits
Author: martong Date: Mon Oct 29 03:18:28 2018 New Revision: 345496 URL: http://llvm.org/viewvc/llvm-project?rev=345496=rev Log: [ASTImporter] Import overrides before importing the rest of the chain Summary: During method import we check for structural eq of two methods. In the structural eq

r342384 - [ASTImporter] Fix import of VarDecl init

2018-09-17 Thread Gabor Marton via cfe-commits
Author: martong Date: Mon Sep 17 05:04:52 2018 New Revision: 342384 URL: http://llvm.org/viewvc/llvm-project?rev=342384=rev Log: [ASTImporter] Fix import of VarDecl init Summary: The init expression of a VarDecl is overwritten in the "To" context if we import a VarDecl without an init expression

r341316 - [ASTImporter] Merge ExprBits

2018-09-03 Thread Gabor Marton via cfe-commits
Author: martong Date: Mon Sep 3 06:10:53 2018 New Revision: 341316 URL: http://llvm.org/viewvc/llvm-project?rev=341316=rev Log: [ASTImporter] Merge ExprBits Summary: Some `Expr` classes set up default values for the `ExprBits` of `Stmt`. These default values are then overwritten by the parser

r340402 - Fix import of class templates partial specialization

2018-08-22 Thread Gabor Marton via cfe-commits
Author: martong Date: Wed Aug 22 04:52:14 2018 New Revision: 340402 URL: http://llvm.org/viewvc/llvm-project?rev=340402=rev Log: Fix import of class templates partial specialization Summary: Currently there are several issues with the import of class template specializations. (1) Different TUs

r339336 - Fix structural inequivalency of forward EnumDecl

2018-08-09 Thread Gabor Marton via cfe-commits
Author: martong Date: Thu Aug 9 05:36:25 2018 New Revision: 339336 URL: http://llvm.org/viewvc/llvm-project?rev=339336=rev Log: Fix structural inequivalency of forward EnumDecl Summary: Currently we consider one forward declared RecordDecl and another with a definition equal. We have to do the

r339334 - Add support for importing imaginary literals

2018-08-09 Thread Gabor Marton via cfe-commits
Author: martong Date: Thu Aug 9 05:18:07 2018 New Revision: 339334 URL: http://llvm.org/viewvc/llvm-project?rev=339334=rev Log: Add support for importing imaginary literals Reviewers: a_sidorin, r.stahl, xazax.hun Subscribers: rnkovacs, dkrupp, cfe-commits Differential Revision:

r339018 - [ASTmporter] SourceRange-free function parameter checking for declarations

2018-08-06 Thread Gabor Marton via cfe-commits
Author: martong Date: Mon Aug 6 07:38:37 2018 New Revision: 339018 URL: http://llvm.org/viewvc/llvm-project?rev=339018=rev Log: [ASTmporter] SourceRange-free function parameter checking for declarations Summary: The previous code which avoided infinite recursion (because of reparsing

r337275 - [ASTImporter] Fix poisonous structural equivalence cache

2018-07-17 Thread Gabor Marton via cfe-commits
Author: martong Date: Tue Jul 17 05:39:27 2018 New Revision: 337275 URL: http://llvm.org/viewvc/llvm-project?rev=337275=rev Log: [ASTImporter] Fix poisonous structural equivalence cache Summary: Implementation functions call into the member functions of ASTStructuralEquivalence, thus they can

r337267 - [ASTImporter] Fix import of unnamed structs

2018-07-17 Thread Gabor Marton via cfe-commits
Author: martong Date: Tue Jul 17 05:06:36 2018 New Revision: 337267 URL: http://llvm.org/viewvc/llvm-project?rev=337267=rev Log: [ASTImporter] Fix import of unnamed structs Summary: D48773 simplified ASTImporter nicely, but it introduced a new error: Unnamed structs are not imported correctly,

r336898 - [ASTImporter] Fix infinite recursion on function import with struct definition in parameters

2018-07-12 Thread Gabor Marton via cfe-commits
Author: martong Date: Thu Jul 12 04:50:21 2018 New Revision: 336898 URL: http://llvm.org/viewvc/llvm-project?rev=336898=rev Log: [ASTImporter] Fix infinite recursion on function import with struct definition in parameters Summary: Importing a function having a struct definition in the parameter

r336896 - [ASTImporter] Refactor Decl creation

2018-07-12 Thread Gabor Marton via cfe-commits
Author: martong Date: Thu Jul 12 02:42:05 2018 New Revision: 336896 URL: http://llvm.org/viewvc/llvm-project?rev=336896=rev Log: [ASTImporter] Refactor Decl creation Summary: Generalize the creation of Decl nodes during Import. With this patch we do the same things after and before a new AST

r336332 - [ASTImporter] Fix import of objects with anonymous types

2018-07-05 Thread Gabor Marton via cfe-commits
Author: martong Date: Thu Jul 5 02:51:13 2018 New Revision: 336332 URL: http://llvm.org/viewvc/llvm-project?rev=336332=rev Log: [ASTImporter] Fix import of objects with anonymous types Summary: Currently, anonymous types are merged into the same redecl chain even if they are structurally

r335968 - [ASTImporter] Added import of CXXStdInitializerListExpr

2018-06-29 Thread Gabor Marton via cfe-commits
Author: martong Date: Fri Jun 29 05:17:34 2018 New Revision: 335968 URL: http://llvm.org/viewvc/llvm-project?rev=335968=rev Log: [ASTImporter] Added import of CXXStdInitializerListExpr Reviewers: a.sidorin Reviewed By: a.sidorin Subscribers: martong, cfe-commits Differential Revision:

r335959 - [ASTImporter] Eliminated some unittest warnings.

2018-06-29 Thread Gabor Marton via cfe-commits
Author: martong Date: Fri Jun 29 03:25:19 2018 New Revision: 335959 URL: http://llvm.org/viewvc/llvm-project?rev=335959=rev Log: [ASTImporter] Eliminated some unittest warnings. Summary: When running the ASTTests test, warnings produced by the compiler can be distracting when looking for test

r335731 - Re-apply: [ASTImporter] Import the whole redecl chain of functions

2018-06-27 Thread Gabor Marton via cfe-commits
Author: martong Date: Wed Jun 27 06:32:50 2018 New Revision: 335731 URL: http://llvm.org/viewvc/llvm-project?rev=335731=rev Log: Re-apply: [ASTImporter] Import the whole redecl chain of functions Summary: With this patch when any `FunctionDecl` of a redeclaration chain is imported then we bring

r335600 - [ASTImporter] Use InjectedClassNameType at import of templated record.

2018-06-26 Thread Gabor Marton via cfe-commits
Author: martong Date: Tue Jun 26 06:44:24 2018 New Revision: 335600 URL: http://llvm.org/viewvc/llvm-project?rev=335600=rev Log: [ASTImporter] Use InjectedClassNameType at import of templated record. Summary: At import of a record describing a template set its type to InjectedClassNameType

r335491 - Revert "[ASTImporter] Import the whole redecl chain of functions"

2018-06-25 Thread Gabor Marton via cfe-commits
Author: martong Date: Mon Jun 25 09:25:30 2018 New Revision: 335491 URL: http://llvm.org/viewvc/llvm-project?rev=335491=rev Log: Revert "[ASTImporter] Import the whole redecl chain of functions" This reverts commit r335480. Modified: cfe/trunk/include/clang/AST/ASTImporter.h

r335480 - [ASTImporter] Import the whole redecl chain of functions

2018-06-25 Thread Gabor Marton via cfe-commits
Author: martong Date: Mon Jun 25 07:41:58 2018 New Revision: 335480 URL: http://llvm.org/viewvc/llvm-project?rev=335480=rev Log: [ASTImporter] Import the whole redecl chain of functions Summary: With this patch when any `FunctionDecl` of a redeclaration chain is imported then we bring in the

r335464 - [ASTImporter] Add ms compatibility to tests which use the TestBase

2018-06-25 Thread Gabor Marton via cfe-commits
Author: martong Date: Mon Jun 25 06:04:37 2018 New Revision: 335464 URL: http://llvm.org/viewvc/llvm-project?rev=335464=rev Log: [ASTImporter] Add ms compatibility to tests which use the TestBase Summary: In order to avoid build failures on MS, we use -fms-compatibility too in the tests which

r335455 - [ASTImporter] Add new tests about templated-described swing

2018-06-25 Thread Gabor Marton via cfe-commits
Author: martong Date: Mon Jun 25 04:38:43 2018 New Revision: 335455 URL: http://llvm.org/viewvc/llvm-project?rev=335455=rev Log: [ASTImporter] Add new tests about templated-described swing Summary: Add a new test about importing a partial specialization (of a class). Also, this patch adds new

r333522 - [ASTImporter] Corrected lookup at import of templated record decl

2018-05-30 Thread Gabor Marton via cfe-commits
Author: martong Date: Wed May 30 02:19:26 2018 New Revision: 333522 URL: http://llvm.org/viewvc/llvm-project?rev=333522=rev Log: [ASTImporter] Corrected lookup at import of templated record decl Summary: When a CXXRecordDecl under ClassTemplateDecl is imported, check the templated record decl

r333269 - [ASTImporter] Fix ClassTemplateSpecialization in wrong DC

2018-05-25 Thread Gabor Marton via cfe-commits
Author: martong Date: Fri May 25 04:21:24 2018 New Revision: 333269 URL: http://llvm.org/viewvc/llvm-project?rev=333269=rev Log: [ASTImporter] Fix ClassTemplateSpecialization in wrong DC Summary: ClassTemplateSpecialization is put in the wrong DeclContex if implicitly instantiated. This patch

r333166 - [ASTImporter] Add unit tests for structural equivalence

2018-05-24 Thread Gabor Marton via cfe-commits
Author: martong Date: Thu May 24 01:41:07 2018 New Revision: 333166 URL: http://llvm.org/viewvc/llvm-project?rev=333166=rev Log: [ASTImporter] Add unit tests for structural equivalence Summary: This patch add new tests for structural equivalence. For that a new common header is created which

r333086 - [ASTImporter] Fix missing implict CXXRecordDecl in ClassTemplateSpecializationDecl

2018-05-23 Thread Gabor Marton via cfe-commits
Author: martong Date: Wed May 23 07:24:02 2018 New Revision: 333086 URL: http://llvm.org/viewvc/llvm-project?rev=333086=rev Log: [ASTImporter] Fix missing implict CXXRecordDecl in ClassTemplateSpecializationDecl Summary: Currently we do not import the implicit CXXRecordDecl of a

r333082 - Fix duplicate class template definitions problem

2018-05-23 Thread Gabor Marton via cfe-commits
Author: martong Date: Wed May 23 06:53:36 2018 New Revision: 333082 URL: http://llvm.org/viewvc/llvm-project?rev=333082=rev Log: Fix duplicate class template definitions problem Summary: We fail to import a `ClassTemplateDecl` if the "To" context already contains a definition and then a forward

r332728 - [ASTImporter] Enable disabled but passing test

2018-05-18 Thread Gabor Marton via cfe-commits
Author: martong Date: Fri May 18 08:46:18 2018 New Revision: 332728 URL: http://llvm.org/viewvc/llvm-project?rev=332728=rev Log: [ASTImporter] Enable disabled but passing test Summary: There is a test which passes since D32947, but it was forgotten to be enabled. This patch enables that disabled

r332699 - Do not try to remove invisible Decls from DeclContext

2018-05-18 Thread Gabor Marton via cfe-commits
Author: martong Date: Fri May 18 02:08:47 2018 New Revision: 332699 URL: http://llvm.org/viewvc/llvm-project?rev=332699=rev Log: Do not try to remove invisible Decls from DeclContext Modified: cfe/trunk/lib/AST/DeclBase.cpp cfe/trunk/unittests/AST/ASTImporterTest.cpp Modified:

r332588 - [ASTImporter] Fix missing implict CXXRecordDecl

2018-05-17 Thread Gabor Marton via cfe-commits
Author: martong Date: Thu May 17 02:46:07 2018 New Revision: 332588 URL: http://llvm.org/viewvc/llvm-project?rev=332588=rev Log: [ASTImporter] Fix missing implict CXXRecordDecl Summary: Implicit CXXRecordDecl is not added to its DeclContext during import, but in the original AST it is. This

  1   2   >