[clang][ASTMatcher] Add matchers for CXXFoldExpr (#71245)
commitcbaadb1f0ff9966a65c926b3d8c32f2f47281b73
authorJulian Schmidt <44101708+5chmidti@users.noreply.github.com>
Tue, 16 Jan 2024 16:13:38 +0000 (16 17:13 +0100)
committerGitHub <noreply@github.com>
Tue, 16 Jan 2024 16:13:38 +0000 (16 17:13 +0100)
tree2cfd89e5ac84a34d56ab64098e96c05dfc363e0c
parent27acfdd2ded8c3b246dc2580ba43c285741b1dfd
[clang][ASTMatcher] Add matchers for CXXFoldExpr (#71245)

Adds support for the following matchers related to `CXXFoldExpr`:
`cxxFoldExpr`, `callee`,
  `hasInit`, `hasPattern`, `isRightFold`, `isLeftFold`,
  `isUnaryFold`, `isBinaryFold`, `hasOperator`, `hasLHS`, `hasRHS`.
clang/docs/LibASTMatchersReference.html
clang/docs/ReleaseNotes.rst
clang/include/clang/ASTMatchers/ASTMatchers.h
clang/include/clang/ASTMatchers/ASTMatchersInternal.h
clang/lib/ASTMatchers/ASTMatchersInternal.cpp
clang/lib/ASTMatchers/Dynamic/Registry.cpp
clang/unittests/AST/ASTImporterTest.cpp
clang/unittests/ASTMatchers/ASTMatchersNarrowingTest.cpp
clang/unittests/ASTMatchers/ASTMatchersNodeTest.cpp
clang/unittests/ASTMatchers/ASTMatchersTraversalTest.cpp