We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
readability-misleading-indentation
1 parent 659f7d4 commit 0a01ec9Copy full SHA for 0a01ec9
clang-tools-extra/test/clang-tidy/checkers/readability-misleading-indentation.cpp
@@ -168,17 +168,6 @@ void mustFailNonTemplate() {
168
// CHECK-MESSAGES: :[[@LINE-2]]:5: warning: different indentation for 'if' and corresponding 'else' [readability-misleading-indentation]
169
}
170
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
-
182
template<bool b>
183
void mustPassNoInsta() {
184
if constexpr (b) {
0 commit comments