|
clang 24.0.0git
|
Represents a hierarchical sequence of build namespaces. More...
#include "clang/ScalableStaticAnalysis/Core/Model/BuildNamespace.h"
Public Member Functions | |
| NestedBuildNamespace ()=default | |
| NestedBuildNamespace (const std::vector< BuildNamespace > &Namespaces) | |
| NestedBuildNamespace (const BuildNamespace &N) | |
| NestedBuildNamespace | makeQualified (NestedBuildNamespace Namespace) const |
| Creates a new NestedBuildNamespace by appending additional namespace. | |
| bool | empty () const |
| bool | operator== (const NestedBuildNamespace &Other) const |
| bool | operator!= (const NestedBuildNamespace &Other) const |
| bool | operator< (const NestedBuildNamespace &Other) const |
Static Public Member Functions | |
| static NestedBuildNamespace | makeCompilationUnit (llvm::StringRef CompilationId) |
| Creates a NestedBuildNamespace representing a compilation unit. | |
| static NestedBuildNamespace | makeLinkUnit (llvm::StringRef LinkUnitId) |
| Creates a NestedBuildNamespace representing a link unit. | |
Friends | |
| class | SerializationFormat |
| class | TestFixture |
| llvm::raw_ostream & | operator<< (llvm::raw_ostream &OS, const NestedBuildNamespace &NBN) |
Represents a hierarchical sequence of build namespaces.
A NestedBuildNamespace captures namespace qualification for program entities by maintaining an ordered sequence of BuildNamespace steps. This models how entities are organized through multiple steps of the build process, such as first being part of a compilation unit, then incorporated into a link unit.
For example, an entity might be qualified by a compilation unit namespace followed by a shared library namespace.
Definition at line 87 of file BuildNamespace.h.
|
default |
Referenced by makeCompilationUnit(), makeLinkUnit(), makeQualified(), operator!=(), operator<(), operator<<, operator==(), and TestFixture.
|
inlineexplicit |
Definition at line 93 of file BuildNamespace.h.
|
inlineexplicit |
Definition at line 96 of file BuildNamespace.h.
| bool clang::ssaf::NestedBuildNamespace::empty | ( | ) | const |
Definition at line 55 of file BuildNamespace.cpp.
|
static |
Creates a NestedBuildNamespace representing a compilation unit.
| CompilationId | The unique identifier for the compilation unit. |
Definition at line 40 of file BuildNamespace.cpp.
References clang::ssaf::BuildNamespace::makeCompilationUnit(), NestedBuildNamespace(), and clang::Result.
Referenced by clang::ssaf::CppBoundedBuffers::HandleTranslationUnit().
|
static |
Creates a NestedBuildNamespace representing a link unit.
| LinkUnitId | The unique identifier for the link unit. |
Definition at line 48 of file BuildNamespace.cpp.
References clang::ssaf::LinkUnit, NestedBuildNamespace(), and clang::Result.
Referenced by clang::ssaf::CppBoundedBuffers::HandleTranslationUnit().
|
inline |
Creates a new NestedBuildNamespace by appending additional namespace.
| Namespace | The namespace to append. |
Definition at line 118 of file BuildNamespace.h.
References clang::Copy, and NestedBuildNamespace().
Referenced by clang::ssaf::resolveNamespace().
| bool clang::ssaf::NestedBuildNamespace::operator!= | ( | const NestedBuildNamespace & | Other | ) | const |
Definition at line 61 of file BuildNamespace.cpp.
References NestedBuildNamespace(), and clang::Other.
| bool clang::ssaf::NestedBuildNamespace::operator< | ( | const NestedBuildNamespace & | Other | ) | const |
Definition at line 65 of file BuildNamespace.cpp.
References NestedBuildNamespace(), and clang::Other.
| bool clang::ssaf::NestedBuildNamespace::operator== | ( | const NestedBuildNamespace & | Other | ) | const |
Definition at line 57 of file BuildNamespace.cpp.
References NestedBuildNamespace(), and clang::Other.
|
friend |
Definition at line 77 of file BuildNamespace.cpp.
References NestedBuildNamespace().
|
friend |
Definition at line 132 of file BuildNamespace.h.
References SerializationFormat.
Referenced by SerializationFormat.
|
friend |
Definition at line 133 of file BuildNamespace.h.
References NestedBuildNamespace(), and TestFixture.
Referenced by TestFixture.