llvm-project/clang/tools
Reid Kleckner af450eabb9 Avoid including FileSystem.h from MemoryBuffer.h
Lots of headers pass around MemoryBuffer objects, but very few open
them. Let those that do include FileSystem.h.

Saves ~250 includes of Chrono.h & FileSystem.h:

$ diff -u thedeps-before.txt thedeps-after.txt | grep '^[-+] ' | sort | uniq -c | sort -nr
    254 -    ../llvm/include/llvm/Support/FileSystem.h
    253 -    ../llvm/include/llvm/Support/Chrono.h
    237 -    ../llvm/include/llvm/Support/NativeFormatting.h
    237 -    ../llvm/include/llvm/Support/FormatProviders.h
    192 -    ../llvm/include/llvm/ADT/StringSwitch.h
    190 -    ../llvm/include/llvm/Support/FormatVariadicDetails.h
...

This requires duplicating the file_t typedef, which is unfortunate. I
sunk the choice of mapping mode down into the cpp file using variable
template specializations instead of class members in headers.
2020-02-29 12:30:23 -08:00
..
arcmt-test Revert "Use InitLLVM to setup a pretty stack printer" 2019-11-25 21:06:56 -05:00
c-arcmt-test [CMake] Use PRIVATE in target_link_libraries for executables 2017-12-05 21:49:56 +00:00
c-index-test Make llvm::StringRef to std::string conversions explicit. 2020-01-28 23:25:25 +01:00
clang-check Revert "Use InitLLVM to setup a pretty stack printer" 2019-11-25 21:06:56 -05:00
clang-diff Make llvm::StringRef to std::string conversions explicit. 2020-01-28 23:25:25 +01:00
clang-extdef-mapping Make llvm::StringRef to std::string conversions explicit. 2020-01-28 23:25:25 +01:00
clang-format update string comparison in clang-format.py 2019-12-06 17:36:56 +00:00
clang-format-vs clang-format-vs : Fix Unicode formatting 2019-11-27 09:58:59 +01:00
clang-fuzzer [clang-fuzzer] Update proto fuzzer example for r375453. 2019-10-22 07:51:37 +00:00
clang-import-test [clang][lldb][NFC] Encapsulate ExternalASTMerger::ImporterSource 2019-10-01 09:02:05 +00:00
clang-offload-bundler [Clang][Bundler][NFC] Replace SmallString<...> with StringRef 2020-01-30 12:50:04 -08:00
clang-offload-wrapper Revert "Use InitLLVM to setup a pretty stack printer" 2019-11-25 21:06:56 -05:00
clang-refactor [clang] Replace SmallStr.str().str() with std::string conversion operator. 2020-01-29 21:27:46 -08:00
clang-rename Rename F_{None,Text,Append} to OF_{None,Text,Append}. NFC 2019-08-05 05:43:48 +00:00
clang-scan-deps [Support] On Windows, ensure hardware_concurrency() extends to all CPU sockets and all NUMA groups 2020-02-14 10:24:22 -05:00
clang-shlib [cmake] Fix clang builds with BUILD_SHARED=ON and CLANG_LINK_CLANG_DYLIB=ON 2020-02-04 14:15:16 -08:00
diag-build
diagtool [diagtree] Use a different color for unimplemented GCC diagnostic flags 2020-01-31 13:40:32 -08:00
driver [MC] De-capitalize MCStreamer::Emit{Bundle,Addrsig}* etc 2020-02-15 09:11:48 -08:00
libclang Avoid including FileSystem.h from MemoryBuffer.h 2020-02-29 12:30:23 -08:00
scan-build Revert "[analyzer] Teach scan-build how to rebuild index.html without analyzing." 2020-02-18 09:48:29 +03:00
scan-build-py [scan-build-py] Set of small fixes 2019-12-05 09:00:16 -08:00
scan-view [clang] [cmake] Add distribution install targets for remaining components 2019-10-04 05:43:20 +00:00
CMakeLists.txt [Clang][OpenMP Offload] Add new tool for wrapping offload device binaries 2019-10-09 20:42:58 +00:00