llvm-project
a0058617 - [clang-tidy]improve performance-unnecessary-value-param performance (#128383)

Commit
316 days ago
[clang-tidy]improve performance-unnecessary-value-param performance (#128383) Tolerate fix-it breaking compilation when functions is used as pointers. `isReferencedOutsideOfCallExpr` will visit the whole translate unit for each matched function decls. It will waste lots of cpu time in some big cpp files. But the benefits of this validation are limited. Lots of function usage are out of current translation unit. After removing this validation step, the check profiling changes from 5.7 to 1.1 in SemaExprCXX.cpp, which is similar to version 18.
Author
Parents
Loading