1 | // RUN: %check_clang_tidy %s bugprone-tagged-union-member-count %t \ |
2 | // RUN: -config='{CheckOptions: { \ |
3 | // RUN: bugprone-tagged-union-member-count.EnableCountingEnumHeuristic: false, \ |
4 | // RUN: bugprone-tagged-union-member-count.CountingEnumSuffixes: "count", \ |
5 | // RUN: bugprone-tagged-union-member-count.CountingEnumPrefixes: "last", \ |
6 | // RUN: }}' |
7 | |
8 | // Warn when the heuristic is disabled and a suffix or a prefix is set explicitly. |
9 | |
10 | // CHECK-MESSAGES: warning: bugprone-tagged-union-member-count: Counting enum heuristic is disabled but CountingEnumPrefixes is set |
11 | // CHECK-MESSAGES: warning: bugprone-tagged-union-member-count: Counting enum heuristic is disabled but CountingEnumSuffixes is set |
12 | |