move library-specific diagnostic headers into library private dirs. Reduce

redundant #includes.  Patch by Anders Johnsen!

llvm-svn: 63271
This commit is contained in:
Chris Lattner 2009-01-29 05:15:15 +00:00
parent d9ae05ba50
commit 60f36223a9
49 changed files with 64 additions and 110 deletions

View File

@ -29,6 +29,7 @@
#include "clang/Driver/InitHeaderSearch.h" #include "clang/Driver/InitHeaderSearch.h"
#include "clang/Driver/TextDiagnosticBuffer.h" #include "clang/Driver/TextDiagnosticBuffer.h"
#include "clang/Driver/TextDiagnosticPrinter.h" #include "clang/Driver/TextDiagnosticPrinter.h"
#include "clang/Driver/DriverDiagnostic.h"
#include "clang/Analysis/PathDiagnostic.h" #include "clang/Analysis/PathDiagnostic.h"
#include "clang/AST/Decl.h" #include "clang/AST/Decl.h"
#include "clang/AST/TranslationUnit.h" #include "clang/AST/TranslationUnit.h"
@ -40,7 +41,6 @@
#include "clang/Basic/FileManager.h" #include "clang/Basic/FileManager.h"
#include "clang/Basic/SourceManager.h" #include "clang/Basic/SourceManager.h"
#include "clang/Basic/TargetInfo.h" #include "clang/Basic/TargetInfo.h"
#include "clang/Basic/DiagnosticDriver.h"
#include "llvm/ADT/OwningPtr.h" #include "llvm/ADT/OwningPtr.h"
#include "llvm/ADT/SmallPtrSet.h" #include "llvm/ADT/SmallPtrSet.h"
#include "llvm/ADT/StringExtras.h" #include "llvm/ADT/StringExtras.h"

View File

@ -10,15 +10,15 @@
#ifndef LLVM_CLANG_DIAGNOSTICAST_H #ifndef LLVM_CLANG_DIAGNOSTICAST_H
#define LLVM_CLANG_DIAGNOSTICAST_H #define LLVM_CLANG_DIAGNOSTICAST_H
#include "clang/Basic/DiagnosticAST.h" #include "clang/Basic/Diagnostic.h"
namespace clang { namespace clang {
namespace diag { namespace diag {
enum { enum {
#define DIAG(ENUM,FLAGS,DESC) ENUM, #define DIAG(ENUM,FLAGS,DESC) ENUM,
#include "DiagnosticCommonKinds.def" #include "clang/Basic/DiagnosticCommonKinds.def"
#define ASTSTART #define ASTSTART
#include "DiagnosticASTKinds.def" #include "clang/Basic/DiagnosticASTKinds.def"
NUM_BUILTIN_AST_DIAGNOSTICS NUM_BUILTIN_AST_DIAGNOSTICS
}; };
} // end namespace diag } // end namespace diag

View File

@ -16,9 +16,9 @@ namespace clang {
namespace diag { namespace diag {
enum { enum {
#define DIAG(ENUM,FLAGS,DESC) ENUM, #define DIAG(ENUM,FLAGS,DESC) ENUM,
#include "DiagnosticCommonKinds.def" #include "clang/Basic/DiagnosticCommonKinds.def"
#define ANALYSISSTART #define ANALYSISSTART
#include "DiagnosticAnalysisKinds.def" #include "clang/Basic/DiagnosticAnalysisKinds.def"
NUM_BUILTIN_ANALYSIS_DIAGNOSTICS NUM_BUILTIN_ANALYSIS_DIAGNOSTICS
}; };
} // end namespace diag } // end namespace diag

View File

@ -1,57 +0,0 @@
//===--- DiagnosticDriver.h - Diagnostics for the driver --------*- C++ -*-===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------------------------------------===//
#ifndef LLVM_CLANG_DIAGNOSTICDRIVER_H
#define LLVM_CLANG_DIAGNOSTICDRIVER_H
#include "clang/Basic/Diagnostic.h"
namespace clang {
namespace diag {
enum {
#define DIAG(ENUM,FLAGS,DESC) ENUM,
#include "DiagnosticCommonKinds.def"
NUM_BUILTIN_DRIVER_DIAGNOSTICS
};
} // end namespace diag
} // end namespace clang
#endif
#ifndef LLVM_CLANG_DIAGNOSTICDRIVER_H
#define LLVM_CLANG_DIAGNOSTICDRIVER_H
#include "clang/Basic/Diagnostic.h"
namespace clang {
namespace diag {
enum {
#define DIAG(ENUM,FLAGS,DESC) ENUM,
#include "DiagnosticCommonKinds.def"
NUM_BUILTIN_DRIVER_DIAGNOSTICS
};
} // end namespace diag
} // end namespace clang
#endif
#ifndef LLVM_CLANG_DIAGNOSTICDRIVER_H
#define LLVM_CLANG_DIAGNOSTICDRIVER_H
#include "clang/Basic/Diagnostic.h"
namespace clang {
namespace diag {
enum {
#define DIAG(ENUM,FLAGS,DESC) ENUM,
#include "DiagnosticCommonKinds.def"
NUM_BUILTIN_DRIVER_DIAGNOSTICS
};
} // end namespace diag
} // end namespace clang
#endif

View File

@ -0,0 +1,26 @@
//===--- DiagnosticDriver.h - Diagnostics for the driver --------*- C++ -*-===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------------------------------------===//
#ifndef LLVM_CLANG_DIAGNOSTICDRIVER_H
#define LLVM_CLANG_DIAGNOSTICDRIVER_H
#include "clang/Basic/Diagnostic.h"
namespace clang {
namespace diag {
enum {
#define DIAG(ENUM,FLAGS,DESC) ENUM,
#include "clang/Basic/DiagnosticCommonKinds.def"
NUM_BUILTIN_DRIVER_DIAGNOSTICS
};
} // end namespace diag
} // end namespace clang
#endif

View File

@ -16,9 +16,9 @@ namespace clang {
namespace diag { namespace diag {
enum { enum {
#define DIAG(ENUM,FLAGS,DESC) ENUM, #define DIAG(ENUM,FLAGS,DESC) ENUM,
#include "DiagnosticCommonKinds.def" #include "clang/Basic/DiagnosticCommonKinds.def"
#define LEXSTART #define LEXSTART
#include "DiagnosticLexKinds.def" #include "clang/Basic/DiagnosticLexKinds.def"
NUM_BUILTIN_LEX_DIAGNOSTICS NUM_BUILTIN_LEX_DIAGNOSTICS
}; };
} // end namespace diag } // end namespace diag

View File

@ -16,9 +16,9 @@ namespace clang {
namespace diag { namespace diag {
enum { enum {
#define DIAG(ENUM,FLAGS,DESC) ENUM, #define DIAG(ENUM,FLAGS,DESC) ENUM,
#include "DiagnosticCommonKinds.def" #include "clang/Basic/DiagnosticCommonKinds.def"
#define PARSESTART #define PARSESTART
#include "DiagnosticParseKinds.def" #include "clang/Basic/DiagnosticParseKinds.def"
NUM_BUILTIN_PARSE_DIAGNOSTICS NUM_BUILTIN_PARSE_DIAGNOSTICS
}; };
} // end namespace diag } // end namespace diag

View File

@ -16,9 +16,9 @@ namespace clang {
namespace diag { namespace diag {
enum { enum {
#define DIAG(ENUM,FLAGS,DESC) ENUM, #define DIAG(ENUM,FLAGS,DESC) ENUM,
#include "DiagnosticCommonKinds.def" #include "clang/Basic/DiagnosticCommonKinds.def"
#define SEMASTART #define SEMASTART
#include "DiagnosticSemaKinds.def" #include "clang/Basic/DiagnosticSemaKinds.def"
NUM_BUILTIN_SEMA_DIAGNOSTICS NUM_BUILTIN_SEMA_DIAGNOSTICS
}; };
} // end namespace diag } // end namespace diag

View File

@ -15,7 +15,7 @@
#include "clang/AST/ASTContext.h" #include "clang/AST/ASTContext.h"
#include "clang/AST/RecordLayout.h" #include "clang/AST/RecordLayout.h"
#include "clang/AST/StmtVisitor.h" #include "clang/AST/StmtVisitor.h"
#include "clang/Basic/DiagnosticAST.h" #include "clang/AST/ASTDiagnostic.h"
#include "clang/Basic/TargetInfo.h" #include "clang/Basic/TargetInfo.h"
#include "llvm/Support/Compiler.h" #include "llvm/Support/Compiler.h"
using namespace clang; using namespace clang;

View File

@ -14,7 +14,7 @@
#include "clang/Analysis/Analyses/UninitializedValues.h" #include "clang/Analysis/Analyses/UninitializedValues.h"
#include "clang/Analysis/Visitors/CFGRecStmtDeclVisitor.h" #include "clang/Analysis/Visitors/CFGRecStmtDeclVisitor.h"
#include "clang/Analysis/LocalCheckers.h" #include "clang/Analysis/LocalCheckers.h"
#include "clang/Basic/DiagnosticAnalysis.h" #include "clang/Analysis/AnalysisDiagnostic.h"
#include "clang/AST/ASTContext.h" #include "clang/AST/ASTContext.h"
#include "clang/Analysis/FlowSensitive/DataflowSolver.h" #include "clang/Analysis/FlowSensitive/DataflowSolver.h"
#include "llvm/Support/Compiler.h" #include "llvm/Support/Compiler.h"

View File

@ -26,7 +26,7 @@
#include "clang/Lex/Lexer.h" #include "clang/Lex/Lexer.h"
#include "clang/Lex/Preprocessor.h" #include "clang/Lex/Preprocessor.h"
#include "clang/Basic/DiagnosticLex.h" #include "clang/Lex/LexDiagnostic.h"
#include "clang/Basic/SourceManager.h" #include "clang/Basic/SourceManager.h"
#include "llvm/Support/Compiler.h" #include "llvm/Support/Compiler.h"
#include "llvm/Support/MemoryBuffer.h" #include "llvm/Support/MemoryBuffer.h"

View File

@ -14,7 +14,7 @@
#include "clang/Lex/LiteralSupport.h" #include "clang/Lex/LiteralSupport.h"
#include "clang/Lex/Preprocessor.h" #include "clang/Lex/Preprocessor.h"
#include "clang/Basic/DiagnosticLex.h" #include "clang/Lex/LexDiagnostic.h"
#include "clang/Basic/TargetInfo.h" #include "clang/Basic/TargetInfo.h"
#include "llvm/ADT/StringExtras.h" #include "llvm/ADT/StringExtras.h"
using namespace clang; using namespace clang;

View File

@ -14,7 +14,7 @@
#include "MacroArgs.h" #include "MacroArgs.h"
#include "clang/Lex/MacroInfo.h" #include "clang/Lex/MacroInfo.h"
#include "clang/Lex/Preprocessor.h" #include "clang/Lex/Preprocessor.h"
#include "clang/Basic/DiagnosticLex.h" #include "clang/Lex/LexDiagnostic.h"
using namespace clang; using namespace clang;
/// MacroArgs ctor function - This destroys the vector passed in. /// MacroArgs ctor function - This destroys the vector passed in.

View File

@ -15,7 +15,7 @@
#include "clang/Lex/LiteralSupport.h" #include "clang/Lex/LiteralSupport.h"
#include "clang/Lex/HeaderSearch.h" #include "clang/Lex/HeaderSearch.h"
#include "clang/Lex/MacroInfo.h" #include "clang/Lex/MacroInfo.h"
#include "clang/Basic/DiagnosticLex.h" #include "clang/Lex/LexDiagnostic.h"
#include "clang/Basic/SourceManager.h" #include "clang/Basic/SourceManager.h"
#include "llvm/ADT/APInt.h" #include "llvm/ADT/APInt.h"
using namespace clang; using namespace clang;

View File

@ -20,7 +20,7 @@
#include "clang/Lex/MacroInfo.h" #include "clang/Lex/MacroInfo.h"
#include "clang/Lex/LiteralSupport.h" #include "clang/Lex/LiteralSupport.h"
#include "clang/Basic/TargetInfo.h" #include "clang/Basic/TargetInfo.h"
#include "clang/Basic/DiagnosticLex.h" #include "clang/Lex/LexDiagnostic.h"
#include "llvm/ADT/APSInt.h" #include "llvm/ADT/APSInt.h"
using namespace clang; using namespace clang;

View File

@ -15,7 +15,7 @@
#include "clang/Lex/Preprocessor.h" #include "clang/Lex/Preprocessor.h"
#include "clang/Lex/HeaderSearch.h" #include "clang/Lex/HeaderSearch.h"
#include "clang/Lex/MacroInfo.h" #include "clang/Lex/MacroInfo.h"
#include "clang/Basic/DiagnosticLex.h" #include "clang/Lex/LexDiagnostic.h"
#include "clang/Basic/SourceManager.h" #include "clang/Basic/SourceManager.h"
#include "llvm/Support/MemoryBuffer.h" #include "llvm/Support/MemoryBuffer.h"

View File

@ -17,7 +17,7 @@
#include "clang/Lex/MacroInfo.h" #include "clang/Lex/MacroInfo.h"
#include "clang/Basic/SourceManager.h" #include "clang/Basic/SourceManager.h"
#include "clang/Basic/FileManager.h" #include "clang/Basic/FileManager.h"
#include "clang/Basic/DiagnosticLex.h" #include "clang/Lex/LexDiagnostic.h"
#include <ctime> #include <ctime>
using namespace clang; using namespace clang;

View File

@ -16,7 +16,7 @@
#include "clang/Lex/HeaderSearch.h" #include "clang/Lex/HeaderSearch.h"
#include "clang/Lex/LiteralSupport.h" #include "clang/Lex/LiteralSupport.h"
#include "clang/Lex/Preprocessor.h" #include "clang/Lex/Preprocessor.h"
#include "clang/Basic/DiagnosticLex.h" #include "clang/Lex/LexDiagnostic.h"
#include "clang/Basic/FileManager.h" #include "clang/Basic/FileManager.h"
#include "clang/Basic/SourceManager.h" #include "clang/Basic/SourceManager.h"
using namespace clang; using namespace clang;

View File

@ -30,7 +30,7 @@
#include "clang/Lex/MacroInfo.h" #include "clang/Lex/MacroInfo.h"
#include "clang/Lex/Pragma.h" #include "clang/Lex/Pragma.h"
#include "clang/Lex/ScratchBuffer.h" #include "clang/Lex/ScratchBuffer.h"
#include "clang/Basic/DiagnosticLex.h" #include "clang/Lex/LexDiagnostic.h"
#include "clang/Basic/SourceManager.h" #include "clang/Basic/SourceManager.h"
#include "clang/Basic/TargetInfo.h" #include "clang/Basic/TargetInfo.h"
#include "llvm/ADT/APFloat.h" #include "llvm/ADT/APFloat.h"

View File

@ -13,7 +13,7 @@
#include "clang/Lex/PreprocessorLexer.h" #include "clang/Lex/PreprocessorLexer.h"
#include "clang/Lex/Preprocessor.h" #include "clang/Lex/Preprocessor.h"
#include "clang/Basic/DiagnosticLex.h" #include "clang/Lex/LexDiagnostic.h"
#include "clang/Basic/SourceManager.h" #include "clang/Basic/SourceManager.h"
using namespace clang; using namespace clang;

View File

@ -16,7 +16,7 @@
#include "clang/Lex/MacroInfo.h" #include "clang/Lex/MacroInfo.h"
#include "clang/Lex/Preprocessor.h" #include "clang/Lex/Preprocessor.h"
#include "clang/Basic/SourceManager.h" #include "clang/Basic/SourceManager.h"
#include "clang/Basic/DiagnosticLex.h" #include "clang/Lex/LexDiagnostic.h"
#include "llvm/ADT/SmallVector.h" #include "llvm/ADT/SmallVector.h"
using namespace clang; using namespace clang;

View File

@ -12,7 +12,7 @@
//===----------------------------------------------------------------------===// //===----------------------------------------------------------------------===//
#include "clang/Parse/DeclSpec.h" #include "clang/Parse/DeclSpec.h"
#include "clang/Basic/DiagnosticParse.h" #include "clang/Parse/ParseDiagnostic.h"
#include "clang/Basic/LangOptions.h" #include "clang/Basic/LangOptions.h"
#include "llvm/ADT/STLExtras.h" #include "llvm/ADT/STLExtras.h"
using namespace clang; using namespace clang;

View File

@ -14,7 +14,7 @@
#ifndef LLVM_CLANG_PARSE_EXTENSION_RAII_OBJECT_H #ifndef LLVM_CLANG_PARSE_EXTENSION_RAII_OBJECT_H
#define LLVM_CLANG_PARSE_EXTENSION_RAII_OBJECT_H #define LLVM_CLANG_PARSE_EXTENSION_RAII_OBJECT_H
#include "clang/Basic/DiagnosticParse.h" #include "clang/Parse/ParseDiagnostic.h"
namespace clang { namespace clang {

View File

@ -11,7 +11,7 @@
// //
//===----------------------------------------------------------------------===// //===----------------------------------------------------------------------===//
#include "clang/Basic/DiagnosticParse.h" #include "clang/Parse/ParseDiagnostic.h"
#include "clang/Parse/Parser.h" #include "clang/Parse/Parser.h"
#include "clang/Parse/DeclSpec.h" #include "clang/Parse/DeclSpec.h"
#include "clang/Parse/Scope.h" #include "clang/Parse/Scope.h"

View File

@ -12,7 +12,7 @@
//===----------------------------------------------------------------------===// //===----------------------------------------------------------------------===//
#include "clang/Parse/Parser.h" #include "clang/Parse/Parser.h"
#include "clang/Basic/DiagnosticParse.h" #include "clang/Parse/ParseDiagnostic.h"
#include "clang/Parse/Scope.h" #include "clang/Parse/Scope.h"
#include "ExtensionRAIIObject.h" #include "ExtensionRAIIObject.h"
#include "AstGuard.h" #include "AstGuard.h"

View File

@ -12,7 +12,7 @@
//===----------------------------------------------------------------------===// //===----------------------------------------------------------------------===//
#include "clang/Parse/Parser.h" #include "clang/Parse/Parser.h"
#include "clang/Basic/DiagnosticParse.h" #include "clang/Parse/ParseDiagnostic.h"
#include "clang/Parse/DeclSpec.h" #include "clang/Parse/DeclSpec.h"
#include "clang/Parse/Scope.h" #include "clang/Parse/Scope.h"
#include "AstGuard.h" #include "AstGuard.h"

View File

@ -11,7 +11,7 @@
// //
//===----------------------------------------------------------------------===// //===----------------------------------------------------------------------===//
#include "clang/Basic/DiagnosticParse.h" #include "clang/Parse/ParseDiagnostic.h"
#include "clang/Parse/Parser.h" #include "clang/Parse/Parser.h"
#include "clang/Parse/DeclSpec.h" #include "clang/Parse/DeclSpec.h"
#include "AstGuard.h" #include "AstGuard.h"

View File

@ -14,7 +14,7 @@
#include "clang/Parse/Designator.h" #include "clang/Parse/Designator.h"
#include "clang/Parse/Parser.h" #include "clang/Parse/Parser.h"
#include "AstGuard.h" #include "AstGuard.h"
#include "clang/Basic/DiagnosticParse.h" #include "clang/Parse/ParseDiagnostic.h"
#include "llvm/ADT/SmallString.h" #include "llvm/ADT/SmallString.h"
using namespace clang; using namespace clang;

View File

@ -15,7 +15,7 @@
#include "clang/Parse/DeclSpec.h" #include "clang/Parse/DeclSpec.h"
#include "clang/Parse/Scope.h" #include "clang/Parse/Scope.h"
#include "AstGuard.h" #include "AstGuard.h"
#include "clang/Basic/DiagnosticParse.h" #include "clang/Parse/ParseDiagnostic.h"
#include "llvm/ADT/SmallVector.h" #include "llvm/ADT/SmallVector.h"
using namespace clang; using namespace clang;

View File

@ -12,7 +12,7 @@
//===----------------------------------------------------------------------===// //===----------------------------------------------------------------------===//
#include "ParsePragma.h" #include "ParsePragma.h"
#include "clang/Basic/DiagnosticParse.h" #include "clang/Parse/ParseDiagnostic.h"
#include "clang/Lex/Preprocessor.h" #include "clang/Lex/Preprocessor.h"
#include "clang/Parse/Action.h" #include "clang/Parse/Action.h"
using namespace clang; using namespace clang;

View File

@ -12,7 +12,7 @@
//===----------------------------------------------------------------------===// //===----------------------------------------------------------------------===//
#include "clang/Parse/Parser.h" #include "clang/Parse/Parser.h"
#include "clang/Basic/DiagnosticParse.h" #include "clang/Parse/ParseDiagnostic.h"
#include "clang/Parse/DeclSpec.h" #include "clang/Parse/DeclSpec.h"
#include "clang/Parse/Scope.h" #include "clang/Parse/Scope.h"

View File

@ -13,7 +13,7 @@
//===----------------------------------------------------------------------===// //===----------------------------------------------------------------------===//
#include "clang/Parse/Parser.h" #include "clang/Parse/Parser.h"
#include "clang/Basic/DiagnosticParse.h" #include "clang/Parse/ParseDiagnostic.h"
using namespace clang; using namespace clang;
/// isCXXDeclarationStatement - C++-specialized function that disambiguates /// isCXXDeclarationStatement - C++-specialized function that disambiguates

View File

@ -12,7 +12,7 @@
//===----------------------------------------------------------------------===// //===----------------------------------------------------------------------===//
#include "clang/Parse/Parser.h" #include "clang/Parse/Parser.h"
#include "clang/Basic/DiagnosticParse.h" #include "clang/Parse/ParseDiagnostic.h"
#include "clang/Parse/DeclSpec.h" #include "clang/Parse/DeclSpec.h"
#include "clang/Parse/Scope.h" #include "clang/Parse/Scope.h"
#include "ExtensionRAIIObject.h" #include "ExtensionRAIIObject.h"

View File

@ -17,7 +17,6 @@
#include "clang/AST/DeclObjC.h" #include "clang/AST/DeclObjC.h"
#include "clang/AST/Expr.h" #include "clang/AST/Expr.h"
#include "clang/Lex/Preprocessor.h" #include "clang/Lex/Preprocessor.h"
#include "clang/Basic/DiagnosticSema.h"
using namespace clang; using namespace clang;
/// ConvertQualTypeToStringFn - This function is used to pretty print the /// ConvertQualTypeToStringFn - This function is used to pretty print the

View File

@ -20,7 +20,7 @@
#include "SemaOverload.h" #include "SemaOverload.h"
#include "clang/AST/DeclBase.h" #include "clang/AST/DeclBase.h"
#include "clang/Parse/Action.h" #include "clang/Parse/Action.h"
#include "clang/Basic/DiagnosticSema.h" #include "clang/Sema/SemaDiagnostic.h"
#include "llvm/ADT/SmallVector.h" #include "llvm/ADT/SmallVector.h"
#include "llvm/ADT/DenseSet.h" #include "llvm/ADT/DenseSet.h"
#include "llvm/ADT/SmallPtrSet.h" #include "llvm/ADT/SmallPtrSet.h"

View File

@ -14,7 +14,6 @@
#include "Sema.h" #include "Sema.h"
#include "clang/AST/ASTContext.h" #include "clang/AST/ASTContext.h"
#include "clang/Parse/DeclSpec.h" #include "clang/Parse/DeclSpec.h"
#include "clang/Basic/DiagnosticSema.h"
#include "llvm/ADT/STLExtras.h" #include "llvm/ADT/STLExtras.h"
using namespace clang; using namespace clang;

View File

@ -18,7 +18,6 @@
#include "clang/AST/ExprCXX.h" #include "clang/AST/ExprCXX.h"
#include "clang/AST/ExprObjC.h" #include "clang/AST/ExprObjC.h"
#include "clang/Lex/Preprocessor.h" #include "clang/Lex/Preprocessor.h"
#include "clang/Basic/DiagnosticSema.h"
#include "SemaUtil.h" #include "SemaUtil.h"
using namespace clang; using namespace clang;

View File

@ -18,7 +18,6 @@
#include "clang/AST/DeclObjC.h" #include "clang/AST/DeclObjC.h"
#include "clang/AST/ExprCXX.h" #include "clang/AST/ExprCXX.h"
#include "clang/Parse/DeclSpec.h" #include "clang/Parse/DeclSpec.h"
#include "clang/Basic/DiagnosticSema.h"
#include "clang/Basic/TargetInfo.h" #include "clang/Basic/TargetInfo.h"
#include "clang/Basic/SourceManager.h" #include "clang/Basic/SourceManager.h"
// FIXME: layering (ideally, Sema shouldn't be dependent on Lex API's) // FIXME: layering (ideally, Sema shouldn't be dependent on Lex API's)

View File

@ -15,7 +15,6 @@
#include "clang/AST/ASTContext.h" #include "clang/AST/ASTContext.h"
#include "clang/AST/DeclObjC.h" #include "clang/AST/DeclObjC.h"
#include "clang/AST/Expr.h" #include "clang/AST/Expr.h"
#include "clang/Basic/DiagnosticSema.h"
#include "clang/Basic/TargetInfo.h" #include "clang/Basic/TargetInfo.h"
#include "clang/Parse/DeclSpec.h" #include "clang/Parse/DeclSpec.h"
#include <llvm/ADT/StringExtras.h> #include <llvm/ADT/StringExtras.h>

View File

@ -18,7 +18,6 @@
#include "clang/AST/TypeOrdering.h" #include "clang/AST/TypeOrdering.h"
#include "clang/AST/StmtVisitor.h" #include "clang/AST/StmtVisitor.h"
#include "clang/Lex/Preprocessor.h" #include "clang/Lex/Preprocessor.h"
#include "clang/Basic/DiagnosticSema.h"
#include "clang/Parse/DeclSpec.h" #include "clang/Parse/DeclSpec.h"
#include "llvm/ADT/STLExtras.h" #include "llvm/ADT/STLExtras.h"
#include "llvm/Support/Compiler.h" #include "llvm/Support/Compiler.h"

View File

@ -14,7 +14,6 @@
#include "Sema.h" #include "Sema.h"
#include "clang/AST/ASTContext.h" #include "clang/AST/ASTContext.h"
#include "clang/AST/DeclObjC.h" #include "clang/AST/DeclObjC.h"
#include "clang/Basic/DiagnosticSema.h"
#include "clang/Parse/DeclSpec.h" #include "clang/Parse/DeclSpec.h"
using namespace clang; using namespace clang;

View File

@ -18,7 +18,6 @@
#include "clang/AST/ExprObjC.h" #include "clang/AST/ExprObjC.h"
#include "clang/Lex/Preprocessor.h" #include "clang/Lex/Preprocessor.h"
#include "clang/Lex/LiteralSupport.h" #include "clang/Lex/LiteralSupport.h"
#include "clang/Basic/DiagnosticSema.h"
#include "clang/Basic/SourceManager.h" #include "clang/Basic/SourceManager.h"
#include "clang/Basic/TargetInfo.h" #include "clang/Basic/TargetInfo.h"
#include "clang/Parse/DeclSpec.h" #include "clang/Parse/DeclSpec.h"

View File

@ -16,7 +16,6 @@
#include "clang/AST/ASTContext.h" #include "clang/AST/ASTContext.h"
#include "clang/Parse/DeclSpec.h" #include "clang/Parse/DeclSpec.h"
#include "clang/Lex/Preprocessor.h" #include "clang/Lex/Preprocessor.h"
#include "clang/Basic/DiagnosticSema.h"
#include "clang/Basic/TargetInfo.h" #include "clang/Basic/TargetInfo.h"
#include "llvm/ADT/STLExtras.h" #include "llvm/ADT/STLExtras.h"
using namespace clang; using namespace clang;

View File

@ -15,7 +15,6 @@
#include "clang/AST/ASTContext.h" #include "clang/AST/ASTContext.h"
#include "clang/AST/DeclObjC.h" #include "clang/AST/DeclObjC.h"
#include "clang/AST/ExprObjC.h" #include "clang/AST/ExprObjC.h"
#include "clang/Basic/DiagnosticSema.h"
using namespace clang; using namespace clang;
Sema::ExprResult Sema::ParseObjCStringLiteral(SourceLocation *AtLocs, Sema::ExprResult Sema::ParseObjCStringLiteral(SourceLocation *AtLocs,

View File

@ -19,7 +19,6 @@
#include "clang/AST/DeclCXX.h" #include "clang/AST/DeclCXX.h"
#include "clang/AST/Type.h" #include "clang/AST/Type.h"
#include "clang/AST/TypeOrdering.h" #include "clang/AST/TypeOrdering.h"
#include "clang/Basic/DiagnosticSema.h"
#include <algorithm> #include <algorithm>
#include <memory> #include <memory>
#include <set> #include <set>

View File

@ -18,7 +18,6 @@
#include "clang/AST/ASTContext.h" #include "clang/AST/ASTContext.h"
#include "clang/AST/Expr.h" #include "clang/AST/Expr.h"
#include "clang/AST/ExprCXX.h" #include "clang/AST/ExprCXX.h"
#include "clang/Basic/DiagnosticSema.h"
#include <map> #include <map>
using namespace clang; using namespace clang;

View File

@ -15,7 +15,6 @@
#include "SemaInherit.h" #include "SemaInherit.h"
#include "clang/AST/ExprCXX.h" #include "clang/AST/ExprCXX.h"
#include "clang/AST/ASTContext.h" #include "clang/AST/ASTContext.h"
#include "clang/Basic/DiagnosticSema.h"
#include "llvm/ADT/SmallVector.h" #include "llvm/ADT/SmallVector.h"
#include <set> #include <set>
using namespace clang; using namespace clang;

View File

@ -17,7 +17,6 @@
#include "clang/AST/DeclObjC.h" #include "clang/AST/DeclObjC.h"
#include "clang/AST/Expr.h" #include "clang/AST/Expr.h"
#include "clang/Basic/TargetInfo.h" #include "clang/Basic/TargetInfo.h"
#include "clang/Basic/DiagnosticSema.h"
using namespace clang; using namespace clang;
Sema::OwningStmtResult Sema::ActOnExprStmt(ExprArg expr) { Sema::OwningStmtResult Sema::ActOnExprStmt(ExprArg expr) {

View File

@ -15,7 +15,6 @@
#include "clang/AST/ASTContext.h" #include "clang/AST/ASTContext.h"
#include "clang/AST/DeclObjC.h" #include "clang/AST/DeclObjC.h"
#include "clang/AST/Expr.h" #include "clang/AST/Expr.h"
#include "clang/Basic/DiagnosticSema.h"
#include "clang/Parse/DeclSpec.h" #include "clang/Parse/DeclSpec.h"
using namespace clang; using namespace clang;