llvm-project/clang/lib/Serialization
Reid Kleckner c915cb957d Avoid including Module.h from ExternalASTSource.h
Module.h takes 86ms to parse, mostly parsing the class itself. Avoid it
if possible. ASTContext.h depends on ExternalASTSource.h.

A few NFC changes were needed to make this possible:

- Move ASTSourceDescriptor to Module.h. This needs Module to be
  complete, and seems more related to modules and AST files than
  external AST sources.
- Move "import complete" bit from Module* pointer int pair to
  NextLocalImport pointer. Required because PointerIntPair<Module*,...>
  requires Module to be complete, and now it may not be.

Reviewed By: aaron.ballman, hans

Differential Revision: https://reviews.llvm.org/D75784
2020-03-11 13:37:41 -07:00
..
ASTCommon.cpp [Concepts] Requires Expressions 2020-01-19 00:23:26 +02:00
ASTCommon.h [OPENMP 5.0]Add initial support for 'allocate' directive. 2019-03-07 17:54:44 +00:00
ASTReader.cpp Avoid including Module.h from ExternalASTSource.h 2020-03-11 13:37:41 -07:00
ASTReaderDecl.cpp Avoid including Module.h from ExternalASTSource.h 2020-03-11 13:37:41 -07:00
ASTReaderInternals.h Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
ASTReaderStmt.cpp PR45083: Mark statement expressions as being dependent if they appear in 2020-03-10 14:45:04 -07:00
ASTWriter.cpp Revert "[modules] Do not cache invalid state for modules that we attempted to load." 2020-03-10 10:59:26 -07:00
ASTWriterDecl.cpp Revert "make -fmodules-codegen and -fmodules-debuginfo work also with PCHs" 2020-02-27 14:33:43 +01:00
ASTWriterStmt.cpp PR45083: Mark statement expressions as being dependent if they appear in 2020-03-10 14:45:04 -07:00
CMakeLists.txt clang/Modules: Move Serialization/Module.{h,cpp} to ModuleFile, NFC 2019-11-21 19:07:00 -08:00
GeneratePCH.cpp [Bitcode] Move Bitstream to a separate library 2019-07-03 22:40:07 +00:00
GlobalModuleIndex.cpp GlobalModuleIndex - Fix use-after-move clang static analyzer warning. 2020-01-11 16:43:02 +00:00
InMemoryModuleCache.cpp Revert "[modules] Do not cache invalid state for modules that we attempted to load." 2020-03-10 10:59:26 -07:00
ModuleFile.cpp clang/Modules: Move Serialization/Module.{h,cpp} to ModuleFile, NFC 2019-11-21 19:07:00 -08:00
ModuleFileExtension.cpp Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
ModuleManager.cpp Revert "[modules] Do not cache invalid state for modules that we attempted to load." 2020-03-10 10:59:26 -07:00
MultiOnDiskHashTable.h Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
PCHContainerOperations.cpp [Clang] Migrate llvm::make_unique to std::make_unique 2019-08-14 23:04:18 +00:00