It doesn't provide a way to match on the contents of the default
argumment. Rather than give it that capability, make it deprecated and
recomment the use of hasInitializer instead.
Details
Details
- Reviewers
aaron.ballman - Commits
- rG3e315ba2547c: Deprecate the hasDefaultArgument matcher
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
LGTM with a small doc request.
clang/include/clang/ASTMatchers/ASTMatchers.h | ||
---|---|---|
6555 | It would probably be useful to show an equivalent expression to hasDefaultArgument() as well, e.g., parmVarDecl(hasInitializer(anything())). |
It would probably be useful to show an equivalent expression to hasDefaultArgument() as well, e.g., parmVarDecl(hasInitializer(anything())).