hanchenye-llvm-project/clang-tools-extra/clang-tidy/misc
Benjamin Kramer 6e195426e7 [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
2014-09-15 12:48:25 +00:00
..
ArgumentCommentCheck.cpp Implemented clang-tidy-check-specific options. 2014-09-12 08:53:36 +00:00
ArgumentCommentCheck.h Implemented clang-tidy-check-specific options. 2014-09-12 08:53:36 +00:00
BoolPointerImplicitConversion.cpp [clang-tidy] Use new ASTMatchers to identify template instantiations instead of copying it everywhere. 2014-09-03 13:21:51 +00:00
BoolPointerImplicitConversion.h Implemented clang-tidy-check-specific options. 2014-09-12 08:53:36 +00:00
CMakeLists.txt [clang-tidy] Add a checker for long functions. 2014-09-15 12:48:25 +00:00
FunctionSize.cpp [clang-tidy] Add a checker for long functions. 2014-09-15 12:48:25 +00:00
FunctionSize.h [clang-tidy] Add a checker for long functions. 2014-09-15 12:48:25 +00:00
Makefile
MiscTidyModule.cpp [clang-tidy] Add a checker for long functions. 2014-09-15 12:48:25 +00:00
RedundantSmartptrGet.cpp
RedundantSmartptrGet.h Implemented clang-tidy-check-specific options. 2014-09-12 08:53:36 +00:00
SwappedArgumentsCheck.cpp [clang-tidy] Add a checker for swapped arguments. 2014-07-14 14:24:30 +00:00
SwappedArgumentsCheck.h Implemented clang-tidy-check-specific options. 2014-09-12 08:53:36 +00:00
UndelegatedConstructor.cpp [clang-tidy] Eliminate inline copies of InTemplateInstantiation matcher. 2014-09-03 13:30:28 +00:00
UndelegatedConstructor.h Implemented clang-tidy-check-specific options. 2014-09-12 08:53:36 +00:00
UnusedRAII.cpp [clang-tidy] Eliminate inline copies of InTemplateInstantiation matcher. 2014-09-03 13:30:28 +00:00
UnusedRAII.h Implemented clang-tidy-check-specific options. 2014-09-12 08:53:36 +00:00
UseOverride.cpp clang-tidy: [use-override] Tweak messages. 2014-07-28 07:29:29 +00:00
UseOverride.h Implemented clang-tidy-check-specific options. 2014-09-12 08:53:36 +00:00