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
9d5897c8
Commit
9d5897c8
authored
2 years ago
by
Allan Blanchard
Browse files
Options
Downloads
Patches
Plain Diff
[lint] catch unknown extensions
parent
c0c02e74
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
tools/lint/lint.ml
+9
-5
9 additions, 5 deletions
tools/lint/lint.ml
with
9 additions
and
5 deletions
tools/lint/lint.ml
+
9
−
5
View file @
9d5897c8
...
@@ -288,11 +288,15 @@ let check ~verbose ~update file params =
...
@@ -288,11 +288,15 @@ let check ~verbose ~update file params =
close_out
out_chan
close_out
out_chan
end
;
end
;
(* Indentation *)
(* Indentation *)
if
params
.
indent
then
try
if
not
@@
check_indent
~
update
file
then
begin
if
params
.
indent
then
Printf
.
eprintf
"Bad indentation for %s
\n
"
file
;
if
not
@@
check_indent
~
update
file
then
begin
res
:=
false
Printf
.
eprintf
"Bad indentation for %s
\n
"
file
;
end
;
res
:=
false
end
;
with
Bad_ext
->
Printf
.
eprintf
"Don't know how to (check) indent %s
\n
"
file
;
res
:=
false
end
end
(**************************************************************************)
(**************************************************************************)
...
...
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