[clang] [clang] WIP: Warn on mismatched RequiresCapability attributes (PR #67520)
Aaron Puchert via cfe-commits
cfe-commits at lists.llvm.org
Fri Aug 30 16:56:15 PDT 2024
================
@@ -3978,7 +3978,9 @@ def warn_acquired_before : Warning<
def warn_acquired_before_after_cycle : Warning<
"cycle in acquired_before/after dependencies, starting with '%0'">,
InGroup<ThreadSafetyAnalysis>, DefaultIgnore;
-
+def warn_attribute_mismatch : Warning<
+ "attribute mismatch between function definition and declaration of %0">,
+ InGroup<ThreadSafetyAnalysis>, DefaultIgnore;
----------------
aaronpuchert wrote:
```suggestion
InGroup<ThreadSafetyAttributes>, DefaultIgnore;
```
https://github.com/llvm/llvm-project/pull/67520
More information about the cfe-commits
mailing list