llvm-project/clang-tools-extra/clang-include-fixer/find-all-symbols
Reid Kleckner e08464fb45 Avoid including FileManager.h from SourceManager.h
Most clients of SourceManager.h need to do things like turning source
locations into file & line number pairs, but this doesn't require
bringing in FileManager.h and LLVM's FS headers.

The main code change here is to sink SM::createFileID into the cpp file.
I reason that this is not performance critical because it doesn't happen
on the diagnostic path, it happens along the paths of macro expansion
(could be hot) and new includes (less hot).

Saves some includes:
    309 -    /usr/local/google/home/rnk/llvm-project/clang/include/clang/Basic/FileManager.h
    272 -    /usr/local/google/home/rnk/llvm-project/clang/include/clang/Basic/FileSystemOptions.h
    271 -    /usr/local/google/home/rnk/llvm-project/llvm/include/llvm/Support/VirtualFileSystem.h
    267 -    /usr/local/google/home/rnk/llvm-project/llvm/include/llvm/Support/FileSystem.h
    266 -    /usr/local/google/home/rnk/llvm-project/llvm/include/llvm/Support/Chrono.h

Differential Revision: https://reviews.llvm.org/D75406
2020-03-11 13:53:12 -07:00
..
tool [clang-include-fixer] Skip .rc files when finding symbols 2019-11-14 10:04:35 -08:00
CMakeLists.txt
FindAllMacros.cpp Avoid including FileManager.h from SourceManager.h 2020-03-11 13:53:12 -07:00
FindAllMacros.h Remove \brief commands from doxygen comments. 2019-08-22 11:32:57 +00:00
FindAllSymbols.cpp Make llvm::StringRef to std::string conversions explicit. 2020-01-28 23:25:25 +01:00
FindAllSymbols.h Remove \brief commands from doxygen comments. 2019-08-22 11:32:57 +00:00
FindAllSymbolsAction.cpp [clang-tools-extra] Migrate llvm::make_unique to std::make_unique 2019-08-14 23:52:23 +00:00
FindAllSymbolsAction.h Changed FrontendActionFactory::create to return a std::unique_ptr 2019-08-29 16:38:36 +00:00
HeaderMapCollector.cpp
HeaderMapCollector.h Make llvm::StringRef to std::string conversions explicit. 2020-01-28 23:25:25 +01:00
PathConfig.cpp Make llvm::StringRef to std::string conversions explicit. 2020-01-28 23:25:25 +01:00
PathConfig.h Remove \brief commands from doxygen comments. 2019-08-22 11:32:57 +00:00
PragmaCommentHandler.cpp
PragmaCommentHandler.h Remove \brief commands from doxygen comments. 2019-08-22 11:32:57 +00:00
STLPostfixHeaderMap.cpp
STLPostfixHeaderMap.h
SymbolInfo.cpp
SymbolInfo.h Make llvm::StringRef to std::string conversions explicit. 2020-01-28 23:25:25 +01:00
SymbolReporter.h Remove \brief commands from doxygen comments. 2019-08-22 11:32:57 +00:00