[clang] [clang][NFC] Add Type::isPointerOrReferenceType() (PR #101206)

Shafik Yaghmour via cfe-commits cfe-commits at lists.llvm.org
Tue Jul 30 19:34:12 PDT 2024


================
@@ -75,7 +75,7 @@ bool Qualifiers::isStrictSupersetOf(Qualifiers Other) const {
 const IdentifierInfo* QualType::getBaseTypeIdentifier() const {
   const Type* ty = getTypePtr();
   NamedDecl *ND = nullptr;
-  if (ty->isPointerType() || ty->isReferenceType())
+  if (ty->isPointerOrReferenceType())
----------------
shafik wrote:

super nitpick that should really be `Ty` but I suppose not directly related to the fix but feels drive by.

https://github.com/llvm/llvm-project/pull/101206


More information about the cfe-commits mailing list