llvm-project/clang/unittests/AST
Nico Weber 0f1137ba79 [clang/Basic] Make TargetInfo.h not use DataLayout again
Reverts parts of https://reviews.llvm.org/D17183, but keeps the
resetDataLayout() API and adds an assert that checks that datalayout string and
user label prefix are in sync.

Approach 1 in https://reviews.llvm.org/D17183#2653279
Reduces number of TUs build for 'clang-format' from 689 to 575.

I also implemented approach 2 in D100764. If someone feels motivated
to make us use DataLayout more, it's easy to revert this change here
and go with D100764 instead. I don't plan on doing more work in this
area though, so I prefer going with the smaller, more self-consistent change.

Differential Revision: https://reviews.llvm.org/D100776
2021-04-27 22:26:10 -04:00
..
ASTContextParentMapTest.cpp Remove clang::ast_type_traits namespace in favor of clang 2020-02-13 10:46:47 -08:00
ASTImporterFixtures.cpp Rename APIs in unittests/AST/Language.h in preparation to share them 2020-05-29 14:25:20 +02:00
ASTImporterFixtures.h [ASTImporter] Refactor ASTImporter to support custom downstream tests 2020-07-21 10:34:17 -05:00
ASTImporterGenericRedeclTest.cpp Renamed Lang_C to Lang_C99, Lang_CXX to Lang_CXX03, and 2a to 20 2020-06-02 16:31:20 +02:00
ASTImporterODRStrategiesTest.cpp Renamed Lang_C to Lang_C99, Lang_CXX to Lang_CXX03, and 2a to 20 2020-06-02 16:31:20 +02:00
ASTImporterObjCTest.cpp [ASTImporter] Split out Objective-C related unit tests 2021-03-23 13:58:45 +01:00
ASTImporterTest.cpp Don't directly dereference getAs<> casts to avoid potential null dereferences. NFCI. 2021-04-06 12:24:19 +01:00
ASTImporterVisibilityTest.cpp Rename APIs in unittests/AST/Language.h in preparation to share them 2020-05-29 14:25:20 +02:00
ASTPrint.h [clang][OpeMP] Model OpenMP structured-block in AST (PR40563) 2019-03-20 16:32:36 +00:00
ASTTraverserTest.cpp [ASTMatchers] Ignore parts of BindingDecls which are not spelled in source 2021-02-02 14:23:13 +00:00
ASTTypeTraitsTest.cpp Add API to retrieve a clade kind from ASTNodeKind 2021-01-19 22:51:30 +00:00
ASTVectorTest.cpp Add some missing header dependencies 2020-02-27 14:32:12 -08:00
CMakeLists.txt [ASTImporter] Split out Objective-C related unit tests 2021-03-23 13:58:45 +01:00
CommentLexer.cpp
CommentParser.cpp [AST] Fixed string list in test 2020-08-09 23:17:48 +02:00
CommentTextTest.cpp
DataCollectionTest.cpp
DeclMatcher.h
DeclPrinterTest.cpp [clang][DeclPrinter] Pass Context into StmtPrinter whenever possible 2021-02-23 09:42:19 +01:00
DeclTest.cpp [clang/Basic] Make TargetInfo.h not use DataLayout again 2021-04-27 22:26:10 -04:00
EvaluateAsRValueTest.cpp [Tooling] Migrated APIs that take ownership of objects to unique_ptr 2019-08-30 09:29:34 +00:00
ExternalASTSourceTest.cpp ArrayRef'ized CompilerInvocation::CreateFromArgs 2019-08-27 22:13:31 +00:00
MatchVerifier.h [OpenCL] Add builtin declarations by default. 2021-02-22 12:24:16 +00:00
NamedDeclPrinterTest.cpp [AST] Fix the PrintQualifiedName for ObjC instance variable in class extension. 2020-05-19 15:17:36 +02:00
RecursiveASTVisitorTest.cpp [Tooling] Migrated APIs that take ownership of objects to unique_ptr 2019-08-30 09:29:34 +00:00
SizelessTypesTest.cpp [llvm][SveEmitter] Emit the bfloat version of `svld1ro`. 2020-06-18 16:36:31 +00:00
SourceLocationTest.cpp Remove references to the ast_type_traits namespace 2020-12-11 00:58:46 +01:00
StmtPrinterTest.cpp Remove references to the ast_type_traits namespace 2020-12-11 00:58:46 +01:00
StructuralEquivalenceTest.cpp [ASTImporter] Add support for importing GenericSelectionExpr AST nodes. 2020-12-16 15:39:50 -08:00