]> granicus.if.org Git - clang/commitdiff
Sink some PTHManager includes out of Preprocessor.h
authorReid Kleckner <rnk@google.com>
Mon, 2 Nov 2015 17:53:55 +0000 (17:53 +0000)
committerReid Kleckner <rnk@google.com>
Mon, 2 Nov 2015 17:53:55 +0000 (17:53 +0000)
This reduces the number of .cpp files needed to be rebuilt after
touching OnDiskHashTable from 120 to 21 for me.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@251810 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/Lex/Preprocessor.h
lib/Frontend/CacheTokens.cpp
lib/Frontend/InitPreprocessor.cpp
lib/Lex/PPLexerChange.cpp
lib/Lex/Preprocessor.cpp

index de252cb5d5e9b26aafe312ee4655ebf58ba8cc2d..f6154b6a49cdfa6bcec6492c895d3090ea2f3c61 100644 (file)
@@ -24,7 +24,6 @@
 #include "clang/Lex/ModuleMap.h"
 #include "clang/Lex/PPCallbacks.h"
 #include "clang/Lex/PTHLexer.h"
-#include "clang/Lex/PTHManager.h"
 #include "clang/Lex/TokenLexer.h"
 #include "llvm/ADT/ArrayRef.h"
 #include "llvm/ADT/DenseMap.h"
@@ -57,6 +56,7 @@ class CodeCompletionHandler;
 class DirectoryLookup;
 class PreprocessingRecord;
 class ModuleLoader;
+class PTHManager;
 class PreprocessorOptions;
 
 /// \brief Stores token information for comparing actual tokens with
index 7d2a09cd7ca03cd28e507c14abc7d8607784af26..662778b7a650e73f6d29590722864c0dc8586593 100644 (file)
@@ -19,6 +19,7 @@
 #include "clang/Basic/IdentifierTable.h"
 #include "clang/Basic/SourceManager.h"
 #include "clang/Lex/Lexer.h"
+#include "clang/Lex/PTHManager.h"
 #include "clang/Lex/Preprocessor.h"
 #include "llvm/ADT/StringExtras.h"
 #include "llvm/ADT/StringMap.h"
index 3d62d88917bd876c960292229517d02d6e8dd361..c82e89741855891842c69be84cc824bd58474613 100644 (file)
@@ -20,6 +20,7 @@
 #include "clang/Frontend/FrontendDiagnostic.h"
 #include "clang/Frontend/FrontendOptions.h"
 #include "clang/Lex/HeaderSearch.h"
+#include "clang/Lex/PTHManager.h"
 #include "clang/Lex/Preprocessor.h"
 #include "clang/Lex/PreprocessorOptions.h"
 #include "clang/Serialization/ASTReader.h"
index c231e18eecc3ec63bc2f6f6d53720a44b5065cad..777c2fb94899a0d3deb142694e7cb2d874f98e26 100644 (file)
@@ -18,6 +18,7 @@
 #include "clang/Lex/HeaderSearch.h"
 #include "clang/Lex/LexDiagnostic.h"
 #include "clang/Lex/MacroInfo.h"
+#include "clang/Lex/PTHManager.h"
 #include "llvm/ADT/StringSwitch.h"
 #include "llvm/Support/FileSystem.h"
 #include "llvm/Support/MemoryBuffer.h"
index 869890b46cf4a25ac1925036cc7b5d697f559bf7..142d9ce090495759cec5bc11f3f67200e642ddc1 100644 (file)
@@ -38,6 +38,7 @@
 #include "clang/Lex/MacroArgs.h"
 #include "clang/Lex/MacroInfo.h"
 #include "clang/Lex/ModuleLoader.h"
+#include "clang/Lex/PTHManager.h"
 #include "clang/Lex/Pragma.h"
 #include "clang/Lex/PreprocessingRecord.h"
 #include "clang/Lex/PreprocessorOptions.h"