[clang] [BoundsSafety][Sema] Allow counted_by and counted_by_or_null on pointers where the pointee type is incomplete but potentially completable (PR #106321)

Aaron Ballman via cfe-commits cfe-commits at lists.llvm.org
Tue Jan 7 09:43:29 PST 2025


================
@@ -3907,6 +3923,31 @@ CountAttributedType::CountAttributedType(
     DeclSlot[i] = CoupledDecls[i];
 }
 
+StringRef CountAttributedType::getAttributeName(bool WithMacroPrefix) const {
+// TODO: This method isn't really ideal because it doesn't return the spelling
----------------
AaronBallman wrote:

It's not clear to me why this is needed at all -- doesn't `Attr::getSpelling()` suffice on the attribute, rather than asking the type?

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


More information about the cfe-commits mailing list