Skip to content

Commit 21c7ab1

Browse files
committed
make new accessor private
1 parent a8c958e commit 21c7ab1

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

clang/include/clang/AST/Type.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3602,7 +3602,6 @@ class MemberPointerType : public Type, public llvm::FoldingSetNode {
36023602
}
36033603

36043604
NestedNameSpecifier *getQualifier() const { return Qualifier; }
3605-
CXXRecordDecl *getCXXRecordDecl() const;
36063605
/// Note: this can trigger extra deserialization when external AST sources are
36073606
/// used. Prefer `getCXXRecordDecl()` unless you really need the most recent
36083607
/// decl.
@@ -3624,6 +3623,9 @@ class MemberPointerType : public Type, public llvm::FoldingSetNode {
36243623
static bool classof(const Type *T) {
36253624
return T->getTypeClass() == MemberPointer;
36263625
}
3626+
3627+
private:
3628+
CXXRecordDecl *getCXXRecordDecl() const;
36273629
};
36283630

36293631
/// Capture whether this is a normal array (e.g. int X[4])

0 commit comments

Comments
 (0)