llvm-project/llvm/unittests/Support
Ben Barham 4125524112 [VFS] Add print/dump to the whole FileSystem hierarchy
For now most are implemented by printing out the name of the filesystem,
but this can be expanded in the future. Only `OverlayFileSystem` and
`RedirectingFileSystem` are properly implemented in this patch.
  - `OverlayFileSystem`: Prints each filesystem in the order that any
    operations are actually run on them. Optionally prints recursively.
  - `RedirectingFileSystem`: Prints out all mappings, as well as the
    `ExternalFS`. Most of this was already implemented other than the
    handling for the `DirectoryRemap` case and to actually print out the
    mapping.

Each FS should implement `printImpl` rather than `print`, where the
latter just fowards to the former. This is to avoid spreading the
default arguments through to the subclasses (where we may miss updating
in the future).

Differential Revision: https://reviews.llvm.org/D121421
2022-03-17 13:02:40 -07:00
..
CommandLineInit Reapply "[cmake] Prefix gtest and gtest_main with "llvm_"." 2022-03-04 13:45:43 -08:00
DynamicLibrary [NFCI][Support] Avoid ASSERT_/EXPECT_TRUE(A <op> B) 2022-01-21 13:15:04 +00:00
ARMAttributeParser.cpp Use ManagedStatic and lazy initialization of cl::opt in libSupport to make it free of global initializer 2021-07-16 07:38:16 +00:00
AlignOfTest.cpp [AIX] Use less than or equal to for some alignment tests on AIX 2021-06-28 10:32:32 -04:00
AlignmentTest.cpp
AllocatorTest.cpp
AnnotationsTest.cpp
ArrayRecyclerTest.cpp
Base64Test.cpp
BinaryStreamTest.cpp Revert "Rename llvm::array_lengthof into llvm::size to match std::size from C++17" 2022-01-26 16:55:53 +01:00
BlockFrequencyTest.cpp
BranchProbabilityTest.cpp
CMakeLists.txt [Support] Add CSKY target parser and attributes parser 2022-02-28 11:35:07 +08:00
CRCTest.cpp
CSKYAttributeParserTest.cpp [Support] Add CSKY target parser and attributes parser 2022-02-28 11:35:07 +08:00
CSKYTargetParserTest.cpp [Support] Add CSKY target parser and attributes parser 2022-02-28 11:35:07 +08:00
CachePruningTest.cpp
Casting.cpp [NFCI][Support] Avoid ASSERT_/EXPECT_TRUE(A <op> B) 2022-01-21 13:15:04 +00:00
CheckedArithmeticTest.cpp
Chrono.cpp
CommandLineTest.cpp [CommandLine] Remove `may only occur zero or one times!` error 2022-03-11 11:25:04 -08:00
CompressionTest.cpp [Support] Change zlib::compress to return void 2022-03-14 11:38:04 -07:00
ConvertUTFTest.cpp Reland "[Support][unittests] Enforce alignment in ConvertUTFTest" 2020-10-14 12:02:27 +02:00
CrashRecoveryTest.cpp [RGT] Don't use EXPECT* macros in a subprocess that exits by signalling 2021-01-22 15:04:34 -08:00
DJBTest.cpp
DataExtractorTest.cpp Add a new API seek for the Cursor class in the DataExtractor.cpp 2021-09-16 09:39:49 -04:00
DebugCounterTest.cpp
DebugTest.cpp
ELFAttributeParserTest.cpp
EndianStreamTest.cpp
EndianTest.cpp
ErrnoTest.cpp
ErrorOrTest.cpp
ErrorTest.cpp [NFCI][Support] Avoid ASSERT_/EXPECT_TRUE(A <op> B) 2022-01-21 13:15:04 +00:00
ExtensibleRTTITest.cpp [llvm][clang][NFC] updates inline licence info 2021-08-11 02:48:53 +00:00
FSUniqueIDTest.cpp [NFCI][Support] Avoid ASSERT_/EXPECT_TRUE(A <op> B) 2022-01-21 13:15:04 +00:00
FileCollectorTest.cpp Support: Remove duplicated code in {File,clang::ModulesDependency}Collector, NFC 2021-01-25 15:09:00 -08:00
FileOutputBufferTest.cpp
FileUtilitiesTest.cpp
FormatVariadicTest.cpp Revert "Rename llvm::array_lengthof into llvm::size to match std::size from C++17" 2022-01-26 16:55:53 +01:00
GlobPatternTest.cpp [Support] Add GlobPattern::isTrivialMatchAll() 2020-09-16 10:26:11 +01:00
HashBuilderTest.cpp [NFC] Add trailing comma on TYPED_TEST_SUITE 2021-09-14 09:56:57 -07:00
Host.cpp [RGT] Refactor environment-specific checks to use GTEST_SKIP() 2022-02-11 10:47:07 -08:00
IndexedAccessorTest.cpp [NFCI][Support] Avoid ASSERT_/EXPECT_TRUE(A <op> B) 2022-01-21 13:15:04 +00:00
InstructionCostTest.cpp [InstructionCost] Add saturation support. 2021-07-10 11:28:42 +01:00
ItaniumManglingCanonicalizerTest.cpp
JSONTest.cpp [NFCI][Support] Avoid ASSERT_/EXPECT_TRUE(A <op> B) 2022-01-21 13:15:04 +00:00
KnownBitsTest.cpp [ValueTracking][SelectionDAG] Rename ComputeMinSignedBits->ComputeMaxSignificantBits. NFC 2022-01-03 11:33:30 -08:00
KnownBitsTest.h
LEB128Test.cpp Diagnose if a SLEB128 is too large to fit in an int64_t. 2021-02-02 14:33:34 -08:00
LineIteratorTest.cpp Support: Allow use of MemoryBufferRef with line_iterator 2020-10-13 16:43:49 -04:00
LinearPolyBaseTest.cpp [NFC] Remove from UnivariateLinearPolyBase::getValue(). 2021-11-04 14:32:08 +00:00
LockFileManagerTest.cpp PR51018: Remove explicit conversions from SmallString to StringRef to future-proof against C++23 2021-07-08 13:37:57 -07:00
MD5Test.cpp [Support] Update `MD5` to follow other hashes. 2021-08-19 14:13:14 -07:00
ManagedStatic.cpp
MatchersTest.cpp
MathExtrasTest.cpp Fix signed/unsigned comparison warnings on ppc buildbots 2022-02-08 14:15:28 +00:00
MemoryBufferRefTest.cpp Support: Add operator== for MemoryBufferRef and split out MemoryBufferRef.h 2020-10-13 16:42:24 -04:00
MemoryBufferTest.cpp Fixed a roll-over on size_t in getNewUninitMemBuffer() 2022-03-11 13:16:58 +04:00
MemoryTest.cpp Bump googletest to 1.10.0 2021-05-14 19:16:31 +02:00
NativeFormatTests.cpp Print the sign of negative infinity 2021-12-14 22:38:42 -08:00
OptimizedStructLayoutTest.cpp Fix a bug in OptimizedStructLayout when filling gaps before 2021-07-21 15:47:18 -04:00
ParallelTest.cpp Add parallelTransformReduce and parallelForEachError 2020-11-02 16:50:14 -08:00
Path.cpp Remove dependency from raw_ostream on <chrono> 2022-01-21 15:17:39 +01:00
ProcessTest.cpp
ProgramTest.cpp [Support] Don't print stacktrace if DbgHelp.dll hasn't been loaded yet 2022-02-08 16:37:36 +00:00
RISCVAttributeParserTest.cpp Use ManagedStatic and lazy initialization of cl::opt in libSupport to make it free of global initializer 2021-07-16 07:38:16 +00:00
RegexTest.cpp
ReplaceFileTest.cpp
ReverseIterationTest.cpp Move STLFunctionalExtras out of STLExtras 2022-01-24 14:13:21 +01:00
SHA256.cpp [llvm/Support] Add SHA256 implementation 2021-02-14 19:01:01 +00:00
ScaledNumberTest.cpp Switch from llvm::is_trivially_copyable to std::is_trivially_copyable 2020-12-02 22:02:48 -08:00
ScopedPrinterTest.cpp [llvm] Add JSONScopedPrinter class 2021-12-10 18:57:33 +00:00
SourceMgrTest.cpp
SpecialCaseListTest.cpp
SuffixTreeTest.cpp
SwapByteOrderTest.cpp
SymbolRemappingReaderTest.cpp
TarWriterTest.cpp [NFCI][Support] Avoid ASSERT_/EXPECT_TRUE(A <op> B) 2022-01-21 13:15:04 +00:00
TargetParserTest.cpp [ARM] Add Cortex-X1C Support for Clang and LLVM 2022-01-31 14:23:35 +00:00
TaskQueueTest.cpp
ThreadLocalTest.cpp
ThreadPool.cpp Recommit [ThreadPool] Support returning futures with results. 2021-11-25 20:07:53 +00:00
Threading.cpp Support: reduce stack used in default size test. 2021-07-13 11:24:12 +01:00
TimerTest.cpp [NFCI][Support] Avoid ASSERT_/EXPECT_TRUE(A <op> B) 2022-01-21 13:15:04 +00:00
ToolOutputFileTest.cpp
TrailingObjectsTest.cpp
TrigramIndexTest.cpp
TypeNameTest.cpp
TypeTraitsTest.cpp [Tests] Add missing include (NFC) 2021-06-03 18:58:29 +02:00
UnicodeTest.cpp [NFCI][Support] Avoid ASSERT_/EXPECT_TRUE(A <op> B) 2022-01-21 13:15:04 +00:00
VersionTupleTest.cpp
VirtualFileSystemTest.cpp [VFS] Add print/dump to the whole FileSystem hierarchy 2022-03-17 13:02:40 -07:00
WithColorTest.cpp
YAMLIOTest.cpp [yamlio] Allow parsing an entire mapping as an enumeration 2022-03-14 04:41:40 +00:00
YAMLParserTest.cpp [NFCI][Support] Avoid ASSERT_/EXPECT_TRUE(A <op> B) 2022-01-21 13:15:04 +00:00
buffer_ostream_test.cpp Support: Skip buffering buffer_unique_ostream's owned stream 2021-10-22 16:25:31 -07:00
formatted_raw_ostream_test.cpp
raw_fd_stream_test.cpp
raw_ostream_test.cpp [NFCI][Support] Avoid ASSERT_/EXPECT_TRUE(A <op> B) 2022-01-21 13:15:04 +00:00
raw_pwrite_stream_test.cpp
raw_sha1_ostream_test.cpp
xxhashTest.cpp