Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
frama-c
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
pub
frama-c
Commits
e7387d7b
Commit
e7387d7b
authored
5 years ago
by
Virgile Prevosto
Browse files
Options
Downloads
Patches
Plain Diff
[sarif] more accurate command line in presence of -load
parent
27a21c2f
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/plugins/markdown-report/sarif_gen.ml
+13
-2
13 additions, 2 deletions
src/plugins/markdown-report/sarif_gen.ml
with
13 additions
and
2 deletions
src/plugins/markdown-report/sarif_gen.ml
+
13
−
2
View file @
e7387d7b
...
...
@@ -22,9 +22,20 @@ let get_remark remarks label =
|
None
->
[]
|
Some
l
->
l
let
command_line
()
=
Array
.
to_list
Sys
.
argv
module
Analysis_cmdline
=
State_builder
.
Ref
(
Datatype
.
List
(
Datatype
.
String
))
(
struct
let
name
=
"Sarif_gen.Analysis_cmdline"
let
dependencies
=
[]
let
default
=
command_line
end
)
let
gen_invocation
()
=
let
commandLine
=
Array
.
fold_right
(
fun
s
acc
->
s
^
" "
^
acc
)
Sys
.
argv
""
in
let
arguments
=
List
.
tl
(
Array
.
to_list
Sys
.
argv
)
in
let
cl
=
Analysis_cmdline
.
get
()
in
let
commandLine
=
String
.
concat
" "
cl
in
let
arguments
=
List
.
tl
cl
in
Invocation
.
create
~
commandLine
~
arguments
()
let
gen_remark
alarm
=
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment