|
clang 23.0.0git
|
Classes | |
| class | BuildNamespace |
| Represents a single namespace in the build process. More... | |
| class | EntityId |
| Lightweight opaque handle representing an entity in an EntityIdTable. More... | |
| class | EntityIdTable |
| Manages entity name interning and provides efficient EntityId handles. More... | |
| class | EntityName |
| Uniquely identifies an entity in a program. More... | |
| class | EntitySummary |
| Base class for analysis-specific summary data. More... | |
| class | NestedBuildNamespace |
| Represents a hierarchical sequence of build namespaces. More... | |
| class | SerializationFormat |
| Abstract base class for serialization formats. More... | |
| class | SummaryName |
| Uniquely identifies an analysis summary. More... | |
| class | TUSummary |
| Data extracted for a given translation unit and for a given set of analyses. More... | |
| class | TUSummaryBuilder |
| class | TUSummaryExtractor |
Typedefs | |
| using | TUSummaryExtractorRegistry |
Enumerations | |
| enum class | BuildNamespaceKind : unsigned short { CompilationUnit , LinkUnit } |
Functions | |
| std::optional< EntityName > | getEntityName (const Decl *D) |
| Maps a declaration to an EntityName. | |
| std::optional< EntityName > | getEntityNameForReturn (const FunctionDecl *FD) |
| Maps return entity of a function to an EntityName. | |
| llvm::StringRef | toString (BuildNamespaceKind BNK) |
| std::optional< BuildNamespaceKind > | parseBuildNamespaceKind (llvm::StringRef Str) |
| bool | isTUSummaryExtractorRegistered (llvm::StringRef SummaryName) |
| Check if a TUSummaryExtractor was registered with a given name. | |
| std::unique_ptr< ASTConsumer > | makeTUSummaryExtractor (llvm::StringRef SummaryName, TUSummaryBuilder &Builder) |
| Try to instantiate a TUSummaryExtractor with a given name. | |
Definition at line 38 of file ExtractorRegistry.h.
|
strong |
| Enumerator | |
|---|---|
| CompilationUnit | |
| LinkUnit | |
Definition at line 29 of file BuildNamespace.h.
| std::optional< EntityName > clang::ssaf::getEntityName | ( | const Decl * | D | ) |
Maps a declaration to an EntityName.
Supported declaration types for entity mapping:
Implicit declarations and compiler builtins are not mapped.
| D | The declaration to map. Must not be null. |
Definition at line 21 of file ASTEntityMapping.cpp.
References clang::cast(), clang::index::generateUSRForDecl(), clang::isa(), and clang::Decl::isImplicit().
| std::optional< EntityName > clang::ssaf::getEntityNameForReturn | ( | const FunctionDecl * | FD | ) |
Maps return entity of a function to an EntityName.
The returned name uniquely identifies the return value of function
| FD. | |
| FD | The function declaration. Must not be null. |
Definition at line 62 of file ASTEntityMapping.cpp.
References clang::index::generateUSRForDecl(), clang::FunctionDecl::getBuiltinID(), and clang::Decl::isImplicit().
| bool clang::ssaf::isTUSummaryExtractorRegistered | ( | llvm::StringRef | SummaryName | ) |
Check if a TUSummaryExtractor was registered with a given name.
Definition at line 20 of file ExtractorRegistry.cpp.
| std::unique_ptr< ASTConsumer > clang::ssaf::makeTUSummaryExtractor | ( | llvm::StringRef | SummaryName, |
| TUSummaryBuilder & | Builder ) |
Try to instantiate a TUSummaryExtractor with a given name.
This might return null if the construction of the desired TUSummaryExtractor failed. It's a fatal error if there is no extractor registered with the name.
Definition at line 28 of file ExtractorRegistry.cpp.
| std::optional< BuildNamespaceKind > clang::ssaf::parseBuildNamespaceKind | ( | llvm::StringRef | Str | ) |
Definition at line 25 of file BuildNamespace.cpp.
References CompilationUnit, and LinkUnit.
| llvm::StringRef clang::ssaf::toString | ( | BuildNamespaceKind | BNK | ) |
Definition at line 15 of file BuildNamespace.cpp.
References CompilationUnit, and LinkUnit.