mirror of
https://github.com/github/codeql.git
synced 2026-05-22 07:07:09 +02:00
KE2: Add the compilation properly
This commit is contained in:
@@ -15,6 +15,9 @@ INVOCATION_TRAP=`mktemp -p "$TRAP_DIR" invocation.XXXXXXXXXX.trap`
|
||||
|
||||
echo "// Invocation of Kotlin Extractor 2" >> "$INVOCATION_TRAP"
|
||||
echo "#compilation = *" >> "$INVOCATION_TRAP"
|
||||
# TODO: This should be properly escaped:
|
||||
echo "compilations(#compilation, 2, \"`pwd`\",\"$INVOCATION_TRAP\")" >> "$INVOCATION_TRAP"
|
||||
# TODO: compilation_args
|
||||
|
||||
if [[ -n "$CODEQL_JAVA_HOME" ]]; then
|
||||
JAVA="$CODEQL_JAVA_HOME/bin/java"
|
||||
|
||||
@@ -81,7 +81,7 @@ OLD: KE1
|
||||
val diagnosticCounter = DiagnosticCounter()
|
||||
val loggerBase = LoggerBase(diagnosticCounter)
|
||||
val dtw = DiagnosticTrapWriter(loggerBase, invocationLabelManager, invocationTrapFileBW)
|
||||
// The diganostic TRAP file has already defined #compilation = *
|
||||
// The diagnostic TRAP file has already defined #compilation = *
|
||||
val compilation: Label<DbCompilation> = StringLabel("compilation")
|
||||
dtw.writeCompilation_started(compilation)
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user