]> granicus.if.org Git - clang/commitdiff
Fixes the MSVC build.
authorManuel Klimek <klimek@google.com>
Tue, 10 Jul 2012 14:21:30 +0000 (14:21 +0000)
committerManuel Klimek <klimek@google.com>
Tue, 10 Jul 2012 14:21:30 +0000 (14:21 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@159992 91177308-0d34-0410-b5e6-96231b3b80d8

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

index 7a4f9af6c4f3a90fbcaa7d3ea3cb45df0305c02b..9692edcd4f1f0beb287ec8df295ad7706ca115f3 100644 (file)
@@ -6,3 +6,5 @@
 
 // CHECK: C++ requires
 invalid;
+
+// REQUIRES: shell
index cb5fd56328ef9069a089c3c34f890841ed80c945..ea7eb158be22e20c2fce31edfde219fd595efe06 100644 (file)
@@ -6,3 +6,5 @@
 
 // CHECK: C++ requires
 invalid;
+
+// REQUIRES: shell
index 40a2a1c9fe392489b53561f4466acd92bda1e11a..d8e82e77545f4236244bd8a6c2d525939e531513 100644 (file)
@@ -6,3 +6,5 @@
 
 // CHECK: C++ requires
 invalid;
+
+// REQUIRES: shell
index 290da9005d660fe35e46fb4773845112df3c2e8f..3f7b5ed39d9c3f819d644dec7622edee1ec206f9 100644 (file)
@@ -44,7 +44,12 @@ TEST(NameableDeclaration, MatchesVariousDecls) {
 
 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 @@ TEST(Function, MatchesFunctionDeclarations) {
   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(