The new matchers can be used to check if an expression is type-, value- or instantiation-dependent
in a templated context.
These matchers are used in a clang-tidy check and generally useful as the
problem of unresolved templates occurs more often in clang-tidy and they
provide an easy way to check for this issue.
Details
Details
Diff Detail
Diff Detail
- Repository
- rC Clang
- Build Status
Buildable 22476 Build 22476: arc lint + arc unit
Event Timeline
Comment Actions
Missing tests and changes to Registry.cpp for dynamic matchers.
Also, do you want to add isInstantiationDependent() at the same time, given the relationship with the other two matchers?
include/clang/ASTMatchers/ASTMatchers.h | ||
---|---|---|
777 | s/dependant/dependent | |
787 | Your example should include the matcher syntax. | |
790 | s/dependant/dependent |
Comment Actions
Do you mean a matcher that does return Node.isValueDependent() || Node.isTypeDependent() or hasAncestor(expr(anyOf(isValueDependent(), isTypeDependent())))?
s/dependant/dependent