[AST matchers] Add basic matchers for googletest EXPECT/ASSERT calls.
authorYitzhak Mandelbaum <yitzhakm@google.com>
Wed, 19 Feb 2020 16:04:51 +0000 (11:04 -0500)
committerYitzhak Mandelbaum <yitzhakm@google.com>
Fri, 21 Feb 2020 17:05:15 +0000 (12:05 -0500)
commit23444edf30ba00ccefa3a582ac7ddc29774e9da5
tree90a485b6026e31eba24c79b7aef99738c714baa2
parent134bab7cd5679673d6807595ae77b5bc0c3b83c2
[AST matchers] Add basic matchers for googletest EXPECT/ASSERT calls.

Summary:
This revision adds matchers that match calls to the gtest EXPECT and ASSERT
macros almost like function calls. The matchers are placed in separate files
(GtestMatchers...), because they are specific to the gtest library.

Reviewers: gribozavr2

Subscribers: mgorny, cfe-commits

Tags: #clang

Differential Revision: https://reviews.llvm.org/D74840
clang/include/clang/ASTMatchers/GtestMatchers.h [new file with mode: 0644]
clang/lib/ASTMatchers/CMakeLists.txt
clang/lib/ASTMatchers/GtestMatchers.cpp [new file with mode: 0644]
clang/unittests/ASTMatchers/CMakeLists.txt
clang/unittests/ASTMatchers/GtestMatchersTest.cpp [new file with mode: 0644]