Clang-Tidy: check number of lines in a function

474 views Asked by At

Can you please help me with how to check CPP files in a project for functions exceeding 'n' number of lines using Clang-Tidy?

1

There are 1 answers

0
Adrian Mole On

You can use the readability-function-size check and set the LineThreshold parameter to your n value.