зеркало из https://github.com/microsoft/clang-1.git
More #include cleaning
- Drop Diagnostic.h from DeclSpec.h, move utility Diag methods into implementation .cpp git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@54626 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Родитель
12bc692a78
Коммит
e4858a65a9
|
@ -14,13 +14,13 @@
|
|||
#ifndef LLVM_CLANG_PARSE_SEMADECLSPEC_H
|
||||
#define LLVM_CLANG_PARSE_SEMADECLSPEC_H
|
||||
|
||||
#include "clang/Basic/Diagnostic.h"
|
||||
#include "clang/Parse/Action.h"
|
||||
#include "clang/Parse/AttributeList.h"
|
||||
#include "llvm/ADT/SmallVector.h"
|
||||
|
||||
namespace clang {
|
||||
struct LangOptions;
|
||||
class Diagnostic;
|
||||
class IdentifierInfo;
|
||||
|
||||
/// DeclSpec - This class captures information about "declaration specifiers",
|
||||
|
@ -303,14 +303,10 @@ public:
|
|||
|
||||
private:
|
||||
void Diag(Diagnostic &D, SourceLocation Loc, SourceManager& SrcMgr,
|
||||
unsigned DiagID) {
|
||||
D.Report(FullSourceLoc(Loc,SrcMgr), DiagID);
|
||||
}
|
||||
unsigned DiagID);
|
||||
|
||||
void Diag(Diagnostic &D, SourceLocation Loc, SourceManager& SrcMgr,
|
||||
unsigned DiagID, const std::string &info) {
|
||||
D.Report(FullSourceLoc(Loc,SrcMgr), DiagID, &info, 1);
|
||||
}
|
||||
unsigned DiagID, const std::string &info);
|
||||
};
|
||||
|
||||
/// ObjCDeclSpec - This class captures information about
|
||||
|
|
|
@ -12,6 +12,7 @@
|
|||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#include "clang/Parse/DeclSpec.h"
|
||||
#include "clang/Basic/Diagnostic.h"
|
||||
#include "clang/Basic/LangOptions.h"
|
||||
#include "clang/Basic/SourceLocation.h"
|
||||
using namespace clang;
|
||||
|
@ -288,3 +289,13 @@ void DeclSpec::Finish(Diagnostic &D, SourceManager& SrcMgr,
|
|||
|
||||
// 'data definition has no type or storage class'?
|
||||
}
|
||||
|
||||
void DeclSpec::Diag(Diagnostic &D, SourceLocation Loc, SourceManager& SrcMgr,
|
||||
unsigned DiagID) {
|
||||
D.Report(FullSourceLoc(Loc,SrcMgr), DiagID);
|
||||
}
|
||||
|
||||
void DeclSpec::Diag(Diagnostic &D, SourceLocation Loc, SourceManager& SrcMgr,
|
||||
unsigned DiagID, const std::string &info) {
|
||||
D.Report(FullSourceLoc(Loc,SrcMgr), DiagID, &info, 1);
|
||||
}
|
||||
|
|
|
@ -12,6 +12,7 @@
|
|||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#include "clang/Parse/Parser.h"
|
||||
#include "clang/Basic/Diagnostic.h"
|
||||
#include "clang/Parse/DeclSpec.h"
|
||||
#include "clang/Parse/Scope.h"
|
||||
#include "llvm/ADT/SmallSet.h"
|
||||
|
|
|
@ -12,6 +12,7 @@
|
|||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#include "clang/Parse/Parser.h"
|
||||
#include "clang/Basic/Diagnostic.h"
|
||||
#include "clang/Parse/DeclSpec.h"
|
||||
#include "clang/Parse/Scope.h"
|
||||
using namespace clang;
|
||||
|
|
|
@ -24,6 +24,7 @@
|
|||
#include "clang/AST/Type.h"
|
||||
#include "clang/Parse/DeclSpec.h"
|
||||
#include "clang/Parse/Scope.h"
|
||||
#include "clang/Basic/Diagnostic.h"
|
||||
#include "clang/Basic/LangOptions.h"
|
||||
#include "clang/Basic/TargetInfo.h"
|
||||
#include "clang/Basic/SourceManager.h"
|
||||
|
|
|
@ -13,6 +13,7 @@
|
|||
|
||||
#include "Sema.h"
|
||||
#include "clang/AST/ASTContext.h"
|
||||
#include "clang/Basic/Diagnostic.h"
|
||||
#include "clang/Basic/TargetInfo.h"
|
||||
#include "clang/Parse/DeclSpec.h"
|
||||
#include <llvm/ADT/StringExtras.h>
|
||||
|
|
|
@ -21,6 +21,7 @@
|
|||
#include "clang/Parse/DeclSpec.h"
|
||||
#include "clang/Lex/Preprocessor.h"
|
||||
#include "clang/Lex/LiteralSupport.h"
|
||||
#include "clang/Basic/Diagnostic.h"
|
||||
#include "clang/Basic/SourceManager.h"
|
||||
#include "clang/Basic/TargetInfo.h"
|
||||
#include "llvm/ADT/OwningPtr.h"
|
||||
|
|
|
@ -15,8 +15,9 @@
|
|||
#include "clang/AST/ASTContext.h"
|
||||
#include "clang/AST/Decl.h"
|
||||
#include "clang/AST/DeclObjC.h"
|
||||
#include "clang/Parse/DeclSpec.h"
|
||||
#include "clang/Basic/Diagnostic.h"
|
||||
#include "clang/Basic/LangOptions.h"
|
||||
#include "clang/Parse/DeclSpec.h"
|
||||
using namespace clang;
|
||||
|
||||
/// ConvertDeclSpecToType - Convert the specified declspec to the appropriate
|
||||
|
|
Загрузка…
Ссылка в новой задаче