[clang] [Clang] Add [[clang::diagnose_specializations]] (PR #101469)
Nikolas Klauser via cfe-commits
cfe-commits at lists.llvm.org
Tue Aug 20 01:47:24 PDT 2024
================
@@ -3327,6 +3330,15 @@ def DiagnoseIf : InheritableAttr {
let Documentation = [DiagnoseIfDocs];
}
+def DiagnoseSpecializations : InheritableAttr {
+ let Spellings = [Clang<"diagnose_specializations", /*AllowInC*/0>];
+ let Args = [StringArgument<"Message", 1>];
----------------
philnik777 wrote:
The idea of this attribute is that it says "if you specialize this anything could happen, so don't do it". I don't think it makes a ton of sense to give the choice of making this a warning by default on the attribute level.
https://github.com/llvm/llvm-project/pull/101469
More information about the cfe-commits
mailing list