C#: Adjust trap location, database ID and archiving of generated sources

This commit is contained in:
Tamas Vajk
2024-06-17 13:59:35 +02:00
parent dcd84f47a4
commit fb0520c74a
8 changed files with 124 additions and 42 deletions

View File

@@ -185,7 +185,8 @@ namespace Semmle.Extraction.CSharp
{
var stopwatch = new Stopwatch();
stopwatch.Start();
var sourcePath = tree.FilePath;
var sourcePath = BinaryLogExtractionContext.GetAdjustedPath(ExtractionContext, tree.FilePath) ?? tree.FilePath;
var transformedSourcePath = PathTransformer.Transform(sourcePath);
var trapPath = transformedSourcePath.GetTrapPath(Logger, options.TrapCompression);