]> granicus.if.org Git - clang/commitdiff
Add missing includes and forward declarations so that headers don't depend on
authorDmitri Gribenko <gribozavr@gmail.com>
Sat, 12 Jan 2013 16:54:37 +0000 (16:54 +0000)
committerDmitri Gribenko <gribozavr@gmail.com>
Sat, 12 Jan 2013 16:54:37 +0000 (16:54 +0000)
other headers included before them.

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

16 files changed:
include/clang/AST/DeclLookups.h
include/clang/AST/StmtCXX.h
include/clang/ASTMatchers/ASTTypeTraits.h
include/clang/Analysis/Analyses/UninitializedValues.h
include/clang/Basic/MacroBuilder.h
include/clang/Basic/OnDiskHashTable.h
include/clang/Basic/TargetOptions.h
include/clang/Lex/ExternalPreprocessorSource.h
include/clang/Lex/HeaderSearchOptions.h
include/clang/Sema/CXXFieldCollector.h
include/clang/Sema/TypoCorrection.h
include/clang/Serialization/ContinuousRangeMap.h
include/clang/StaticAnalyzer/Core/CheckerOptInfo.h
include/clang/StaticAnalyzer/Core/PathSensitive/ProgramStateTrait.h
include/clang/StaticAnalyzer/Core/PathSensitive/TaintManager.h
include/clang/StaticAnalyzer/Core/PathSensitive/WorkList.h

index 867b4652575336daa535cff7eb04cc367f3f89e2..4477c25a91358b594054dfbcf079f563306720de 100644 (file)
@@ -14,6 +14,7 @@
 #ifndef LLVM_CLANG_AST_DECLLOOKUPS_H
 #define LLVM_CLANG_AST_DECLLOOKUPS_H
 
+#include "clang/AST/ASTContext.h"
 #include "clang/AST/DeclBase.h"
 #include "clang/AST/DeclContextInternals.h"
 #include "clang/AST/DeclarationName.h"
index bbb02e59fe0a808e3bf86e442a9c7580515aa3a8..34b45625dce19f796292615ffbdf3dc2d3170f02 100644 (file)
@@ -14,6 +14,9 @@
 #ifndef LLVM_CLANG_AST_STMTCXX_H
 #define LLVM_CLANG_AST_STMTCXX_H
 
+#include "clang/AST/DeclarationName.h"
+#include "clang/AST/Expr.h"
+#include "clang/AST/NestedNameSpecifier.h"
 #include "clang/AST/Stmt.h"
 #include "llvm/Support/Compiler.h"
 
index bda53eaf70f6cb3c3be298eb03adbb485b91252c..1dc5441bbbe12c0c135a7d29ce40844decd81426 100644 (file)
@@ -17,6 +17,7 @@
 
 #include "clang/AST/Decl.h"
 #include "clang/AST/Stmt.h"
