C#: Write overlay metadata at end of extraction.

This commit is contained in:
Michael Nebel
2025-10-21 14:24:16 +02:00
parent 61f6512c74
commit 76ac2dff26
2 changed files with 24 additions and 0 deletions

View File

@@ -67,5 +67,14 @@ namespace Semmle.Util
{
return Environment.GetEnvironmentVariable("CODEQL_EXTRACTOR_CSHARP_OVERLAY_CHANGES");
}
/// <summary>
/// If the environment variable is set, the extractor is being called to extract a base database.
/// Its value will be a path, and the extractor must create either a file or directory at that location.
/// </summary>
public static string? GetBaseMetaDataOutPath()
{
return Environment.GetEnvironmentVariable("CODEQL_EXTRACTOR_CSHARP_OVERLAY_BASE_METADATA_OUT");
}
}
}