llvm-project/clang/unittests/AST
Gabor Marton 48b16e1005 [ASTImporter] Reorder fields after structure import is finished
We reorder declarations in RecordDecls because they may have another order
in the "to" context than they have in the "from" context. This may happen
e.g when we import a class like this:
   struct declToImport {
       int a = c + b;
       int b = 1;
       int c = 2;
   };
During the import of `a` we import first the dependencies in sequence,
thus the order would be `c`, `b`, `a`. We will get the normal order by
first removing the already imported members and then adding them in the
order as they apper in the "from" context.

Keeping field order is vital because it determines structure layout.

Reviewers: a_sidorin, shafik

Tags: #clang

Differential Revision: https://reviews.llvm.org/D44100

llvm-svn: 366997
2019-07-25 09:07:17 +00:00
..
ASTContextParentMapTest.cpp Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
ASTImporterFixtures.cpp [ASTImporter] Mark erroneous nodes in shared st 2019-07-01 15:37:07 +00:00
ASTImporterFixtures.h [ASTImporter] Mark erroneous nodes in shared st 2019-07-01 15:37:07 +00:00
ASTImporterGenericRedeclTest.cpp [ASTImporter] Separate unittest files 2019-05-13 10:06:25 +00:00
ASTImporterTest.cpp [ASTImporter] Reorder fields after structure import is finished 2019-07-25 09:07:17 +00:00
ASTImporterVisibilityTest.cpp [ASTImporter] Using Lang_CXX14 in ASTImporterVisibilityTest. 2019-07-15 12:16:30 +00:00
ASTPrint.h [clang][OpeMP] Model OpenMP structured-block in AST (PR40563) 2019-03-20 16:32:36 +00:00
ASTTraverserTest.cpp Add a Visit overload for DynTypedNode to ASTNodeTraverser 2019-05-19 13:03:48 +00:00
ASTTypeTraitsTest.cpp Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
ASTVectorTest.cpp Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
CMakeLists.txt cmake: Add CLANG_LINK_CLANG_DYLIB option 2019-07-03 22:45:55 +00:00
CommentLexer.cpp Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
CommentParser.cpp Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
CommentTextTest.cpp Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
DataCollectionTest.cpp Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
DeclMatcher.h Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
DeclPrinterTest.cpp Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
DeclTest.cpp Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
EvaluateAsRValueTest.cpp Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
ExternalASTSourceTest.cpp Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
Language.cpp [c++20] Add support for explicit(bool), as described in P0892R2. 2019-05-09 03:59:21 +00:00
Language.h [c++20] Add support for explicit(bool), as described in P0892R2. 2019-05-09 03:59:21 +00:00
MatchVerifier.h [c++20] Add support for explicit(bool), as described in P0892R2. 2019-05-09 03:59:21 +00:00
NamedDeclPrinterTest.cpp Fix error in NamedDeclPrinterTest 2019-04-05 19:17:24 +00:00
OMPStructuredBlockTest.cpp [AST] OMPStructuredBlockTest: avoid using multiline string literals in macros 2019-03-22 13:40:36 +00:00
SourceLocationTest.cpp Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
StmtPrinterTest.cpp [clang] Respect TerseOutput when printing lambdas 2019-05-27 16:20:45 +00:00
StructuralEquivalenceTest.cpp [ASTImporter] Fix inequivalence of ClassTemplateInstantiations 2019-07-23 15:46:38 +00:00