diff options
author | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2008-08-07 20:55:28 +0000 |
---|---|---|
committer | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2008-08-07 20:55:28 +0000 |
commit | 49aa7ff1245abd03e6e998e01302df31e4c6f8f6 (patch) | |
tree | 18b18b5515dc02905ccea92db713f4e1a678aba2 /lib/AST/Type.cpp | |
parent | 7cf0a7a4c6554d67f360e4efa06cdc2fcca33886 (diff) |
Add CXXRecordType class.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@54488 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/AST/Type.cpp')
-rw-r--r-- | lib/AST/Type.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/AST/Type.cpp b/lib/AST/Type.cpp index f9f6ecac07..c4b44afd32 100644 --- a/lib/AST/Type.cpp +++ b/lib/AST/Type.cpp @@ -13,6 +13,7 @@ #include "clang/AST/Type.h" #include "clang/AST/Decl.h" +#include "clang/AST/DeclCXX.h" #include "clang/AST/DeclObjC.h" #include "clang/AST/Expr.h" #include "clang/Basic/IdentifierTable.h" @@ -739,6 +740,10 @@ bool RecordType::classof(const TagType *TT) { return isa<RecordDecl>(TT->getDecl()); } +bool CXXRecordType::classof(const TagType *TT) { + return isa<CXXRecordDecl>(TT->getDecl()); +} + bool EnumType::classof(const TagType *TT) { return isa<EnumDecl>(TT->getDecl()); } |