File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change 1- // RUN: clang-tidy -checks=-*,readability-magic-numbers %t.cpp -- 2>&1 | FileCheck %s --check-prefix=CHECK-NORMAL
2- // RUN: clang-tidy -checks=-*,readability-magic-numbers -quiet %t.cpp -- 2>&1 | FileCheck %s --check-prefix=CHECK-QUIET
1+ // RUN: clang-tidy -checks=-*,readability-magic-numbers %s -- 2>&1 | FileCheck %s --check-prefix=CHECK-NORMAL
2+ // RUN: clang-tidy -checks=-*,readability-magic-numbers -quiet %s -- 2>&1 | FileCheck %s --check-prefix=CHECK-QUIET
33
44// Normal mode should show warning count
55// CHECK-NORMAL: 1 warning generated
66// CHECK-NORMAL: warning: 42 is a magic number
77
8- // Quiet mode should suppress warning count
9- // CHECK-QUIET-NOT: 1 warning generated
8+ // Quiet mode should suppress warning count but show diagnostic
109// CHECK-QUIET: warning: 42 is a magic number
10+ // CHECK-QUIET-NOT: {{[0-9]+}} warning{{s?}} generated
1111
1212int main () {
13- int x = 42 ;
13+ int x = 42 ; // This will trigger readability-magic-numbers
1414}
You can’t perform that action at this time.
0 commit comments