Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
varnish-cache
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
varnishcache
varnish-cache
Commits
80071c56
Commit
80071c56
authored
Jul 07, 2021
by
Poul-Henning Kamp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Pre-process <pcre2.h> for FlexeLint
parent
6014912e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
10 deletions
+19
-10
flint_skel.sh
tools/flint_skel.sh
+19
-10
No files found.
tools/flint_skel.sh
View file @
80071c56
...
...
@@ -6,12 +6,27 @@ if [ "x$1" = "x-ok" -a -f _.fl ] ; then
exit
0
fi
d
=
$(
dirname
$0
)
l
=
1
if
[
$d
=
../../tools
]
;
then
l
=
2
IARG
=
"-I. -I../../include -I../.."
else
l
=
1
IARG
=
"-I. -I../include -I.."
fi
IARG
=
"
${
IARG
}
-I/usr/local/include"
# Flexelint do not grok the macro-stacking in pcre2.h
# Solve it by running it through CPP first.
echo
'
#include "config.h"
#include <pcre2.h>
'
| cc
$IARG
-E
- |
sed
'/^# [0-9]/d'
>
pcre2.h
flexelint
\
-D__FLEXELINT__
\
$(if
[
$l
-eq
2
]
;
then
echo
../../flint.lnt
;
fi)
\
...
...
@@ -19,18 +34,12 @@ flexelint \
flint.lnt
\
-zero
\
-I
.
\
$(if
[
$l
-eq
2
]
;
then
echo
-I
../../include
echo
-I
../..
else
echo
-I
../include
echo
-I
..
fi
)
\
-I
/usr/local/include
\
${
IARG
}
\
$FLOPS
\
2>&1 |
tee
_.fl
rm
-f
pcre2.h
if
[
-f
_.fl.old
]
;
then
diff
-u
_.fl.old _.fl
fi
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment