[clang] [Clang] raise extension warning for unknown namespaced attributes (PR #120925)

Erich Keane via cfe-commits cfe-commits at lists.llvm.org
Thu Jan 2 06:20:22 PST 2025


================
@@ -179,6 +179,8 @@ def err_opencl_unknown_type_specifier : Error<
 
 def warn_unknown_attribute_ignored : Warning<
   "unknown attribute %0 ignored">, InGroup<UnknownAttributes>;
+def ext_unknown_attribute_ignored : Extension<
+  "unknown attribute %0 ignored">, InGroup<UnknownAttributes>;
----------------
erichkeane wrote:

the text here should be different, we need to say something about how we don't know it because we don't support the whole namespace.

Also, I don't think this makes sense as an extension warning, we should diagnose unknown namespace, but it isn't any different than unknown attribute in severity.

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


More information about the cfe-commits mailing list