Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Florian Fischer
emper
Commits
d2d289c9
Commit
d2d289c9
authored
Apr 04, 2022
by
Florian Schmaus
Browse files
[run-clang-tidy] Use -v to check if RUN_CLANG_TIDY is set
parent
b9cb98fe
Changes
1
Hide whitespace changes
Inline
Side-by-side
tools/run-clang-tidy
View file @
d2d289c9
...
...
@@ -24,8 +24,6 @@ RUN_CLANG_TIDY_CANDIDATES=(
/usr/share/clang/run-clang-tidy.py
)
RUN_CLANG_TIDY
=
""
for
candidate
in
${
RUN_CLANG_TIDY_CANDIDATES
[@]
}
;
do
if
!
command
-v
"
${
candidate
}
"
;
then
continue
;
...
...
@@ -35,7 +33,7 @@ for candidate in ${RUN_CLANG_TIDY_CANDIDATES[@]}; do
break
;
done
if
[[
-z
"
${
RUN_CLANG_TIDY
}
"
]]
;
then
if
[[
!
-v
RUN_CLANG_TIDY
]]
;
then
echo
"No run-clang-tidy executable found"
exit
1
fi
...
...
Write
Preview
Supports
Markdown
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