+#include "clang/AST/TypeLoc.h"
 #include "llvm/Support/AlignOf.h"
 
 namespace clang {
index 45ce4de1f8ddfdc538a5a49cf05d05686a810c91..663628b76588742097788f6f31354a85c262e9ce 100644 (file)
@@ -15,6 +15,7 @@
 #ifndef LLVM_CLANG_UNINIT_VALS_H
 #define LLVM_CLANG_UNINIT_VALS_H
 
+#include "clang/AST/Stmt.h"
 #include "llvm/ADT/SmallVector.h"
 
 namespace clang {
index 6df3a383df9d656cd82b91d92befd17647a81bc7..9a9eaa24983ca79736166ac06713e0c21d99225b 100644 (file)
@@ -15,6 +15,7 @@
 #ifndef LLVM_CLANG_BASIC_MACROBUILDER_H
 #define LLVM_CLANG_BASIC_MACROBUILDER_H
 
+#include "clang/Basic/LLVM.h"
 #include "llvm/ADT/Twine.h"
 #include "llvm/Support/raw_ostream.h"
 
index 279d58235e447c2dc7a74a8a86597f3dad269738..06cb1438e6202a0e3f286734bb609ee454876e48 100644 (file)
@@ -14,6 +14,7 @@
 #ifndef LLVM_CLANG_BASIC_ON_DISK_HASH_TABLE_H
 #define LLVM_CLANG_BASIC_ON_DISK_HASH_TABLE_H
 
+#include "clang/Basic/LLVM.h"
 #include "llvm/Support/Allocator.h"
 #include "llvm/Support/DataTypes.h"
 #include "llvm/Support/Host.h"
index d6deb0244d9f60da4a7356d42a1599b266e86af6..c2183fd29d562c1622f02385fcd6b0ff93141779 100644 (file)
@@ -15,6 +15,7 @@
 #ifndef LLVM_CLANG_FRONTEND_TARGETOPTIONS_H
 #define LLVM_CLANG_FRONTEND_TARGETOPTIONS_H
 
+#include "clang/Basic/LLVM.h"
 #include "llvm/ADT/IntrusiveRefCntPtr.h"
 #include <string>
 #include <vector>
index d2e2412192ed9f1c591ed5a438482aec5fc6623a..d9a4de4d99815cfb65203d639fb41654ffd088f1 100644 (file)
@@ -15,7 +15,9 @@
 #define LLVM_CLANG_LEX_EXTERNAL_PREPROCESSOR_SOURCE_H
 
 namespace clang {
-  
+
+class IdentifierInfo;
+
 /// \brief Abstract interface for external sources of preprocessor 
 /// information.
 ///
index 468fefa4aba3d730768da16dd442d93a3a71bc5f..eaa2623583fc464906d646a588e73b9c37e99f79 100644 (file)
@@ -10,6 +10,7 @@
 #ifndef LLVM_CLANG_LEX_HEADERSEARCHOPTIONS_H
 #define LLVM_CLANG_LEX_HEADERSEARCHOPTIONS_H
 
+#include "clang/Basic/LLVM.h"
 #include "llvm/ADT/IntrusiveRefCntPtr.h"
 #include "llvm/ADT/StringRef.h"
 #include <vector>
index 6f3c0b44b148027de42d73fabb143caa6db1da8c..6685751d1e61a24886b83ed3cfe7710a61f074cd 100644 (file)
@@ -15,6 +15,7 @@
 #ifndef LLVM_CLANG_SEMA_CXXFIELDCOLLECTOR_H
 #define LLVM_CLANG_SEMA_CXXFIELDCOLLECTOR_H
 
+#include "clang/Basic/LLVM.h"
 #include "llvm/ADT/SmallVector.h"
 
 namespace clang {
index 2b4a9e62167bd7882a6e146d9c752853cec73de7..45f08fe0e27e865cbb035a1c50854e9a725cd39a 100644 (file)
@@ -16,6 +16,7 @@
 #define LLVM_CLANG_SEMA_TYPOCORRECTION_H
 
 #include "clang/AST/DeclCXX.h"
+#include "clang/Sema/DeclSpec.h"
 #include "llvm/ADT/SmallVector.h"
 
 namespace clang {
index d89cd02903d63a4b92afb473b9b97eec406d40bd..f8ef8a1a63cfcd67fd6207862f637b64fe8c4624 100644 (file)
@@ -15,6 +15,7 @@
 #ifndef LLVM_CLANG_SERIALIZATION_CONTINUOUS_RANGE_MAP_H
 #define LLVM_CLANG_SERIALIZATION_CONTINUOUS_RANGE_MAP_H
 
+#include "clang/Basic/LLVM.h"
 #include "llvm/ADT/SmallVector.h"
 #include <algorithm>
 #include <utility>
index 6ce5b3c5095ead90d644f721afa650f6bbfd06ae..e981871ae4e08c2799aa6d49cc03463de0d303cb 100644 (file)
@@ -11,6 +11,7 @@
 #define LLVM_CLANG_STATICANALYZER_CORE_CHECKEROPTINFO_H
 
 #include "clang/Basic/LLVM.h"
+#include "llvm/ADT/StringRef.h"
 
 namespace clang {
 namespace ento {
index ea2a8525ba47d2e8f7d1f2de7eaeeae24a2de3d7..851cafb52cb0b480ac3fae98144c72f088b36e1c 100644 (file)
@@ -18,6 +18,8 @@
 #ifndef LLVM_CLANG_GR_PROGRAMSTATETRAIT_H
 #define LLVM_CLANG_GR_PROGRAMSTATETRAIT_H
 
+#include "llvm/Support/DataTypes.h"
+
 namespace llvm {
   class BumpPtrAllocator;
   template <typename K, typename D, typename I> class ImmutableMap;
index c274cea8413e82e1b20bc597b002abdbcea3f023..4c58d4b1d2613a80f8e3fb3360384dafc2442e7b 100644 (file)
 #ifndef LLVM_CLANG_TAINTMANAGER_H
 #define LLVM_CLANG_TAINTMANAGER_H
 
+#include "clang/StaticAnalyzer/Core/BugReporter/PathDiagnostic.h"
+#include "clang/StaticAnalyzer/Core/PathSensitive/ProgramState.h"
+#include "clang/StaticAnalyzer/Core/PathSensitive/ProgramStateTrait.h"
 #include "clang/StaticAnalyzer/Core/PathSensitive/TaintTag.h"
+#include "llvm/ADT/ImmutableMap.h"
 
 namespace clang {
 namespace ento {
index 51aa753f11e9a474bf3be49469ba9648f0197372..d12a1514898f4ec8da0474925b998c942f57d7fd 100644 (file)
@@ -16,7 +16,8 @@
 #define LLVM_CLANG_GR_WORKLIST
 
 #include "clang/StaticAnalyzer/Core/PathSensitive/BlockCounter.h"
-#include <cstddef>
+#include "clang/StaticAnalyzer/Core/PathSensitive/ExplodedGraph.h"
+#include <cassert>
 
 namespace clang {
   
@@ -24,9 +25,6 @@ class CFGBlock;
 
 namespace ento {
 
-class ExplodedNode;
-class ExplodedNodeImpl;
-
 class WorkListUnit {
   ExplodedNode *node;
   BlockCounter counter;