1 // RUN: %check_clang_tidy -fix-errors %s misc-unused-parameters %t 2 3 namespace GH56152 { 4 // There's no way to know whether the parameter is used or not if the parameter 5 // is an invalid declaration. Ensure the diagnostic is suppressed in this case. func(unknown_type value)6void func(unknown_type value) { // CHECK-MESSAGES: :[[@LINE]]:11: error: unknown type name 'unknown_type' 7 value += 1; 8 } 9 } 10 11