diff options
author | George Karpenkov <ekarpenkov@apple.com> | 2018-07-28 02:16:13 +0000 |
---|---|---|
committer | George Karpenkov <ekarpenkov@apple.com> | 2018-07-28 02:16:13 +0000 |
commit | 39e5137f43917417a2ce6bb663de39af005bd452 (patch) | |
tree | 5b48c31c9c17ca576bd34d83491c603359ffa9d2 /clang/include | |
parent | 38aecc63814bf481a0951d8d4c3d95fe053b7337 (diff) | |
download | bcm5719-llvm-39e5137f43917417a2ce6bb663de39af005bd452.tar.gz bcm5719-llvm-39e5137f43917417a2ce6bb663de39af005bd452.zip |
[AST] Add a convenient getter from QualType to RecordDecl
Differential Revision: https://reviews.llvm.org/D49951
llvm-svn: 338187
Diffstat (limited to 'clang/include')
-rw-r--r-- | clang/include/clang/AST/Type.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/clang/include/clang/AST/Type.h b/clang/include/clang/AST/Type.h index c692707847a..81e799c3bae 100644 --- a/clang/include/clang/AST/Type.h +++ b/clang/include/clang/AST/Type.h @@ -2017,6 +2017,9 @@ public: /// type of a class template or class template partial specialization. CXXRecordDecl *getAsCXXRecordDecl() const; + /// Retrieves the RecordDecl this type refers to. + RecordDecl *getAsRecordDecl() const; + /// Retrieves the TagDecl that this type refers to, either /// because the type is a TagType or because it is the injected-class-name /// type of a class template or class template partial specialization. |