[clang-tools-extra] 0a01ec9 - [clang-tidy] Remove broken test on Windows for `readability-misleading-indentation`.

Andi-Bogdan Postelnicu via cfe-commits cfe-commits at lists.llvm.org
Wed Jan 8 10:37:46 PST 2020


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) {


        


More information about the cfe-commits mailing list