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
Event Timeline
Comment Actions
LG. Thank you!
clang-tidy/readability/FunctionSizeCheck.cpp | ||
---|---|---|
25 | nit: clang-format -style=file |
nit: clang-format -style=file