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 |
||
---|---|---|
.. | ||
Models | ||
ctu-chain.cpp | ||
ctu-other.cpp | ||
externalFnMap.txt | ||
localization-pch.h | ||
qt-simulator.h | ||
system-header-simulator-cxx-std-suppression.h | ||
system-header-simulator-cxx.h | ||
system-header-simulator-for-malloc.h | ||
system-header-simulator-for-nullability-cxx.h | ||
system-header-simulator-for-nullability.h | ||
system-header-simulator-for-objc-dealloc.h | ||
system-header-simulator-for-pthread-lock.h | ||
system-header-simulator-for-simple-stream.h | ||
system-header-simulator-for-valist.h | ||
system-header-simulator-objc.h | ||
system-header-simulator.h |