[clang] [clang][TSA] Make RequiresCapability a DeclOrType attribute (PR #67095)
Aaron Ballman via cfe-commits
cfe-commits at lists.llvm.org
Wed Dec 6 06:42:35 PST 2023
Timm =?utf-8?q?Bäder?= <tbaeder at redhat.com>,
Timm =?utf-8?q?Bäder?= <tbaeder at redhat.com>,
Timm =?utf-8?q?Bäder?= <tbaeder at redhat.com>,
Timm =?utf-8?q?Bäder?= <tbaeder at redhat.com>,
Timm =?utf-8?q?Bäder?= <tbaeder at redhat.com>
Message-ID:
In-Reply-To: <llvm.org/llvm/llvm-project/pull/67095 at github.com>
================
@@ -1894,6 +1894,8 @@ void TypePrinter::printAttributedAfter(const AttributedType *T,
case attr::ArmMveStrictPolymorphism:
OS << "__clang_arm_mve_strict_polymorphism";
break;
+ case attr::RequiresCapability:
+ OS << "requires_capability(blah)";
----------------
AaronBallman wrote:
I think that if you need the `Attr *`, you have to handle it specially -- see `BTFTagAttributedType` as an example -- that stores the attribute itself along with the type.
So yeah, let's go with `...` and a FIXME comment for now, WDYT?
https://github.com/llvm/llvm-project/pull/67095
More information about the cfe-commits
mailing list