From 0a01ec972d2e24c721f46e55210d42391ae52b70 Mon Sep 17 00:00:00 2001 From: Andi-Bogdan Postelnicu Date: Wed, 8 Jan 2020 19:59:19 +0200 Subject: [PATCH] [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. --- .../checkers/readability-misleading-indentation.cpp | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/clang-tools-extra/test/clang-tidy/checkers/readability-misleading-indentation.cpp b/clang-tools-extra/test/clang-tidy/checkers/readability-misleading-indentation.cpp index 7ceb0cb..c3bd33d 100644 --- a/clang-tools-extra/test/clang-tidy/checkers/readability-misleading-indentation.cpp +++ b/clang-tools-extra/test/clang-tidy/checkers/readability-misleading-indentation.cpp @@ -169,17 +169,6 @@ void mustFailNonTemplate() { } template -void mustFailNoInsta() { - if constexpr (b) { - foo1(); - } - else { - foo2(); - // CHECK-MESSAGES: :[[@LINE-2]]:5: warning: different indentation for 'if' and corresponding 'else' [readability-misleading-indentation] - } -} - -template void mustPassNoInsta() { if constexpr (b) { foo1(); -- 2.7.4