Skip to content

Commit 0a01ec9

Browse files
committed
[clang-tidy] Remove broken test on Windows for readability-misleading-indentation.
Because Windows build uses by default `fdelayed-template-parsing` we cannot have a test where we don't instantiate the template. Please see D72333.
1 parent 659f7d4 commit 0a01ec9

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

clang-tools-extra/test/clang-tidy/checkers/readability-misleading-indentation.cpp

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -168,17 +168,6 @@ void mustFailNonTemplate() {
168168
// CHECK-MESSAGES: :[[@LINE-2]]:5: warning: different indentation for 'if' and corresponding 'else' [readability-misleading-indentation]
169169
}
170170

171-
template<bool b>
172-
void mustFailNoInsta() {
173-
if constexpr (b) {
174-
foo1();
175-
}
176-
else {
177-
foo2();
178-
// CHECK-MESSAGES: :[[@LINE-2]]:5: warning: different indentation for 'if' and corresponding 'else' [readability-misleading-indentation]
179-
}
180-
}
181-
182171
template<bool b>
183172
void mustPassNoInsta() {
184173
if constexpr (b) {

0 commit comments

Comments
 (0)