clang 20.0.0git
Namespaces | Macros | Functions | Variables
StandardLibrary.cpp File Reference
#include "clang/Tooling/Inclusions/StandardLibrary.h"
#include "clang/AST/Decl.h"
#include "clang/Basic/LangOptions.h"
#include "llvm/ADT/ArrayRef.h"
#include "llvm/ADT/DenseSet.h"
#include "llvm/ADT/STLExtras.h"
#include "llvm/ADT/StringRef.h"
#include "llvm/Support/Casting.h"
#include <optional>
#include "CSpecialSymbolMap.inc"
#include "CSymbolMap.inc"
#include "StdSpecialSymbolMap.inc"
#include "StdSymbolMap.inc"
#include "StdTsSymbolMap.inc"

Go to the source code of this file.

Namespaces

namespace  clang
 The JSON file list parser is used to communicate input to InstallAPI.
 
namespace  clang::tooling
 
namespace  clang::tooling::stdlib
 

Macros

#define SYMBOL(Name, NS, Header)   #NS #Name,
 
#define SYMBOL(Name, NS, Header)
 

Functions

static const SymbolHeaderMapping * clang::tooling::stdlib::getMappingPerLang (Lang L)
 
static int clang::tooling::stdlib::countSymbols (Lang Language)
 
static int clang::tooling::stdlib::initialize (Lang Language)
 
static void clang::tooling::stdlib::ensureInitialized ()
 

Variables

static SymbolHeaderMapping * clang::tooling::stdlib::LanguageMappings [static_cast< unsigned >(Lang::LastValue)+1]
 

Macro Definition Documentation

◆ SYMBOL [1/2]

#define SYMBOL (   Name,
  NS,
  Header 
)    #NS #Name,

◆ SYMBOL [2/2]

