File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11#include " swift/extractor/invocation/CodeQLDiagnosticsConsumer.h"
22#include " swift/extractor/trap/TrapDomain.h"
33#include " swift/extractor/trap/generated/TrapEntries.h"
4+ #include " swift/extractor/trap/generated/TrapClasses.h"
45
56#include < swift/AST/DiagnosticEngine.h>
67#include < swift/Basic/SourceManager.h>
@@ -48,13 +49,13 @@ static void attachLocation(TrapDomain& trap,
4849 return ;
4950 }
5051 auto filepath = getFilePath (sourceManager.getDisplayNameForLoc (loc));
51- FilesTrap file;
52- file.id = trap.createLabel <FileTag >();
52+ DbFile file ({}) ;
53+ file.id = trap.createLabel <DbFileTag >();
5354 file.name = filepath;
5455 trap.emit (file);
5556
56- LocationsTrap location;
57- location.id = trap.createLabel <LocationTag >();
57+ DbLocation location ({}) ;
58+ location.id = trap.createLabel <DbLocationTag >();
5859 location.file = file.id ;
5960 std::tie (location.start_line , location.start_column ) =
6061 sourceManager.getLineAndColumnInBuffer (loc);
Original file line number Diff line number Diff line change 1- | file://:0:0:0:0 | Diagnostics | getText: | Hello, warning | getKind: | 2 |
1+ | diags.swift:1:10:1:10 | Diagnostics | getText: | Hello, warning | getKind: | 2 |
You can’t perform that action at this time.
0 commit comments