]> granicus.if.org Git - clang/commitdiff
Prune includes.
authorBenjamin Kramer <benny.kra@googlemail.com>
Mon, 12 Apr 2010 19:45:50 +0000 (19:45 +0000)
committerBenjamin Kramer <benny.kra@googlemail.com>
Mon, 12 Apr 2010 19:45:50 +0000 (19:45 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@101059 91177308-0d34-0410-b5e6-96231b3b80d8

tools/CIndex/CIndex.cpp
tools/CIndex/CIndexCodeCompletion.cpp
tools/CIndex/CIndexDiagnostic.cpp
tools/CIndex/CIndexDiagnostic.h
tools/CIndex/CIndexInclusionStack.cpp
tools/CIndex/CIndexUSRs.cpp
tools/CIndex/CIndexer.cpp
tools/CIndex/CIndexer.h
tools/CIndex/CXSourceLocation.h

index 9171c9ee842f8e67ecccede0b4262abd286c7274..d7b6f39bbe56752a0ba3911b475050fefc9ab864 100644 (file)
 #include "clang/AST/DeclVisitor.h"
 #include "clang/AST/StmtVisitor.h"
 #include "clang/AST/TypeLocVisitor.h"
+#include "clang/Basic/Diagnostic.h"
+#include "clang/Frontend/ASTUnit.h"
+#include "clang/Frontend/CompilerInstance.h"
 #include "clang/Frontend/FrontendDiagnostic.h"
 #include "clang/Lex/Lexer.h"
+#include "clang/Lex/PreprocessingRecord.h"
 #include "clang/Lex/Preprocessor.h"
 #include "llvm/Support/MemoryBuffer.h"
 #include "llvm/System/Program.h"
@@ -35,7 +39,6 @@
 using namespace clang;
 using namespace clang::cxcursor;
 using namespace clang::cxstring;
-using namespace idx;
 
 //===----------------------------------------------------------------------===//
 // Crash Reporting.
index d11b8dfb50f79d36ac007a5d62efa5aced1a86a4..c61197fc9b4e0720c3cba618e0084c1c6c990672 100644 (file)
@@ -14,6 +14,9 @@
 
 #include "CIndexer.h"
 #include "CIndexDiagnostic.h"
+#include "clang/Basic/SourceManager.h"
+#include "clang/Basic/FileManager.h"
+#include "clang/Frontend/CompilerInstance.h"
 #include "clang/Frontend/FrontendDiagnostic.h"
 #include "clang/Sema/CodeCompleteConsumer.h"
 #include "llvm/ADT/StringExtras.h"
index bcf066daf21730bd5679445df5e282cfff60abbb..3db37b97da145fc21146c0c94a4ee8acd3b8e182 100644 (file)
@@ -14,6 +14,7 @@
 #include "CIndexer.h"
 #include "CXSourceLocation.h"
 
+#include "clang/Frontend/ASTUnit.h"
 #include "clang/Frontend/FrontendDiagnostic.h"
 #include "llvm/ADT/SmallString.h"
 #include "llvm/ADT/Twine.h"
index 79a5df03812d8e049c6df7b42aaa0ac56d2c99ef..919c21cfdbe4c96637531e372b4dfdb8c83fad90 100644 (file)
 #ifndef LLVM_CLANG_CINDEX_DIAGNOSTIC_H
 #define LLVM_CLANG_CINDEX_DIAGNOSTIC_H
 
-#include "clang-c/Index.h"
-#include "clang/Basic/Diagnostic.h"
-#include "clang/Basic/LangOptions.h"
-#include "llvm/ADT/SmallVector.h"
+struct CXUnsavedFile;
 
-namespace llvm { namespace sys {
-class Path;
-} }
+namespace llvm {
+template<typename T> class SmallVectorImpl;
+namespace sys { class Path; }
+}
 
 namespace clang {
 
 class Diagnostic;
+class FileManager;
 class LangOptions;
 class Preprocessor;
+class StoredDiagnostic;
+class SourceManager;
 
 /// \brief The storage behind a CXDiagnostic
 struct CXStoredDiagnostic {
index 4a884e58843209cfec2920a64cab47f89426be4a..e86323956f91db85f6bc82198729766566f36e04 100644 (file)
 #include "CIndexer.h"
 #include "CXSourceLocation.h"
 #include "clang/AST/DeclVisitor.h"
+#include "clang/Frontend/ASTUnit.h"
 #include "llvm/ADT/SmallString.h"
 #include "llvm/Support/raw_ostream.h"
+using namespace clang;
 
 extern "C" {
 void clang_getInclusions(CXTranslationUnit TU, CXInclusionVisitor CB,
index a2be617d8a883b61c8f11de41ef329732c855cac..b049c96b482bf033abfae50b8292505aa3242118 100644 (file)
 #include "CIndexer.h"
 #include "CXCursor.h"
 #include "clang/AST/DeclVisitor.h"
+#include "clang/Lex/PreprocessingRecord.h"
 #include "llvm/ADT/SmallString.h"
 #include "llvm/Support/raw_ostream.h"
-
+using namespace clang;
 using namespace clang::cxstring;
 
 //===----------------------------------------------------------------------===//
index 0774ae2f3722b255376aba811098f2abc5ee944d..d5131ff6d86964c490dd911ab120388ffb6cdd5b 100644 (file)
@@ -38,7 +38,6 @@
 #endif
 
 using namespace clang;
-using namespace idx;
 
 const llvm::sys::Path& CIndexer::getClangPath() {
   // Did we already compute the path?
index 1fa3ca93876e30aafc59cb67361959069163063b..31bf779ea4a569b9f7377ebbe1318733958e038a 100644 (file)
 #define LLVM_CLANG_CINDEXER_H
 
 #include "clang-c/Index.h"
-#include "clang/Frontend/CompilerInstance.h"
-#include "clang/Frontend/ASTUnit.h"
 #include "llvm/ADT/StringRef.h"
 #include "llvm/System/Path.h"
 #include <vector>
 
-using namespace clang;
-
 namespace clang {
 namespace cxstring {
   CXString createCXString(const char *String, bool DupString = false);
index 8bfc6f9da7ab37a118700f6a385ddd451df171c1..66566c126891d42ea495197eb5c74047ac7e050f 100644 (file)
 
 #include "clang-c/Index.h"
 #include "clang/Basic/SourceLocation.h"
-#include "clang/Basic/SourceManager.h"
 #include "clang/Basic/LangOptions.h"
 #include "clang/AST/ASTContext.h"
 
 namespace clang {
-      
-class ASTContext;
+
+class SourceManager;
 
 namespace cxloc {