================
@@ -2883,14 +2883,23 @@ class alignas(TypeAlignment) Type : public
ExtQualsTypeCommonBase {
/// because the type is a RecordType or because it is the injected-class-name
/// type of a class template or class template partial specialization.
CXXRecordDecl *getAsCXXRecordDecl() const;
+ CXXRecordDecl *castAsCXXRecordDecl() const;
/// Retrieves the RecordDecl this type refers to.
RecordDecl *getAsRecordDecl() const;
+ RecordDecl *castAsRecordDecl() const;
+
+ /// Retrieves the TagDecl that this type refers to, either
+ /// because the type is a TagType or because it is the injected-class-name
----------------
bolshakov-a wrote:
Copy-pasted comment. Should be `Enum...`.
https://github.com/llvm/llvm-project/pull/155028
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits