|
clang 22.0.0git
|
Classes | |
| class | BuildNamespace |
| Represents a single namespace in the build process. More... | |
| class | EntityName |
| Uniquely identifies an entity in a program. More... | |
| class | NestedBuildNamespace |
| Represents a hierarchical sequence of build namespaces. More... | |
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) |
|
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().
| 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.