Remove unnecessary wrapping for the 0 and 1 matcher cases of
makeAllOfComposite(). We don't need a variadic wrapper for those cases.
Refactor TrueMatcher to take advandage of the new conversions between
DynTypedMatcher and Matcher<T>. Also, make it a singleton.
This change improves our clang-tidy related benchmarks by ~12%.
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
Comment Actions
lg
include/clang/ASTMatchers/ASTMatchersInternal.h | ||
---|---|---|
450 ↗ | (On Diff #14581) | What is this needed for? I'd prefer if we could get rid of it, but if not, it should have a comment explaining it (so we can take it out if we don't need it any more). |
Comment Actions
Added comment
include/clang/ASTMatchers/ASTMatchersInternal.h | ||
---|---|---|
450 ↗ | (On Diff #14581) | Matcher(DynTypedMatcher) is private because it is essentially "unsafe". You can easily create a matcher that matches nothing. |