brintos

brintos / llvm-project-archived public Read only

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