|
clang 24.0.0git
|
Represents a single namespace in the build process. More...
#include "clang/ScalableStaticAnalysis/Core/Model/BuildNamespace.h"
Public Member Functions | |
| BuildNamespace (BuildNamespaceKind Kind, llvm::StringRef Name) | |
| BuildNamespace | withKind (BuildNamespaceKind Kind) const |
Returns a copy of this namespace with its kind replaced by Kind, preserving the name. | |
| bool | operator== (const BuildNamespace &Other) const |
| bool | operator!= (const BuildNamespace &Other) const |
| bool | operator< (const BuildNamespace &Other) const |
Static Public Member Functions | |
| static BuildNamespace | makeCompilationUnit (llvm::StringRef CompilationId) |
| Creates a BuildNamespace representing a compilation unit. | |
Friends | |
| class | EntityLinker |
| class | SerializationFormat |
| class | TestFixture |
| llvm::raw_ostream & | operator<< (llvm::raw_ostream &OS, const BuildNamespace &BN) |
Represents a single namespace in the build process.
A BuildNamespace groups program entities, such as those belonging to a compilation unit or link unit (e.g., a shared library). Each namespace has a kind (CompilationUnit or LinkUnit) and a unique identifier name within that kind.
BuildNamespaces can be composed into NestedBuildNamespace to represent hierarchical namespace structures that model how software is constructed from its components.
Definition at line 47 of file BuildNamespace.h.
|
inline |
Definition at line 54 of file BuildNamespace.h.
Referenced by makeCompilationUnit(), operator!=(), operator<(), operator<<, operator==(), TestFixture, and withKind().
|
static |
Creates a BuildNamespace representing a compilation unit.
| CompilationId | The unique identifier for the compilation unit. |
Definition at line 18 of file BuildNamespace.cpp.
References BuildNamespace(), and clang::ssaf::CompilationUnit.
Referenced by clang::ssaf::NestedBuildNamespace::makeCompilationUnit().
| bool clang::ssaf::BuildNamespace::operator!= | ( | const BuildNamespace & | Other | ) | const |
Definition at line 31 of file BuildNamespace.cpp.
References BuildNamespace(), and clang::Other.
| bool clang::ssaf::BuildNamespace::operator< | ( | const BuildNamespace & | Other | ) | const |
Definition at line 35 of file BuildNamespace.cpp.
References BuildNamespace(), and clang::Other.
| bool clang::ssaf::BuildNamespace::operator== | ( | const BuildNamespace & | Other | ) | const |
Definition at line 27 of file BuildNamespace.cpp.
References BuildNamespace(), and clang::Other.
| BuildNamespace clang::ssaf::BuildNamespace::withKind | ( | BuildNamespaceKind | Kind | ) | const |
Returns a copy of this namespace with its kind replaced by Kind, preserving the name.
Definition at line 23 of file BuildNamespace.cpp.
References BuildNamespace().
|
friend |
Definition at line 71 of file BuildNamespace.h.
References EntityLinker.
Referenced by EntityLinker.
|
friend |
Definition at line 65 of file BuildNamespace.cpp.
References BuildNamespace().
|
friend |
Definition at line 72 of file BuildNamespace.h.
References SerializationFormat.
Referenced by SerializationFormat.
|
friend |
Definition at line 73 of file BuildNamespace.h.
References BuildNamespace(), and TestFixture.
Referenced by TestFixture.