|
clang 22.0.0git
|
Uniquely identifies an entity in a program. More...
#include "clang/Analysis/Scalable/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 | LinkUnitResolution |
| class | SerializationFormat |
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 27 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<(), and operator==().
| 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 |
Definition at line 50 of file EntityName.h.
References LinkUnitResolution.
Referenced by LinkUnitResolution.
|
friend |
Definition at line 51 of file EntityName.h.
References SerializationFormat.
Referenced by SerializationFormat.