mirror of
https://github.com/github/codeql.git
synced 2025-12-16 08:43:11 +01:00
Merge pull request #20933 from michaelnebel/csharp/runtraceraftercompilation
C#: Invoke the extractor after the compiler to ensure that source generators have been executed.
This commit is contained in:
@@ -0,0 +1,4 @@
|
||||
---
|
||||
category: fix
|
||||
---
|
||||
* Fixed an issue where compiler-generated files were not being extracted. The extractor now runs after compilation completes to ensure all generated files are properly analyzed.
|
||||
@@ -183,7 +183,7 @@ function RegisterExtractorPack(id)
|
||||
MsBuildMatcher,
|
||||
CreatePatternMatcher({ '^csc.*%.exe$' }, MatchCompilerName, extractor, {
|
||||
prepend = { '--compiler', '"${compiler}"' },
|
||||
order = ORDER_BEFORE
|
||||
order = ORDER_AFTER
|
||||
}),
|
||||
CreatePatternMatcher({ '^fakes.*%.exe$', 'moles.*%.exe' },
|
||||
MatchCompilerName, nil, { trace = false }),
|
||||
@@ -224,7 +224,7 @@ function RegisterExtractorPack(id)
|
||||
CreatePatternMatcher({ '^mcs%.exe$', '^csc%.exe$', '^csc$' }, MatchCompilerName,
|
||||
extractor, {
|
||||
prepend = { '--compiler', '${compiler}' },
|
||||
order = ORDER_BEFORE
|
||||
order = ORDER_AFTER
|
||||
}),
|
||||
MsBuildMatcher,
|
||||
function(compilerName, compilerPath, compilerArguments, _languageId)
|
||||
|
||||
Reference in New Issue
Block a user