diff options
| author | jsmall-nvidia <jsmall@nvidia.com> | 2023-04-04 17:20:05 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-04-04 17:20:05 -0400 |
| commit | 7bb2de1bc40e535fae93940113db97b5ea44a6f2 (patch) | |
| tree | a70dcd1c4f97387ba7df482fefcd576c04543606 /source/compiler-core/slang-artifact-representation.h | |
| parent | 34a2fd593dd5a5d7b597b9d2fe20e39cc24b8e6c (diff) | |
Simplification around ArtifactRepresentation and unique identity (#2771)
* #include an absolute path didn't work - because paths were taken to always be relative.
* WIP in handling artifacts/SourceFiles.
* Add getUniqueIdentity to IPathArtifactRepresentation
* Simplification because around using the representation to provide the uniqueIdentity.
Diffstat (limited to 'source/compiler-core/slang-artifact-representation.h')
| -rw-r--r-- | source/compiler-core/slang-artifact-representation.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source/compiler-core/slang-artifact-representation.h b/source/compiler-core/slang-artifact-representation.h index a345d762b..3e7659058 100644 --- a/source/compiler-core/slang-artifact-representation.h +++ b/source/compiler-core/slang-artifact-representation.h @@ -16,6 +16,9 @@ class IPathArtifactRepresentation : public IArtifactRepresentation virtual SLANG_NO_THROW const char* SLANG_MCALL getPath() = 0; /// Get type virtual SLANG_NO_THROW SlangPathType SLANG_MCALL getPathType() = 0; + /// Returns the unique identity. If a unique identity is not supported + /// or available will return nullptr. + virtual SLANG_NO_THROW const char* SLANG_MCALL getUniqueIdentity() = 0; }; /* Represents a path to a file held on an ISlangFileSystem. */ |
