diff options
author | Benjamin Kramer <benny.kra@googlemail.com> | 2014-09-15 12:48:25 +0000 |
---|---|---|
committer | Benjamin Kramer <benny.kra@googlemail.com> | 2014-09-15 12:48:25 +0000 |
commit | 6e195426e72282a63f19d0fc448fb1d6730ccd07 (patch) | |
tree | 677d16bd904feed3b2a00330397b88690f50ff81 /clang/lib/Frontend/InitPreprocessor.cpp | |
parent | 707a2e098dd6b30ebf7d6246360c794296eb0ad9 (diff) | |
download | llvm-6e195426e72282a63f19d0fc448fb1d6730ccd07.zip llvm-6e195426e72282a63f19d0fc448fb1d6730ccd07.tar.gz llvm-6e195426e72282a63f19d0fc448fb1d6730ccd07.tar.bz2 |
[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.
Differential Revision: http://reviews.llvm.org/D4986
llvm-svn: 217768
Diffstat (limited to 'clang/lib/Frontend/InitPreprocessor.cpp')
0 files changed, 0 insertions, 0 deletions