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

Oleksandr T. via cfe-commits cfe-commits at lists.llvm.org
Thu Jan 23 10:13:11 PST 2025


================
@@ -166,7 +166,8 @@ getScopeFromNormalizedScopeName(StringRef ScopeName) {
       .Case("hlsl", AttributeCommonInfo::Scope::HLSL)
       .Case("msvc", AttributeCommonInfo::Scope::MSVC)
       .Case("omp", AttributeCommonInfo::Scope::OMP)
-      .Case("riscv", AttributeCommonInfo::Scope::RISCV);
+      .Case("riscv", AttributeCommonInfo::Scope::RISCV)
+      .Default(AttributeCommonInfo::Scope::NONE);
----------------
a-tarasyuk wrote:

I added `UNKNOWN` kind as the default case

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


More information about the cfe-commits mailing list