[clang] [Clang] emit -Wignored-qualifiers diagnostic for cv-qualified base classes (PR #121419)

Oleksandr T. via cfe-commits cfe-commits at lists.llvm.org
Thu Jan 2 07:08:07 PST 2025


================
@@ -2655,6 +2655,15 @@ CXXBaseSpecifier *Sema::CheckBaseSpecifier(CXXRecordDecl *Class,
       return nullptr;
     }
 
+    if (BaseType.hasQualifiers() && !isa<SubstTemplateTypeParmType>(BaseType)) {
+      auto Quals =
----------------
a-tarasyuk wrote:

thanks for the feedback. I've updated it to use an explicit type.








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


More information about the cfe-commits mailing list