[clang-tools-extra] [clang-tidy] Don't report unnamed params for misc-const-correctness (PR #184388)
Carlos Galvez via cfe-commits
cfe-commits at lists.llvm.org
Tue Mar 3 12:11:59 PST 2026
================
@@ -509,3 +509,7 @@ void struct_ptr_param_modified(Bar** bp) {
// CHECK-FIXES: void struct_ptr_param_modified(Bar** const bp) {
(*bp)->mutating_method();
}
+
+void unnamed_parameters(int, char *, Bar, Bar&, int[5]) {
----------------
carlosgalvezp wrote:
Maybe could be interesting to also have a case where it has e.g. N unnamed and M named, to ensure the M ones are still reported
https://github.com/llvm/llvm-project/pull/184388
More information about the cfe-commits
mailing list