clang-tools  14.0.0git
Namespaces | Macros
FunctionCognitiveComplexityCheck.cpp File Reference
#include "FunctionCognitiveComplexityCheck.h"
#include "../ClangTidyDiagnosticConsumer.h"
#include "clang/AST/Decl.h"
#include "clang/AST/DeclBase.h"
#include "clang/AST/Expr.h"
#include "clang/AST/RecursiveASTVisitor.h"
#include "clang/AST/Stmt.h"
#include "clang/ASTMatchers/ASTMatchFinder.h"
#include "clang/ASTMatchers/ASTMatchers.h"
#include "clang/ASTMatchers/ASTMatchersInternal.h"
#include "clang/Basic/Diagnostic.h"
#include "clang/Basic/DiagnosticIDs.h"
#include "clang/Basic/LLVM.h"
#include "clang/Basic/SourceLocation.h"
#include "llvm/ADT/Optional.h"
#include "llvm/ADT/SmallVector.h"
#include "llvm/Support/Casting.h"
#include "llvm/Support/ErrorHandling.h"
#include <array>
#include <cassert>
#include <stack>
#include <tuple>
#include <type_traits>
#include <utility>
Include dependency graph for FunctionCognitiveComplexityCheck.cpp:

Go to the source code of this file.

Namespaces

 clang
 ===– Representation.cpp - ClangDoc Representation --------—*- C++ -*-===//
 
 clang::tidy
 
 clang::tidy::readability
 

Macros

#define CurrentBinaryOperator   BinaryOperatorsStack.top()
 

Macro Definition Documentation

◆ CurrentBinaryOperator

#define CurrentBinaryOperator   BinaryOperatorsStack.top()

Definition at line 318 of file FunctionCognitiveComplexityCheck.cpp.

Variable Documentation

◆ C

const Criteria C

Definition at line 93 of file FunctionCognitiveComplexityCheck.cpp.

Referenced by clang::clangd::markup::Paragraph::appendCode(), clang::clangd::markup::Paragraph::appendText(), clang::tidy::utils::capturesByRef(), consumeGlob(), clang::clangd::Config::current(), clang::clangd::currentContext(), clang::doc::ClangDocBitcodeWriter::emitBlock(), clang::doc::serialize::emitInfo(), llvm::yaml::ScalarEnumerationTraits< SymbolLanguage >::enumeration(), clang::clangd::escapeBackslashAndQuotes(), clang::clangd::flattenSymbolHierarchy(), clang::clangd::fromJSON(), clang::doc::genHTML(), clang::doc::genIndex(), clang::doc::genInfoIndexItem(), clang::doc::genMarkdown(), clang::clangd::config::Provider::getConfig(), clang::clangd::getSemanticHighlightings(), clang::clangd::getSignature(), clang::tidy::utils::hasExplanation(), clang::tidy::cppcoreguidelines::hasSingleVariadicArgumentWithValue(), clang::clangd::increment(), clang::clangd::iterateCodepoints(), clang::clangd::lower(), clang::tidy::cppcoreguidelines::SpecialMemberFunctionsCheck::onEndOfTranslationUnit(), clang::clangd::riff::operator<<(), clang::clangd::operator<<(), clang::clangd::markup::Document::operator=(), llvm::yaml::ScalarTraits< SmallString< U > >::output(), clang::doc::serialize::ClangDocCommentVisitor::parseComment(), clang::doc::serialize::parseFullComment(), clang::doc::serialize::populateInfo(), clang::doc::serialize::populateSymbolInfo(), clang::clangd::positionToOffset(), clang::clangd::printObjCContainer(), clang::clangd::printObjCMethod(), clang::clangd::riff::readChunk(), clang::clangd::markup::Paragraph::renderMarkdown(), clang::clangd::markup::Paragraph::renderPlainText(), clang::doc::serializeIndex(), clang::doc::SerializeIndex(), clang::doc::Index::sort(), clang::clangd::TEST(), clang::clangd::toJSON(), clang::clangd::dex::Trigram::Trigram(), clang::doc::serialize::ClangDocCommentVisitor::visitBlockCommandComment(), clang::doc::serialize::ClangDocCommentVisitor::visitHTMLEndTagComment(), clang::doc::serialize::ClangDocCommentVisitor::visitHTMLStartTagComment(), clang::doc::serialize::ClangDocCommentVisitor::visitInlineCommandComment(), clang::doc::serialize::ClangDocCommentVisitor::visitParamCommandComment(), clang::doc::serialize::ClangDocCommentVisitor::visitTextComment(), clang::doc::serialize::ClangDocCommentVisitor::visitTParamCommandComment(), clang::doc::serialize::ClangDocCommentVisitor::visitVerbatimBlockComment(), clang::doc::serialize::ClangDocCommentVisitor::visitVerbatimBlockLineComment(), and clang::doc::serialize::ClangDocCommentVisitor::visitVerbatimLineComment().

◆ CC

CognitiveComplexity CC

Definition at line 496 of file FunctionCognitiveComplexityCheck.cpp.

◆ DefaultLimit

constexpr unsigned DefaultLimit = 25U
staticconstexpr

Definition at line 128 of file FunctionCognitiveComplexityCheck.cpp.

◆ Details

SmallVector<Detail, DefaultLimit> Details

Definition at line 138 of file FunctionCognitiveComplexityCheck.cpp.

◆ Loc

const SourceLocation Loc

Definition at line 91 of file FunctionCognitiveComplexityCheck.cpp.

◆ Nesting

const unsigned short Nesting

Definition at line 92 of file FunctionCognitiveComplexityCheck.cpp.

◆ Total

unsigned Total = 0