llvm-project/clang/lib/Index
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
..
CMakeLists.txt [clang][Index] Replace CodegenNameGenerator with ASTNameGenerator 2019-09-05 20:33:52 +00:00
CommentToXML.cpp Avoid including FileManager.h from SourceManager.h 2020-03-11 13:53:12 -07:00
FileIndexRecord.cpp Avoid SourceManager.h include in RawCommentList.h, add missing incs 2020-02-27 13:49:40 -08:00
FileIndexRecord.h [clang][index-while-building][NFC] FileIndexRecord - Comments, replace auto with type 2019-02-27 21:48:02 +00:00
IndexBody.cpp Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
IndexDecl.cpp [NFC] Remove trailing space 2020-02-18 10:49:13 +08:00
IndexSymbol.cpp [clang][Index] Introduce a TemplateParm SymbolKind 2020-02-14 13:20:34 +01:00
IndexTypeSourceInfo.cpp [clang][index] Index the injected class name types. 2020-01-22 10:07:54 +01:00
IndexingAction.cpp [NFC] Fix typos in Clangd and Clang 2019-12-16 10:54:40 +01:00
IndexingContext.cpp [clang][Index] Fix the incomplete instantiations in libindex. 2020-02-20 14:42:30 +01:00
IndexingContext.h [clang][Index] Enable indexing of Template Type Parameters behind a flag 2019-02-21 09:52:33 +00:00
SimpleFormatContext.h Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
USRGeneration.cpp Avoid including FileManager.h from SourceManager.h 2020-03-11 13:53:12 -07:00