llvm-project/clang/unittests/Tooling
Jan Svoboda f66803457e [clang][deps] Squash caches for original and minimized files
The minimizing and caching filesystem used by the dependency scanner keeps minimized and original files in separate caches.

This setup is not well suited for dealing with files that are sometimes minimized and sometimes not. Such files are being stat-ed and read twice, which is wasteful and also means the two versions of the file can get "out of sync".

This patch squashes the two caches together. When a file is stat-ed or read, its original contents are populated. If a file needs to be minimized, we give the minimizer the already loaded contents instead of reading the file again.

Reviewed By: dexonsmith

Differential Revision: https://reviews.llvm.org/D115346
2021-12-16 09:57:21 +01:00
..
RecursiveASTVisitorTests [llvm][clang][NFC] updates inline licence info 2021-08-11 02:48:53 +00:00
Syntax [NFC][testing] Return underlying strings directly instead of OS.str() 2021-12-09 16:05:46 -08:00
ASTSelectionTest.cpp Use std::foo_t rather than std::foo in clang. 2020-02-11 10:37:08 -08:00
CMakeLists.txt Fix TargetRegistry shlib build, clang edition 2021-10-08 15:43:56 -07:00
CastExprTest.cpp Adapt CastExpr::getSubExprAsWritten to ConstantExpr 2021-01-12 09:41:03 +01:00
CommentHandlerTest.cpp
CompilationDatabaseTest.cpp [clang] Fix UB when string.front() is used for the empty string 2021-06-30 01:07:47 -07:00
DependencyScannerTest.cpp [clang][deps] Squash caches for original and minimized files 2021-12-16 09:57:21 +01:00
DiagnosticsYamlTest.cpp Remark was added to clang tooling Diagnostic 2021-05-24 11:21:44 -04:00
ExecutionTest.cpp Make llvm::StringRef to std::string conversions explicit. 2020-01-28 23:25:25 +01:00
FixItTest.cpp
HeaderIncludesTest.cpp [Tooling][Format] Treat compound extensions (foo.bar.cc) as matching foo.h 2020-08-27 15:24:17 +02:00
LexicallyOrderedRecursiveASTVisitorTest.cpp
LookupTest.cpp Move clang/Tooling/Core/Lookup.h to clang/Tooling/Refactoring/Lookup.h 2020-10-20 10:13:28 +01:00
QualTypeNamesTest.cpp [AST] Add more testcases to QualTypeNamesTest. NFC 2021-12-15 21:59:54 +01:00
RangeSelectorTest.cpp Widen `name` stencil to support `TypeLoc` nodes. 2021-05-13 23:23:12 +01:00
RecursiveASTVisitorTestDeclVisitor.cpp
RecursiveASTVisitorTestPostOrderVisitor.cpp [ADT] Remove APInt/APSInt toString() std::string variants 2021-06-11 13:19:15 +01:00
RecursiveASTVisitorTestTypeLocVisitor.cpp
RefactoringActionRulesTest.cpp
RefactoringCallbacksTest.cpp Remove references to the ast_type_traits namespace 2020-12-11 00:58:46 +01:00
RefactoringTest.cpp Support: Use sys::path::is_style_{posix,windows}() in a few places 2021-10-29 12:09:41 -07:00
ReplacementTest.h
ReplacementsYamlTest.cpp [yaml][clang-tidy] Fix multiline YAML serialization 2020-07-09 02:41:58 -07:00
RewriterTest.cpp
RewriterTestContext.h Tooling: Migrate some tests to FileEntryRef, NFC 2020-12-10 18:05:03 -08:00
SourceCodeBuildersTest.cpp [libTooling] Add support for implicit `this` to `buildAddressOf`. 2021-07-07 17:35:04 +00:00
SourceCodeTest.cpp [clang][AST] Handle overload callee type in CallExpr::getCallReturnType. 2021-04-12 09:44:17 +02:00
StencilTest.cpp [libTooling] Add "switch"-like Stencil combinator 2021-10-14 16:45:37 +00:00
TestVisitor.h
ToolingTest.cpp Move TargetRegistry.(h|cpp) from Support to MC 2021-10-08 14:51:48 -07:00
TransformerTest.cpp [libTooling] Remove deprecated Clang Transformer declarations 2020-11-30 20:15:26 +00:00