forked from OSchip/llvm-project
04fbffcc52
This patch introduces the ability to test an arbitrary sequence of imports between a given set of virtual source files. This should finally allow us to write simple tests and fix annoying issues inside ASTImporter that cause failures in CSA CTU. This is done by refactoring ASTImporterTest functions and introducing `testImportSequence` facility. As a side effect, `testImport` facility was generalized a bit more. It should now allow import of non-decl AST nodes; however, there is still no test using this ability. As a "test for test", there is also a fix for import anonymous TagDecls referred by typedef. Before this patch, the setting of typedef for anonymous structure was delayed; however, this approach misses the corner case if an enum constant is imported directly. In this patch, typedefs for anonymous declarations are imported right after the anonymous declaration is imported, without any delay. Thanks to Adam Balogh for suggestions included into this patch. Differential Revision: https://reviews.llvm.org/D44079 llvm-svn: 330704 |
||
---|---|---|
.. | ||
ASTContextParentMapTest.cpp | ||
ASTImporterTest.cpp | ||
ASTTypeTraitsTest.cpp | ||
ASTVectorTest.cpp | ||
CMakeLists.txt | ||
CommentLexer.cpp | ||
CommentParser.cpp | ||
DataCollectionTest.cpp | ||
DeclMatcher.h | ||
DeclPrinterTest.cpp | ||
DeclTest.cpp | ||
EvaluateAsRValueTest.cpp | ||
ExternalASTSourceTest.cpp | ||
MatchVerifier.h | ||
NamedDeclPrinterTest.cpp | ||
SourceLocationTest.cpp | ||
StmtPrinterTest.cpp |