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

Oleksandr T. via cfe-commits cfe-commits at lists.llvm.org
Thu Jan 2 17:25:29 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>;
----------------
a-tarasyuk wrote:

@erichkeane thanks for the feedback. should cases like `unknown:a` not trigger warnings, even in _pedantic_ mode?







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


More information about the cfe-commits mailing list