OSDN Git Service

[ASTMatchers] Add binaryOperation matcher
authorStephen Kelly <steveire@gmail.com>
Tue, 5 Jan 2021 01:33:13 +0000 (01:33 +0000)
committerStephen Kelly <steveire@gmail.com>
Sat, 16 Jan 2021 13:44:09 +0000 (13:44 +0000)
commite810e95e4bb908d1c8844e2c6f7da999732cabc9
treeff008f6f0cec1660d61d9b8a762c26ccbcf3e8ac
parent4f155567317d3187bc18be866b3f3b5352f1bfa5
[ASTMatchers] Add binaryOperation matcher

This is a simple utility which allows matching on binaryOperator and
cxxOperatorCallExpr. It can also be extended to support
cxxRewrittenBinaryOperator.

Add generic support for MapAnyOfMatchers to auto-marshalling functions.

Differential Revision: https://reviews.llvm.org/D94129
clang/docs/LibASTMatchersReference.html
clang/docs/tools/dump_ast_matchers.py
clang/include/clang/ASTMatchers/ASTMatchers.h
clang/lib/ASTMatchers/ASTMatchersInternal.cpp
clang/lib/ASTMatchers/Dynamic/Marshallers.h
clang/lib/ASTMatchers/Dynamic/Registry.cpp
clang/unittests/ASTMatchers/ASTMatchersNarrowingTest.cpp