diff options
author | Daniel Dunbar <daniel@zuster.org> | 2010-08-26 00:52:50 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2010-08-26 00:52:50 +0000 |
commit | 0ad106fec9dd188e20026c80d814f836e15780e3 (patch) | |
tree | bf85e1890c6bdff9a49244758ca5baa55f84d495 /lib/Sema | |
parent | e84f9ebf8c89d5600f5930b65a0df0de890791b2 (diff) |
Revert r112114, "Pull DelayedDiagnostic and AccessedEntity out into their own
header.", it is teh broken.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@112123 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Sema')
-rw-r--r-- | lib/Sema/Sema.cpp | 4 | ||||
-rw-r--r-- | lib/Sema/SemaAccess.cpp | 10 | ||||
-rw-r--r-- | lib/Sema/SemaDeclAttr.cpp | 4 |
3 files changed, 7 insertions, 11 deletions
diff --git a/lib/Sema/Sema.cpp b/lib/Sema/Sema.cpp index 2de4d28cab..fd6dcfc095 100644 --- a/lib/Sema/Sema.cpp +++ b/lib/Sema/Sema.cpp @@ -12,8 +12,8 @@ // //===----------------------------------------------------------------------===// -#include "clang/Sema/SemaInternal.h" -#include "clang/Sema/DelayedDiagnostic.h" +#include "clang/Sema/Sema.h" +#include "clang/Sema/SemaDiagnostic.h" #include "TargetAttributesSema.h" #include "llvm/ADT/DenseMap.h" #include "llvm/ADT/SmallSet.h" diff --git a/lib/Sema/SemaAccess.cpp b/lib/Sema/SemaAccess.cpp index 7cda7dd172..965ec66a13 100644 --- a/lib/Sema/SemaAccess.cpp +++ b/lib/Sema/SemaAccess.cpp @@ -12,7 +12,6 @@ //===----------------------------------------------------------------------===// #include "clang/Sema/SemaInternal.h" -#include "clang/Sema/DelayedDiagnostic.h" #include "clang/Sema/Initialization.h" #include "clang/Sema/Lookup.h" #include "clang/AST/ASTContext.h" @@ -23,7 +22,6 @@ #include "clang/AST/ExprCXX.h" using namespace clang; -using namespace sema; /// A copy of Sema's enum without AR_delayed. enum AccessResult { @@ -134,10 +132,10 @@ struct EffectiveContext { bool Dependent; }; -/// Like sema:;AccessedEntity, but kindly lets us scribble all over +/// Like Sema's AccessedEntity, but kindly lets us scribble all over /// it. -struct AccessTarget : public AccessedEntity { - AccessTarget(const AccessedEntity &Entity) +struct AccessTarget : public Sema::AccessedEntity { + AccessTarget(const Sema::AccessedEntity &Entity) : AccessedEntity(Entity) { initialize(); } @@ -1035,7 +1033,7 @@ static Sema::AccessResult CheckAccess(Sema &S, SourceLocation Loc, // access control. if (S.CurContext->isFileContext() && S.ParsingDeclDepth) { S.DelayedDiagnostics.push_back( - DelayedDiagnostic::makeAccess(Loc, Entity)); + Sema::DelayedDiagnostic::makeAccess(Loc, Entity)); return Sema::AR_delayed; } diff --git a/lib/Sema/SemaDeclAttr.cpp b/lib/Sema/SemaDeclAttr.cpp index 46623d2818..a2cad6a5d2 100644 --- a/lib/Sema/SemaDeclAttr.cpp +++ b/lib/Sema/SemaDeclAttr.cpp @@ -19,10 +19,8 @@ #include "clang/AST/Expr.h" #include "clang/Basic/TargetInfo.h" #include "clang/Sema/DeclSpec.h" -#include "clang/Sema/DelayedDiagnostic.h" #include "llvm/ADT/StringExtras.h" using namespace clang; -using namespace sema; //===----------------------------------------------------------------------===// // Helper functions @@ -2470,7 +2468,7 @@ static bool isDeclDeprecated(Decl *D) { return false; } -void Sema::HandleDelayedDeprecationCheck(DelayedDiagnostic &DD, +void Sema::HandleDelayedDeprecationCheck(Sema::DelayedDiagnostic &DD, Decl *Ctx) { if (isDeclDeprecated(Ctx)) return; |