From: George Karpenkov Date: Mon, 16 Jul 2018 20:42:37 +0000 (+0000) Subject: [ASTMatchers] Quickfix for tests. X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=810ed5b40767079459011c956cbe2feed5487d30;p=platform%2Fupstream%2Fllvm.git [ASTMatchers] Quickfix for tests. llvm-svn: 337214 --- diff --git a/clang/unittests/ASTMatchers/ASTMatchersTraversalTest.cpp b/clang/unittests/ASTMatchers/ASTMatchersTraversalTest.cpp index 85b22b2..3b8f362 100644 --- a/clang/unittests/ASTMatchers/ASTMatchersTraversalTest.cpp +++ b/clang/unittests/ASTMatchers/ASTMatchersTraversalTest.cpp @@ -424,28 +424,28 @@ TEST(Matcher, AnyArgument) { TEST(Matcher, HasReceiver) { EXPECT_TRUE(matchesObjC( - "@interface NSString @end" + "@interface NSString @end " "void f(NSString *x) {" - "[x containsString]" + "[x containsString];" "}", objcMessageExpr(hasReceiver(declRefExpr(to(varDecl(hasName("x")))))))); EXPECT_FALSE(matchesObjC( - "@interface NSString +(NSString *) stringWithFormat; @end" + "@interface NSString +(NSString *) stringWithFormat; @end " "void f() { [NSString stringWithFormat]; }", objcMessageExpr(hasReceiver(declRefExpr(to(varDecl(hasName("x")))))))); } TEST(Matcher, isInstanceMessage) { EXPECT_TRUE(matchesObjC( - "@interface NSString @end" + "@interface NSString @end " "void f(NSString *x) {" - "[x containsString]" + "[x containsString];" "}", objcMessageExpr(isInstanceMessage()))); EXPECT_FALSE(matchesObjC( - "@interface NSString +(NSString *) stringWithFormat; @end" + "@interface NSString +(NSString *) stringWithFormat; @end " "void f() { [NSString stringWithFormat]; }", objcMessageExpr(isInstanceMessage())));