[clang-tools-extra] r217768 - [clang-tidy] Add a checker for long functions.

Alexander Kornienko alexfh at google.com
Mon Sep 15 06:16:10 PDT 2014


On Mon, Sep 15, 2014 at 2:48 PM, Benjamin Kramer <benny.kra at googlemail.com>
wrote:

> Author: d0k
> Date: Mon Sep 15 07:48:25 2014
> New Revision: 217768
>
> URL: http://llvm.org/viewvc/llvm-project?rev=217768&view=rev
> Log:
> [clang-tidy] Add a checker for long functions.
>
> As this is very dependent on the code base it has some ways of
> configuration.
> It's possible to pick between 3 modes of operation:
>
> - Line counting: number of lines including whitespace and comments
> - Statement counting: number of statements within compoundStmts.
> - Branch counter
>
> In addition a threshold can be picked, warnings are only emitted when it
> is met.
> The thresholds can be configured via a .clang-tidy file.
>

BTW, it would be nice to have the above description in the class comment
together with the configuration option names.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20140915/914475f6/attachment.html>


More information about the cfe-commits mailing list