Use a recursive visitor instead of forEachDescendant() matcher.
The latter requires several layers of virtual function calls for each node and
it is more expensive than the visitor.
Benchmark results show improvement of ~6% walltime in clang-tidy.
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
Comment Actions
LG. Thank you!
clang-tidy/readability/FunctionSizeCheck.cpp | ||
---|---|---|
25 ↗ | (On Diff #58311) | nit: clang-format -style=file |