================ @@ -3277,6 +3277,11 @@ def warn_function_attribute_ignored_in_stmt : Warning< "use '%0' on statements">, InGroup<IgnoredAttributes>; +def warn_stmt_attribute_ignored_in_function : Warning< + "attribute is ignored on this function as it only applies to statements; " + "use '%0' for functions">, ---------------- shafik wrote:
Why do we need an input here? It looks like there is only one possible value? Are we going to extend this diagnostic? https://github.com/llvm/llvm-project/pull/185282 _______________________________________________ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
