summaryrefslogtreecommitdiffstats
path: root/clang/unittests/ASTMatchers/ASTMatchersTest.h
diff options
context:
space:
mode:
authorAaron Ballman <aaron@aaronballman.com>2015-10-05 14:41:27 +0000
committerAaron Ballman <aaron@aaronballman.com>2015-10-05 14:41:27 +0000
commit3fd6c110bea17628828e1d149906312343cac99e (patch)
treed38337773bbf7097f6f37aea836cdf934d94fbe8 /clang/unittests/ASTMatchers/ASTMatchersTest.h
parent2b4e14ed588d974985911bf6ad64178f022257b4 (diff)
downloadbcm5719-llvm-3fd6c110bea17628828e1d149906312343cac99e.tar.gz
bcm5719-llvm-3fd6c110bea17628828e1d149906312343cac99e.zip
Adding a narrowing AST matcher for FunctionDecl::isVariadic(), plus tests and documentation.
llvm-svn: 249321
Diffstat (limited to 'clang/unittests/ASTMatchers/ASTMatchersTest.h')
-rw-r--r--clang/unittests/ASTMatchers/ASTMatchersTest.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/clang/unittests/ASTMatchers/ASTMatchersTest.h b/clang/unittests/ASTMatchers/ASTMatchersTest.h
index 285d2630cea..9ed7ef66e51 100644
--- a/clang/unittests/ASTMatchers/ASTMatchersTest.h
+++ b/clang/unittests/ASTMatchers/ASTMatchersTest.h
@@ -126,6 +126,13 @@ testing::AssertionResult matchesC(const std::string &Code, const T &AMatcher) {
}
template <typename T>
+testing::AssertionResult notMatchesC(const std::string &Code,
+ const T &AMatcher) {
+ return matchesConditionally(Code, AMatcher, false, "", FileContentMappings(),
+ "input.c");
+}
+
+template <typename T>
testing::AssertionResult notMatchesObjC(const std::string &Code,
const T &AMatcher) {
return matchesConditionally(
OpenPOWER on IntegriCloud