diff options
author | Aaron Ballman <aaron@aaronballman.com> | 2016-01-20 16:26:48 +0000 |
---|---|---|
committer | Aaron Ballman <aaron@aaronballman.com> | 2016-01-20 16:26:48 +0000 |
commit | 2b6963fce925dbaaffc83ea6b62f5a77baf84665 (patch) | |
tree | 002bf0d4ed4280c3cb73ba52f836d2255c287963 /clang/unittests/ASTMatchers/Dynamic | |
parent | e8295d7980225c91d2c616f771448f6b5bda3f5b (diff) | |
download | bcm5719-llvm-2b6963fce925dbaaffc83ea6b62f5a77baf84665.tar.gz bcm5719-llvm-2b6963fce925dbaaffc83ea6b62f5a77baf84665.zip |
Add AST matcher support for FunctionDecls with the hasBody matcher.
Patch by Aleksei Sidorin.
llvm-svn: 258322
Diffstat (limited to 'clang/unittests/ASTMatchers/Dynamic')
-rw-r--r-- | clang/unittests/ASTMatchers/Dynamic/ParserTest.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/unittests/ASTMatchers/Dynamic/ParserTest.cpp b/clang/unittests/ASTMatchers/Dynamic/ParserTest.cpp index 0de6242a67b..81373dab96a 100644 --- a/clang/unittests/ASTMatchers/Dynamic/ParserTest.cpp +++ b/clang/unittests/ASTMatchers/Dynamic/ParserTest.cpp @@ -263,7 +263,7 @@ TEST(ParserTest, Errors) { "1:1: Matcher does not support binding.", ParseWithError("isArrow().bind(\"foo\")")); EXPECT_EQ("Input value has unresolved overloaded type: " - "Matcher<DoStmt|ForStmt|WhileStmt|CXXForRangeStmt>", + "Matcher<DoStmt|ForStmt|WhileStmt|CXXForRangeStmt|FunctionDecl>", ParseMatcherWithError("hasBody(stmt())")); } |