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
a3ff56ee
Commit
a3ff56ee
authored
4 years ago
by
Andre Maroneze
Browse files
Options
Downloads
Patches
Plain Diff
[Kernel] improve error message for invalid JCDB file
parent
b45463ab
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/kernel_services/ast_queries/json_compilation_database.ml
+3
-0
3 additions, 0 deletions
src/kernel_services/ast_queries/json_compilation_database.ml
with
3 additions
and
0 deletions
src/kernel_services/ast_queries/json_compilation_database.ml
+
3
−
0
View file @
a3ff56ee
...
...
@@ -242,6 +242,9 @@ let parse_entry jcdb_dir r =
let
compute_flags_from_file
()
=
let
database
=
Kernel
.
JsonCompilationDatabase
.
get
()
in
let
jcdb_dir
,
jcdb_path
=
if
not
(
Sys
.
file_exists
database
)
then
Kernel
.
abort
"invalid path for option %s: %s"
Kernel
.
JsonCompilationDatabase
.
option_name
database
;
if
Sys
.
is_directory
database
then
database
,
Filename
.
concat
database
"compile_commands.json"
else
Filename
.
dirname
database
,
database
...
...
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