[clang-tools-extra] r215590 - ClangTidyTests: Suppress FixHeaderGuards on win32 for now.

NAKAMURA Takumi geek4civic at gmail.com
Wed Aug 13 15:12:39 PDT 2014


Author: chapuni
Date: Wed Aug 13 17:12:38 2014
New Revision: 215590

URL: http://llvm.org/viewvc/llvm-project?rev=215590&view=rev
Log:
ClangTidyTests: Suppress FixHeaderGuards on win32 for now.

FIXME: It seems this might be incompatible to dos path. Investigating.

Modified:
    clang-tools-extra/trunk/unittests/clang-tidy/LLVMModuleTest.cpp

Modified: clang-tools-extra/trunk/unittests/clang-tidy/LLVMModuleTest.cpp
URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/unittests/clang-tidy/LLVMModuleTest.cpp?rev=215590&r1=215589&r2=215590&view=diff
==============================================================================
--- clang-tools-extra/trunk/unittests/clang-tidy/LLVMModuleTest.cpp (original)
+++ clang-tools-extra/trunk/unittests/clang-tidy/LLVMModuleTest.cpp Wed Aug 13 17:12:38 2014
@@ -86,6 +86,8 @@ TEST(NamespaceCommentCheckTest, FixWrong
                                                   "} // namespace asdf"));
 }
 
+// FIXME: It seems this might be incompatible to dos path. Investigating.
+#if !defined(_WIN32)
 static std::string runHeaderGuardCheck(StringRef Code, const Twine &Filename) {
   return test::runCheckOnCode<LLVMHeaderGuardCheck>(
       Code, /*Errors=*/nullptr, Filename, std::string("-xc++-header"));
@@ -125,6 +127,7 @@ TEST(LLVMHeaderGuardCheckTest, FixHeader
                 "int foo;\n#ifndef FOOLOLO\n#define FOOLOLO\n#endif\n",
                 "include/clang/bar.h"));
 }
+#endif
 
 } // namespace test
 } // namespace tidy





More information about the cfe-commits mailing list