[PATCH] D71166: Deprecate the hasDefaultArgument matcher
Aaron Ballman via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Sat Dec 7 13:24:49 PST 2019
aaron.ballman accepted this revision.
aaron.ballman added a comment.
This revision is now accepted and ready to land.
LGTM with a small doc request.
================
Comment at: clang/include/clang/ASTMatchers/ASTMatchers.h:6555
+/// \endcode
+/// parmVarDecl(hasInitializer(integerLiteral(equals(42))))
+/// matches the parameter of y
----------------
It would probably be useful to show an equivalent expression to `hasDefaultArgument()` as well, e.g., `parmVarDecl(hasInitializer(anything()))`.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D71166/new/
https://reviews.llvm.org/D71166
More information about the cfe-commits
mailing list