diff options
| author | Aaron Ballman <aaron@aaronballman.com> | 2015-10-05 14:41:27 +0000 |
|---|---|---|
| committer | Aaron Ballman <aaron@aaronballman.com> | 2015-10-05 14:41:27 +0000 |
| commit | 3fd6c110bea17628828e1d149906312343cac99e (patch) | |
| tree | d38337773bbf7097f6f37aea836cdf934d94fbe8 /clang/unittests/ASTMatchers/ASTMatchersTest.h | |
| parent | 2b4e14ed588d974985911bf6ad64178f022257b4 (diff) | |
| download | bcm5719-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.h | 7 |
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( |

