зеркало из https://github.com/microsoft/clang-1.git
Get rid of CXXTempVarDecl.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@72637 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Родитель
2be586108b
Коммит
1c02101999
|
@ -1062,22 +1062,6 @@ public:
|
|||
static bool classof(StaticAssertDecl *D) { return true; }
|
||||
};
|
||||
|
||||
/// CXXTempVarDecl - Represents an implicit C++ temporary variable declaration.
|
||||
class CXXTempVarDecl : public VarDecl {
|
||||
protected:
|
||||
CXXTempVarDecl(DeclContext *DC, QualType T)
|
||||
: VarDecl(CXXTempVar, DC, SourceLocation(), 0, T, None) {}
|
||||
|
||||
public:
|
||||
static CXXTempVarDecl *Create(ASTContext &C, DeclContext *DC,
|
||||
QualType T);
|
||||
|
||||
static bool classof(const Decl *D) {
|
||||
return D->getKind() == Decl::CXXTempVar;
|
||||
}
|
||||
static bool classof(CXXTempVarDecl *D) { return true; }
|
||||
};
|
||||
|
||||
/// Insertion operator for diagnostics. This allows sending AccessSpecifier's
|
||||
/// into a diagnostic with <<.
|
||||
const DiagnosticBuilder &operator<<(const DiagnosticBuilder &DB,
|
||||
|
|
|
@ -102,7 +102,6 @@ ABSTRACT_DECL(Named, Decl)
|
|||
DECL(ParmVar, VarDecl)
|
||||
DECL(OriginalParmVar, ParmVarDecl)
|
||||
DECL(NonTypeTemplateParm, VarDecl)
|
||||
DECL(CXXTempVar, VarDecl)
|
||||
DECL(Template, NamedDecl)
|
||||
DECL(FunctionTemplate, TemplateDecl)
|
||||
DECL(ClassTemplate, TemplateDecl)
|
||||
|
|
|
@ -208,7 +208,6 @@ unsigned Decl::getIdentifierNamespaceForKind(Kind DeclKind) {
|
|||
case ObjCForwardProtocol:
|
||||
case Block:
|
||||
case TranslationUnit:
|
||||
case CXXTempVar:
|
||||
|
||||
// Aren't looked up?
|
||||
case UsingDirective:
|
||||
|
|
|
@ -439,15 +439,6 @@ void StaticAssertDecl::Destroy(ASTContext& C) {
|
|||
StaticAssertDecl::~StaticAssertDecl() {
|
||||
}
|
||||
|
||||
CXXTempVarDecl *CXXTempVarDecl::Create(ASTContext &C, DeclContext *DC,
|
||||
QualType T) {
|
||||
assert((T->isDependentType() ||
|
||||
isa<CXXRecordDecl>(T->getAsRecordType()->getDecl())) &&
|
||||
"CXXTempVarDecl must either have a dependent type "
|
||||
"or a C++ record type!");
|
||||
return new (C) CXXTempVarDecl(DC, T);
|
||||
}
|
||||
|
||||
static const char *getAccessName(AccessSpecifier AS) {
|
||||
switch (AS) {
|
||||
default:
|
||||
|
|
Загрузка…
Ссылка в новой задаче