Author: Andi-Bogdan Postelnicu Date: 2020-01-08T20:37:23+02:00 New Revision: 0a01ec972d2e24c721f46e55210d42391ae52b70
URL: https://github.com/llvm/llvm-project/commit/0a01ec972d2e24c721f46e55210d42391ae52b70 DIFF: https://github.com/llvm/llvm-project/commit/0a01ec972d2e24c721f46e55210d42391ae52b70.diff LOG: [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. Added: Modified: clang-tools-extra/test/clang-tidy/checkers/readability-misleading-indentation.cpp Removed: ################################################################################ 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 7ceb0cb42cfe..c3bd33d8ee7b 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 @@ -168,17 +168,6 @@ void mustFailNonTemplate() { // CHECK-MESSAGES: :[[@LINE-2]]:5: warning: diff erent indentation for 'if' and corresponding 'else' [readability-misleading-indentation] } -template<bool b> -void mustFailNoInsta() { - if constexpr (b) { - foo1(); - } - else { - foo2(); - // CHECK-MESSAGES: :[[@LINE-2]]:5: warning: diff erent indentation for 'if' and corresponding 'else' [readability-misleading-indentation] - } -} - template<bool b> void mustPassNoInsta() { if constexpr (b) { _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits