[cfe-commits] r159992 - in /cfe/trunk: test/Tooling/auto-detect-from-source-parent-of-cwd.cpp test/Tooling/auto-detect-from-source-parent.cpp test/Tooling/auto-detect-from-source.cpp unittests/ASTMatchers/ASTMatchersTest.cpp

Manuel Klimek klimek at google.com
Tue Jul 10 07:21:30 PDT 2012


Author: klimek
Date: Tue Jul 10 09:21:30 2012
New Revision: 159992

URL: http://llvm.org/viewvc/llvm-project?rev=159992&view=rev
Log:
Fixes the MSVC build.

Modified:
    cfe/trunk/test/Tooling/auto-detect-from-source-parent-of-cwd.cpp
    cfe/trunk/test/Tooling/auto-detect-from-source-parent.cpp
    cfe/trunk/test/Tooling/auto-detect-from-source.cpp
    cfe/trunk/unittests/ASTMatchers/ASTMatchersTest.cpp

Modified: cfe/trunk/test/Tooling/auto-detect-from-source-parent-of-cwd.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Tooling/auto-detect-from-source-parent-of-cwd.cpp?rev=159992&r1=159991&r2=159992&view=diff
==============================================================================
--- cfe/trunk/test/Tooling/auto-detect-from-source-parent-of-cwd.cpp (original)
+++ cfe/trunk/test/Tooling/auto-detect-from-source-parent-of-cwd.cpp Tue Jul 10 09:21:30 2012
@@ -6,3 +6,5 @@
 
 // CHECK: C++ requires
 invalid;
+
+// REQUIRES: shell

Modified: cfe/trunk/test/Tooling/auto-detect-from-source-parent.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Tooling/auto-detect-from-source-parent.cpp?rev=159992&r1=159991&r2=159992&view=diff
==============================================================================
--- cfe/trunk/test/Tooling/auto-detect-from-source-parent.cpp (original)
+++ cfe/trunk/test/Tooling/auto-detect-from-source-parent.cpp Tue Jul 10 09:21:30 2012
@@ -6,3 +6,5 @@
 
 // CHECK: C++ requires
 invalid;
+
+// REQUIRES: shell

Modified: cfe/trunk/test/Tooling/auto-detect-from-source.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Tooling/auto-detect-from-source.cpp?rev=159992&r1=159991&r2=159992&view=diff
==============================================================================
--- cfe/trunk/test/Tooling/auto-detect-from-source.cpp (original)
+++ cfe/trunk/test/Tooling/auto-detect-from-source.cpp Tue Jul 10 09:21:30 2012
@@ -6,3 +6,5 @@
 
 // CHECK: C++ requires
 invalid;
+
+// REQUIRES: shell

Modified: cfe/trunk/unittests/ASTMatchers/ASTMatchersTest.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/unittests/ASTMatchers/ASTMatchersTest.cpp?rev=159992&r1=159991&r2=159992&view=diff
==============================================================================
--- cfe/trunk/unittests/ASTMatchers/ASTMatchersTest.cpp (original)
+++ cfe/trunk/unittests/ASTMatchers/ASTMatchersTest.cpp Tue Jul 10 09:21:30 2012
@@ -44,7 +44,12 @@
 
 TEST(DeclarationMatcher, MatchClass) {
   DeclarationMatcher ClassMatcher(record());
+#if !defined(_MSC_VER)
   EXPECT_FALSE(matches("", ClassMatcher));
+#else
+  // Matches class type_info.
+  EXPECT_TRUE(matches("", ClassMatcher));
+#endif
 
   DeclarationMatcher ClassX = record(record(hasName("X")));
   EXPECT_TRUE(matches("class X;", ClassX));
@@ -839,12 +844,15 @@
   EXPECT_TRUE(matches("void f() { f(); }", CallFunctionF));
   EXPECT_TRUE(notMatches("void f() { }", CallFunctionF));
 
+#if !defined(_MSC_VER)
+  // FIXME: Make this work for MSVC.
   // Dependent contexts, but a non-dependent call.
   EXPECT_TRUE(matches("void f(); template <int N> void g() { f(); }",
                       CallFunctionF));
   EXPECT_TRUE(
       matches("void f(); template <int N> struct S { void g() { f(); } };",
               CallFunctionF));
+#endif
 
   // Depedent calls don't match.
   EXPECT_TRUE(





More information about the cfe-commits mailing list