clang-tools 22.0.0git
|
Checks function Cognitive Complexity metric. More...
#include <FunctionCognitiveComplexityCheck.h>
Public Member Functions | |
FunctionCognitiveComplexityCheck (StringRef Name, ClangTidyContext *Context) | |
void | storeOptions (ClangTidyOptions::OptionMap &Opts) override |
void | registerMatchers (ast_matchers::MatchFinder *Finder) override |
void | check (const ast_matchers::MatchFinder::MatchResult &Result) override |
std::optional< TraversalKind > | getCheckTraversalKind () const override |
Checks function Cognitive Complexity metric.
There are the following configuration option:
IgnoreMacros - if set to true, the check will ignore code inside macros. Default is false.
For the user-facing documentation see: https://clang.llvm.org/extra/clang-tidy/checks/readability/function-cognitive-complexity.html
Definition at line 32 of file FunctionCognitiveComplexityCheck.h.
clang::tidy::readability::FunctionCognitiveComplexityCheck::FunctionCognitiveComplexityCheck | ( | StringRef | Name, |
ClangTidyContext * | Context ) |
Definition at line 497 of file FunctionCognitiveComplexityCheck.cpp.
|
override |
Definition at line 520 of file FunctionCognitiveComplexityCheck.cpp.
References clang::tidy::readability::Msgs.
|
inlineoverride |
Definition at line 39 of file FunctionCognitiveComplexityCheck.h.
|
override |
Definition at line 511 of file FunctionCognitiveComplexityCheck.cpp.
|
override |
Definition at line 504 of file FunctionCognitiveComplexityCheck.cpp.