Add the beginnings of a CXXTempVarDecl class.
llvm-svn: 69652
diff --git a/clang/lib/AST/DeclCXX.cpp b/clang/lib/AST/DeclCXX.cpp
index a5d133c..34d7464 100644
--- a/clang/lib/AST/DeclCXX.cpp
+++ b/clang/lib/AST/DeclCXX.cpp
@@ -375,6 +375,13 @@
StaticAssertDecl::~StaticAssertDecl() {
}
+CXXTempVarDecl *CXXTempVarDecl::Create(ASTContext &C, DeclContext *DC,
+ QualType T) {
+ assert(isa<CXXRecordDecl>(T->getAsRecordType()->getDecl()) &&
+ "CXXTempVarDecl must have a C++ record type!");
+ return new (C) CXXTempVarDecl(DC, T);
+}
+
static const char *getAccessName(AccessSpecifier AS) {
switch (AS) {
default: