[clang] [clang][TSA] Make RequiresCapability a DeclOrType attribute (PR #67095)

Erich Keane via cfe-commits cfe-commits at lists.llvm.org
Wed Dec 6 06:46:01 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>


================
@@ -8938,6 +8957,11 @@ static void processTypeAttrs(TypeProcessingState &state, QualType &type,
       attr.setUsedAsTypeAttr();
       break;
     }
+    case ParsedAttr::AT_RequiresCapability: {
+      HandleRequiresCapabilityAttr(state, type, attr);
+      attr.setUsedAsTypeAttr();
+      break;
+    }
----------------
erichkeane wrote:

I think I agree Aaron, if we don't diagnose now, it'll be pretty ugly to do it later.

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


More information about the cfe-commits mailing list