clang-tools 20.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/STLForwardCompat.h"
#include "llvm/ADT/SmallVector.h"
#include "llvm/Support/Casting.h"
#include "llvm/Support/ErrorHandling.h"
#include <array>
#include <cassert>
#include <optional>
#include <stack>
#include <tuple>
#include <type_traits>
#include <utility>

Go to the source code of this file.

Namespaces

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

Macros

#define CurrentBinaryOperator   BinaryOperatorsStack.top()
 

Macro Definition Documentation

◆ CurrentBinaryOperator

#define CurrentBinaryOperator   BinaryOperatorsStack.top()

Definition at line 309 of file FunctionCognitiveComplexityCheck.cpp.

Variable Documentation

◆ C

const Criteria C

Definition at line 92 of file FunctionCognitiveComplexityCheck.cpp.

Referenced by clang::clangd::markup::Paragraph::appendCode(), clang::clangd::markup::Paragraph::appendText(), clang::tidy::utils::capturesByRef(), clang::tidy::llvm_check::TwineLocalCheck::check(), clang::tidy::modernize::UseUncaughtExceptionsCheck::check(), clang::clangd::check(), clang::tidy::bugprone::collapseConsecutive(), clang::clangd::collectWords(), clang::clangd::config::Fragment::compile(), containsMisleadingBidi(), clang::clangd::ClangdServer::createConfiguredContextProvider(), clang::tidy::createRegexFromGlob(), clang::clangd::Config::current(), clang::clangd::currentContext(), clang::clangd::FuzzyMatcher::dumpLast(), clang::doc::ClangDocBitcodeWriter::emitBlock(), clang::doc::serialize::emitInfo(), clang::clangd::escapeBackslashAndQuotes(), clang::tidy::utils::escapeForDiagnostic(), clang::clangd::dex::findPathInURI(), clang::clangd::flattenSymbolHierarchy(), clang::clangd::fromJSON(), clang::clangd::SymbolID::fromStr(), clang::doc::genHTML(), clang::doc::genIndex(), clang::doc::genInfoIndexItem(), clang::doc::genMarkdown(), clang::clangd::config::Provider::getConfig(), clang::tidy::bugprone::getExprAsString(), clang::clangd::getSemanticHighlightings(), clang::clangd::getSignature(), clang::clangd::getStdlibUmbrellaHeader(), clang::tidy::modernize::hasOnlyComments(), clang::tidy::modernize::hasRValueOverload(), clang::tidy::cppcoreguidelines::hasSingleVariadicArgumentWithValue(), clang::clangd::increment(), clang::tidy::cppcoreguidelines::isCapsOnly(), clang::tidy::modernize::isIntegralConstant(), clang::tidy::readability::isSeparator(), clang::doc::isTypedefAnonRecord(), 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::rangeTillEOL(), clang::tidy::modernize::RawStringLiteralCheck::RawStringLiteralCheck(), clang::clangd::riff::readChunk(), clang::clangd::removeCompletionLabelDetails(), clang::clangd::markup::Paragraph::renderMarkdown(), clang::clangd::markup::Paragraph::renderPlainText(), clang::doc::serializeIndex(), clang::doc::Index::sort(), clang::clangd::TEST(), clang::clangd::TEST_F(), clang::clangd::toJSON(), 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

◆ DefaultLimit

constexpr unsigned DefaultLimit = 25U
staticconstexpr

Definition at line 127 of file FunctionCognitiveComplexityCheck.cpp.

◆ Details

SmallVector<Detail, DefaultLimit> Details

◆ Loc

const SourceLocation Loc

Definition at line 90 of file FunctionCognitiveComplexityCheck.cpp.

◆ Nesting

const unsigned short Nesting

◆ Total

unsigned Total = 0