================ @@ -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 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits