[ASTMatchers] extract public matchers from const-analysis into own patch
authorJonas Toth <development@jonas-toth.eu>
Sat, 11 Jan 2020 18:21:03 +0000 (19:21 +0100)
committerJonas Toth <development@jonas-toth.eu>
Sat, 11 Jan 2020 18:21:03 +0000 (19:21 +0100)
commit4c48ea68e491cb42f1b5d43ffba89f6a7f0dadc4
treeb184cd10a71042c26bb53ece21203642d5eeca43
parent2bdf33cc4c733342fc83081bc7410ac5e9a24f55
[ASTMatchers] extract public matchers from const-analysis into own patch

Summary:
The analysis for const-ness of local variables required a view generally useful
matchers that are extracted into its own patch.

They are `decompositionDecl` and `forEachArgumentWithParamType`, that works
for calls through function pointers as well.

Reviewers: aaron.ballman

Reviewed By: aaron.ballman

Subscribers: cfe-commits

Tags: #clang

Differential Revision: https://reviews.llvm.org/D72505
clang/docs/LibASTMatchersReference.html
clang/include/clang/ASTMatchers/ASTMatchers.h
clang/lib/ASTMatchers/Dynamic/Registry.cpp
clang/unittests/ASTMatchers/ASTMatchersTraversalTest.cpp