From 7bb2de1bc40e535fae93940113db97b5ea44a6f2 Mon Sep 17 00:00:00 2001 From: jsmall-nvidia Date: Tue, 4 Apr 2023 17:20:05 -0400 Subject: 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. --- source/compiler-core/slang-artifact-representation.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'source/compiler-core/slang-artifact-representation.h') 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. */ -- cgit v1.2.3