clang 22.0.0git
EntryPointStats.cpp File Reference
#include "clang/StaticAnalyzer/Core/PathSensitive/EntryPointStats.h"
#include "clang/AST/DeclBase.h"
#include "clang/Analysis/AnalysisDeclContext.h"
#include "clang/Index/USRGeneration.h"
#include "llvm/ADT/STLExtras.h"
#include "llvm/ADT/SmallVector.h"
#include "llvm/ADT/StringExtras.h"
#include "llvm/ADT/StringRef.h"
#include "llvm/Support/FileSystem.h"
#include "llvm/Support/ManagedStatic.h"
#include "llvm/Support/raw_ostream.h"
#include <iterator>

Go to the source code of this file.

Functions

static void checkStatName (const EntryPointStat *M)
static bool isRegistered (llvm::StringLiteral Name)
static std::vector< std::optional< unsigned > > consumeExplicitlySetStats ()
static std::vector< unsignedconsumeMaxAndCounterStats ()
static std::vector< llvm::StringLiteral > getStatNames ()
static std::string getUSR (const Decl *D)

Variables

static llvm::ManagedStatic< Registry > StatsRegistry

Function Documentation

◆ checkStatName()

void checkStatName ( const EntryPointStat * M)
static

◆ consumeExplicitlySetStats()

std::vector< std::optional< unsigned > > consumeExplicitlySetStats ( )
static

Definition at line 131 of file EntryPointStats.cpp.

References StatsRegistry.

Referenced by clang::ento::EntryPointStat::takeSnapshot().

◆ consumeMaxAndCounterStats()

std::vector< unsigned > consumeMaxAndCounterStats ( )
static

Definition at line 141 of file EntryPointStats.cpp.

References StatsRegistry.

Referenced by clang::ento::EntryPointStat::takeSnapshot().

◆ getStatNames()

std::vector< llvm::StringLiteral > getStatNames ( )
static

Definition at line 157 of file EntryPointStats.cpp.

Referenced by clang::ento::EntryPointStat::dumpStatsAsCSV().

◆ getUSR()

std::string getUSR ( const Decl * D)
static

◆ isRegistered()

Variable Documentation

◆ StatsRegistry