clang  19.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

 clang
 The JSON file list parser is used to communicate input to InstallAPI.
 
 clang::tooling
 
 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::SemaOpenMP::ActOnOpenMPDependClause(), clang::SemaOpenMP::ActOnOpenMPVarListClause(), clang::serialization::MultiOnDiskHashTable< Info >::add(), clang::ento::CheckerRegistry::addCheckerOption(), clang::ASTRecordWriter::AddCXXDefinitionData(), clang::data_collection::addDataToConsumer(), clang::ento::CheckerRegistry::addDependency(), clang::ento::ProgramStateManager::addGDM(), clang::StoredDeclsList::addOrReplaceDecl(), clang::ento::CheckerRegistry::addPackage(), clang::ento::CheckerRegistry::addPackageOption(), clang::ento::CheckerRegistry::addWeakDependency(), clang::APValue::APValue(), clang::PointerAuthQualifier::authenticatesNullValues(), clang::ento::BlockCounter::BlockCounter(), clang::ento::CheckerRegistry::CheckerRegistry(), clang::CodeGen::CGOpenMPRuntime::clear(), clang::analyze_os_log::computeOSLogBufferLayout(), clang::ConstructionContextItem::ConstructionContextItem(), clang::CodeCompletionAllocator::CopyString(), clang::edit::EditedSource::copyString(), clang::OMPDependClause::Create(), createImplicitFirstprivateForType(), clang::serialization::DeclarationNameKey::DeclarationNameKey(), clang::DeductionFailureInfo::Destroy(), DetectDistro(), clang::StoredDeclsList::dump(), emitAArch64DeclareSimdFunction(), clang::CodeGen::CodeGenFunction::EmitCfiCheckFail(), clang::CodeGen::CodeGenFunction::EmitCheckSourceLocation(), emitDependData(), clang::CodeGen::CGOpenMPRuntime::emitDepobjElements(), clang::CodeGen::CGOpenMPRuntime::emitDepobjElementsSizes(), clang::CodeGen::CGOpenMPRuntimeGPU::emitFunctionProlog(), clang::CodeGen::CodeGenFunction::EmitOMPReductionClauseInit(), emitPrivatesInit(), clang::CodeGen::CGOpenMPRuntime::emitTaskCall(), clang::CodeGen::CGOpenMPRuntime::emitTaskInit(), clang::CodeGen::CGOpenMPRuntime::emitTaskLoopCall(), emitTaskPrivateMappingFunction(), clang::CodeGen::CGOpenMPRuntime::emitTaskReductionInit(), clang::CodeGen::CGOpenMPRuntime::emitTaskwaitCall(), clang::CodeGen::CGOpenMPRuntimeGPU::emitTeamsOutlinedFunction(), emitX86DeclareSimdFunction(), clang::FunctionType::ExtParameterInfo::getABI(), clang::APValue::getAddrLabelDiffLHS(), clang::APValue::getAddrLabelDiffRHS(), clang::CodeGen::CodeGenFunction::OMPBuilderCBHelpers::getAddrOfThreadPrivate(), 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::LocationContextManager::getBlockInvocationContext(), clang::AnalysisDeclContext::getBlockInvocationContext(), clang::OMPLoopDirective::getBody(), clang::DeductionFailureInfo::getCallArgIndex(), 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::ento::CXXBaseObjectRegion::getDecl(), clang::ObjCInterfaceDecl::getDefinition(), clang::ObjCProtocolDecl::getDefinition(), clang::OMPDependClause::getDependencyKind(), clang::OMPDependClause::getDependencyLoc(), clang::PointerAuthQualifier::getExtraDiscriminator(), clang::ConcreteTypeLoc< Base, Derived, TypeClass, LocalData >::getExtraLocalData(), clang::OffsetOfNode::getField(), clang::DeductionFailureInfo::getFirstArg(), 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::ConcreteTypeLoc< Base, Derived, TypeClass, LocalData >::getLocalData(), clang::StoredDeclsList::getLookupResult(), clang::ConcreteTypeLoc< Base, Derived, TypeClass, LocalData >::getNonLocalData(), clang::OMPDependClause::getOmpAllMemoryLoc(), clang::NestedNameSpecifierLoc::getOpaqueData(), clang::FunctionType::ExtParameterInfo::getOpaqueValue(), clang::CodeGen::ConstantInitFuture::getOpaqueValue(), clang::serialization::DeclarationNameKey::getOperatorKind(), clang::ento::BasicValueFactory::getPersistentSValWithData(), clang::NestedNameSpecifierLoc::getPrefix(), clang::ento::nonloc::LazyCompoundVal::getRegion(), clang::DeductionFailureInfo::getSecondArg(), clang::serialization::DeclarationNameKey::getSelector(), clang::CFGTerminator::getStmt(), clang::ConstructionContextItem::getStmt(), clang::ento::nonloc::LazyCompoundVal::getStore(), clang::APValue::getStructBase(), clang::APValue::getStructField(), clang::APValue::getStructNumBases(), clang::APValue::getStructNumFields(), clang::DeductionFailureInfo::getTemplateArgumentList(), clang::DeductionFailureInfo::getTemplateParameter(), 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::interp::InitMap::InitMap(), clang::serialization::MultiOnDiskHashTableGenerator< ReaderInfo, WriterInfo >::insert(), 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::tooling::FixedCompilationDatabase::loadFromBuffer(), LoadPointer(), LoadSourceLocation(), clang::ComparisonCategories::lookupInfo(), clang::ComparisonCategories::lookupInfoForType(), clang::ento::PathSensitiveBugReport::markInvalid(), clang::NestedNameSpecifierLoc::NestedNameSpecifierLoc(), clang::OffsetOfNode::OffsetOfNode(), clang::CodeGen::CodeGenFunction::OpaqueValueMapping::OpaqueValueMapping(), clang::CodeGen::ConstantInitFuture::operator bool(), clang::serialization::ReadMethodPoolVisitor::operator()(), clang::ConstructionContextItem::operator<(), clang::StoredDeclsList::operator=(), clang::Value::operator=(), clang::ConstructionContextItem::operator==(), parseDeclareSimdClauses(), clang::Parser::parseMapperModifier(), parseMapType(), clang::Parser::parseMapTypeModifiers(), clang::Parser::ParseOpenMPVarList(), parseStepSize(), clang::PCHGenerator::PCHGenerator(), clang::CodeGen::CodeGenFunction::OpaqueValueMapping::pop(), clang::StoredDeclsList::prependDeclNoReplace(), clang::ConstructionContextItem::Profile(), clang::PointerAuthQualifier::Profile(), clang::BlockInvocationContext::Profile(), clang::ASTReader::ReadAST(), ArchiveFileHandler::ReadBundle(), clang::serialization::reader::ASTDeclContextNameLookupTrait::ReadKey(), clang::ASTRecordReader::readOMPChildren(), clang::TreeTransform< Derived >::RebuildOMPDependClause(), clang::TreeTransform< Derived >::RebuildOMPIteratorExpr(), clang::TreeTransform< Derived >::RebuildOMPUsesAllocatorsClause(), 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::TagDecl::startDefinition(), clang::StoredDeclsList::StoredDeclsList(), clang::TypeCoupledDeclRefInfo::TypeCoupledDeclRefInfo(), clang::ento::CheckerRegistry::validateCheckerOptions(), clang::Value::Value(), clang::ASTDeclWriter::VisitObjCInterfaceDecl(), clang::ASTDeclReader::VisitTemplateTemplateParmDecl(), clang::ASTRecordWriter::writeOMPChildren(), 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.

◆ 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.

◆ 

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