Skip to content

Commit

Permalink
Add end locations and synthetic flag to node locations in HTML
Browse files Browse the repository at this point in the history
  • Loading branch information
sim642 committed Feb 8, 2024
1 parent 4957a9f commit 887ebe0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion g2html
Submodule g2html updated 1 files
+1 −1 resources/node.xsl
2 changes: 1 addition & 1 deletion src/framework/analysisResult.ml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ struct
(* Not using Node.location here to have updated locations in incremental analysis.
See: https://github.com/goblint/analyzer/issues/290#issuecomment-881258091. *)
let loc = UpdateCil.getLoc n in
BatPrintf.fprintf f "<call id=\"%s\" file=\"%s\" line=\"%d\" order=\"%d\" column=\"%d\">\n" (Node.show_id n) loc.file loc.line loc.byte loc.column;
BatPrintf.fprintf f "<call id=\"%s\" file=\"%s\" line=\"%d\" order=\"%d\" column=\"%d\" endLine=\"%d\" endColumn=\"%d\" synthetic=\"%B\">\n" (Node.show_id n) loc.file loc.line loc.byte loc.column loc.endLine loc.endColumn loc.synthetic;
BatPrintf.fprintf f "%a</call>\n" Range.printXml v
in
iter print_one xs
Expand Down

0 comments on commit 887ebe0

Please sign in to comment.