llvm-project/clang/test/Analysis/Inputs
Aleksei Sidorin 04fbffcc52 [ASTImporter] Allow testing of import sequences; fix import of typedefs for anonymous decls
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
2018-04-24 10:11:53 +00:00
..
Models
ctu-chain.cpp Resubmit [analyzer] Support for naive cross translation unit analysis 2018-03-01 14:54:16 +00:00
ctu-other.cpp [ASTImporter] Allow testing of import sequences; fix import of typedefs for anonymous decls 2018-04-24 10:11:53 +00:00
externalFnMap.txt [ASTImporter] Allow testing of import sequences; fix import of typedefs for anonymous decls 2018-04-24 10:11:53 +00:00
localization-pch.h [analyzer] Use lazily created buffer in EmptyLocalizationContextChecker 2016-08-30 23:07:14 +00:00
qt-simulator.h [analyzer] Add another exception for Qt in MallocChecker 2016-12-16 12:21:55 +00:00
system-header-simulator-cxx-std-suppression.h [analyzer] Suppress false positives in std::shared_ptr 2016-07-06 21:52:55 +00:00
system-header-simulator-cxx.h [analyzer] NFC: Run many existing C++ tests with a custom operator new(). 2018-01-24 21:24:10 +00:00
system-header-simulator-for-malloc.h
system-header-simulator-for-nullability-cxx.h [analyzer] Do not crash in CallEvent.getReturnType() 2018-03-24 01:53:12 +00:00
system-header-simulator-for-nullability.h [analyzer] Trust _Nonnull annotations for system framework 2018-03-23 00:16:03 +00:00
system-header-simulator-for-objc-dealloc.h [analyzer] Add CIFIlter modeling to DeallocChecker. 2016-03-25 21:18:22 +00:00
system-header-simulator-for-pthread-lock.h
system-header-simulator-for-simple-stream.h
system-header-simulator-for-valist.h Reapply "[analyzer] Added valist related checkers." 2016-08-22 11:21:30 +00:00
system-header-simulator-objc.h [analyzer] Refer to macro names in diagnostics for macros representing a literal 2016-12-15 22:55:11 +00:00
system-header-simulator.h [analyzer] Add missing pre-post-statement callbacks for OffsetOfExpr. 2018-02-10 00:55:49 +00:00