#define SYMBOL (   Name,
  NS,
  Header 
)
Value:
{#NS #Name, static_cast<decltype(Symbol::NSLen)>(StringRef(#NS).size()), \
#Header},

Variable Documentation

◆ Data

const char* Data

Definition at line 36 of file StandardLibrary.cpp.

Referenced by clang::ento::CheckerRegistry::addChecker(), clang::ento::CheckerRegistry::addCheckerOption(), clang::ento::CheckerRegistry::addDependency(), clang::StoredDeclsList::addOrReplaceDecl(), clang::ento::CheckerRegistry::addPackage(), clang::ento::CheckerRegistry::addPackageOption(), clang::ento::CheckerRegistry::addWeakDependency(), clang::PointerAuthQualifier::authenticatesNullValues(), clang::ento::BlockCounter::BlockCounter(), clang::CFGTerminator::CFGTerminator(), clang::ento::CheckerRegistry::CheckerRegistry(), clang::analyze_os_log::computeOSLogBufferLayout(), clang::ConstructionContextItem::ConstructionContextItem(), clang::OMPDependClause::Create(), clang::serialization::DeclarationNameKey::DeclarationNameKey(), DetectDistro(), clang::StoredDeclsList::dump(), clang::CodeGen::CGOpenMPRuntimeGPU::emitTeamsOutlinedFunction(), clang::FunctionType::ExtParameterInfo::getABI(), clang::APValue::getAddrLabelDiffLHS(), clang::APValue::getAddrLabelDiffRHS(), clang::OffsetOfNode::getArrayExprIndex(), clang::APValue::getArrayFiller(), clang::APValue::getArrayInitializedElt(), clang::APValue::getArrayInitializedElts(), clang::APValue::getArraySize(), clang::StoredDeclsList::getAsListAndHasExternal(), clang::PointerAuthQualifier::getAsOpaqueValue(), clang::PointerAuthQualifier::getAuthenticationMode(), clang::OffsetOfNode::getBase(), clang::OMPDependClause::getColonLoc(), clang::APValue::getComplexFloatImag(), clang::APValue::getComplexFloatReal(), clang::APValue::getComplexIntImag(), clang::APValue::getComplexIntReal(), clang::CodeGen::CGBlockInfo::Capture::getConstant(), clang::ConstructionContextItem::getCXXCtorInitializer(), clang::BlockInvocationContext::getData(), clang::EmbedExpr::getData(), clang::EmbedExpr::getDataStringLiteral(), clang::ento::CXXBaseObjectRegion::getDecl(), clang::ObjCInterfaceDecl::getDefinition(), clang::ObjCProtocolDecl::getDefinition(), clang::OMPDependClause::getDependencyKind(), clang::OMPDependClause::getDependencyLoc(), clang::PointerAuthQualifier::getExtraDiscriminator(), clang::OffsetOfNode::getField(), clang::APValue::getFixedPoint(), clang::APValue::getFloat(), clang::serialization::DeclarationNameKey::getHash(), clang::serialization::DeclarationNameKey::getIdentifier(), clang::CodeGen::CGBlockInfo::Capture::getIndex(), clang::APValue::getInt(), clang::PointerAuthQualifier::getKey(), clang::CFGTerminator::getKind(), clang::OffsetOfNode::getKind(), clang::StoredDeclsList::getLookupResult(), clang::OMPDependClause::getOmpAllMemoryLoc(), clang::NestedNameSpecifierLoc::getOpaqueData(), clang::FunctionType::ExtParameterInfo::getOpaqueValue(), clang::CodeGen::ConstantInitFuture::getOpaqueValue(), clang::serialization::DeclarationNameKey::getOperatorKind(), clang::NestedNameSpecifierLoc::getPrefix(), clang::serialization::DeclarationNameKey::getSelector(), clang::CFGTerminator::getStmt(), clang::ConstructionContextItem::getStmt(), clang::APValue::getStructBase(), clang::APValue::getStructField(), clang::APValue::getStructNumBases(), clang::APValue::getStructNumFields(), clang::APValue::getUnionField(), clang::APValue::getUnionValue(), clang::APValue::getVectorElt(), clang::APValue::getVectorLength(), clang::ObjCInterfaceDecl::hasDefinition(), clang::ObjCProtocolDecl::hasDefinition(), clang::FunctionType::ExtParameterInfo::hasPassObjectSize(), clang::ento::CheckerRegistry::initializeManager(), clang::ento::CheckerRegistry::initializeRegistry(), clang::PointerAuthQualifier::isAddressDiscriminated(), clang::FunctionType::ExtParameterInfo::isConsumed(), clang::CodeGen::CGBlockInfo::Capture::isIndex(), clang::PointerAuthQualifier::isIsaPointer(), clang::FunctionType::ExtParameterInfo::isNoEscape(), clang::StoredDeclsList::isNull(), clang::PointerAuthQualifier::isPresent(), clang::CFGTerminator::isValid(), clang::ento::CXXBaseObjectRegion::isVirtual(), clang::StoredDeclsList::MaybeDeallocList(), clang::NestedNameSpecifierLoc::NestedNameSpecifierLoc(), clang::OffsetOfNode::OffsetOfNode(), clang::CodeGen::CodeGenFunction::OpaqueValueMapping::OpaqueValueMapping(), clang::CodeGen::ConstantInitFuture::operator bool(), clang::ConstructionContextItem::operator<(), clang::StoredDeclsList::operator=(), clang::ConstructionContextItem::operator==(), clang::CodeGen::CodeGenFunction::OpaqueValueMapping::pop(), clang::StoredDeclsList::prependDeclNoReplace(), PrintPreprocessedTokens(), clang::ConstructionContextItem::Profile(), clang::PointerAuthQualifier::Profile(), clang::BlockInvocationContext::Profile(), clang::StoredDeclsList::removeExternalDecls(), clang::StoredDeclsList::replaceExternalDecls(), clang::APValue::setAddrLabelDiff(), clang::APValue::setComplexFloat(), clang::APValue::setComplexInt(), clang::APValue::setFixedPoint(), clang::APValue::setFloat(), clang::StoredDeclsList::setHasExternalDecls(), clang::APValue::setInt(), clang::Value::setPtr(), clang::StoredDeclsList::StoredDeclsList(), clang::ento::CheckerRegistry::validateCheckerOptions(), and clang::CodeGen::CodeGenFunction::OpaqueValueMapping::~OpaqueValueMapping().

◆ HeaderIDs

llvm::DenseMap<llvm::StringRef, unsigned>* HeaderIDs

Definition at line 31 of file StandardLibrary.cpp.

◆ HeaderNames

llvm::StringRef* HeaderNames = nullptr

Definition at line 29 of file StandardLibrary.cpp.

◆ NameLen

unsigned NameLen

Definition at line 38 of file StandardLibrary.cpp.

◆ NamespaceSymbols

llvm::DenseMap<llvm::StringRef, NSSymbolMap *>* NamespaceSymbols = nullptr

Definition at line 46 of file StandardLibrary.cpp.

Referenced by clang::tooling::stdlib::Symbol::named().

◆ ScopeLen

unsigned ScopeLen

Definition at line 37 of file StandardLibrary.cpp.

◆ SymbolCount

unsigned SymbolCount = 0

Definition at line 33 of file StandardLibrary.cpp.

◆ SymbolHeaderIDs

llvm::SmallVector<unsigned>* SymbolHeaderIDs = nullptr

Definition at line 48 of file StandardLibrary.cpp.

Referenced by clang::tooling::stdlib::Symbol::headers().

◆ 

struct { ... } ::SymbolHeaderMapping::SymbolName * SymbolNames