diff options
| author | Alexander Kornienko <alexfh@google.com> | 2015-08-27 18:01:58 +0000 |
|---|---|---|
| committer | Alexander Kornienko <alexfh@google.com> | 2015-08-27 18:01:58 +0000 |
| commit | f8ed0a8d358fb7016a4f3284be865c8576f98228 (patch) | |
| tree | 75f134d2711fc604fdab199c6b0efb61c0ccf680 /clang-tools-extra/clang-tidy/readability/FunctionSizeCheck.h | |
| parent | 643e0ab8df312c138bed98fcafea17755ddd43d8 (diff) | |
| download | bcm5719-llvm-f8ed0a8d358fb7016a4f3284be865c8576f98228.tar.gz bcm5719-llvm-f8ed0a8d358fb7016a4f3284be865c8576f98228.zip | |
[clang-tidy] Update docs for clang-tidy checks. NFC
Changes mostly address formatting and unification of the style. Use
MarkDown style for inline code snippets and lists. Added some text
for a few checks.
The idea is to move most of the documentation out to separate rST files and have
implementation files refer to the corresponding documentation files.
llvm-svn: 246169
Diffstat (limited to 'clang-tools-extra/clang-tidy/readability/FunctionSizeCheck.h')
| -rw-r--r-- | clang-tools-extra/clang-tidy/readability/FunctionSizeCheck.h | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/clang-tools-extra/clang-tidy/readability/FunctionSizeCheck.h b/clang-tools-extra/clang-tidy/readability/FunctionSizeCheck.h index 819f04d07b1..1231cb139ea 100644 --- a/clang-tools-extra/clang-tidy/readability/FunctionSizeCheck.h +++ b/clang-tools-extra/clang-tidy/readability/FunctionSizeCheck.h @@ -16,7 +16,17 @@ namespace clang { namespace tidy { namespace readability { -/// \brief Checks for large functions based on various metrics. +/// Checks for large functions based on various metrics. +/// +/// These options are supported: +/// +/// * `LineThreshold` - flag functions exceeding this number of lines. The +/// default is `-1` (ignore the number of lines). +/// * `StatementThreshold` - flag functions exceeding this number of +/// statements. This may differ significantly from the number of lines for +/// macro-heavy code. The default is `800`. +/// * `BranchThreshold` - flag functions exceeding this number of control +/// statements. The default is `-1` (ignore the number of branches). class FunctionSizeCheck : public ClangTidyCheck { public: FunctionSizeCheck(StringRef Name, ClangTidyContext *Context); |

