|
clang 23.0.0git
|
Uniquely identifies an entity in a program. More...
#include "clang/ScalableStaticAnalysisFramework/Core/Model/EntityName.h"
Public Member Functions | |
| EntityName (llvm::StringRef USR, llvm::StringRef Suffix, NestedBuildNamespace Namespace) | |
| Client code should not use this constructor directly. | |
| bool | operator== (const EntityName &Other) const |
| bool | operator!= (const EntityName &Other) const |
| bool | operator< (const EntityName &Other) const |
| EntityName | makeQualified (NestedBuildNamespace Namespace) const |
| Creates a new EntityName with additional build namespace qualification. | |
Friends | |
| class | EntityLinker |
| class | SerializationFormat |
| class | TestFixture |
| llvm::raw_ostream & | operator<< (llvm::raw_ostream &OS, const EntityName &EN) |
Uniquely identifies an entity in a program.
EntityName provides a globally unique identifier for program entities that remains stable across compilation boundaries. This enables whole-program analysis to track and relate entities across separately compiled translation units.
Client code should not make assumptions about the implementation details, such as USRs.
Definition at line 28 of file EntityName.h.
| clang::ssaf::EntityName::EntityName | ( | llvm::StringRef | USR, |
| llvm::StringRef | Suffix, | ||
| NestedBuildNamespace | Namespace ) |
Client code should not use this constructor directly.
Use getEntityName and other functions in ASTEntityMapping.h to get entity names.
Definition at line 13 of file EntityName.cpp.
Referenced by makeQualified(), operator!=(), operator<(), operator<<, operator==(), and TestFixture.
| EntityName clang::ssaf::EntityName::makeQualified | ( | NestedBuildNamespace | Namespace | ) | const |
Creates a new EntityName with additional build namespace qualification.
| Namespace | The namespace steps to append to this entity's namespace. |
Definition at line 29 of file EntityName.cpp.
References clang::Copy, and EntityName().
| bool clang::ssaf::EntityName::operator!= | ( | const EntityName & | Other | ) | const |
Definition at line 21 of file EntityName.cpp.
References EntityName(), and clang::Other.
| bool clang::ssaf::EntityName::operator< | ( | const EntityName & | Other | ) | const |
Definition at line 25 of file EntityName.cpp.
References EntityName(), and clang::Other.
| bool clang::ssaf::EntityName::operator== | ( | const EntityName & | Other | ) | const |
Definition at line 17 of file EntityName.cpp.
References EntityName(), and clang::Other.
|
friend |
|
friend |
Definition at line 36 of file EntityName.cpp.
References EntityName().
|
friend |
Definition at line 30 of file EntityName.h.
References SerializationFormat.
Referenced by SerializationFormat.
|
friend |
Definition at line 31 of file EntityName.h.
References EntityName(), and TestFixture.
Referenced by TestFixture.