aboutsummaryrefslogtreecommitdiffhomepage
path: root/build_tools/lint.fish
diff options
context:
space:
mode:
Diffstat (limited to 'build_tools/lint.fish')
-rwxr-xr-xbuild_tools/lint.fish12
1 files changed, 6 insertions, 6 deletions
diff --git a/build_tools/lint.fish b/build_tools/lint.fish
index f3350aee..5d9e4443 100755
--- a/build_tools/lint.fish
+++ b/build_tools/lint.fish
@@ -65,17 +65,17 @@ end
# We now have a list of files to check so run the linters.
if set -q c_files[1]
if type -q iwyu
+ echo
+ echo ========================================
+ echo Running IWYU
+ echo ========================================
# The stderr to stdout redirection is because cppcheck, incorrectly IMHO, writes its
# diagnostic messages to stderr. Anyone running this who wants to capture its output will
# expect those messages to be written to stdout.
for c_file in $c_files
- echo
- echo ========================================
- echo Running IWYU on $c_file
- echo ========================================
switch $kernel_name
case Darwin
- include-what-you-use -Xiwyu --no_default_mappings -Xiwyu --mapping_file=build_tools/iwyu.osx.imp $cppcheck_args $c_file 2>&1
+ include-what-you-use -Xiwyu --no_default_mappings -Xiwyu --mapping_file=build_tools/iwyu.osx.imp $cppcheck_args --std=c++11 $c_file 2>&1
case Linux
include-what-you-use -Xiwyu --mapping_file=build_tools/iwyu.linux.imp $cppcheck_args $c_file 2>&1
case '*' # hope for the best
@@ -92,7 +92,7 @@ if set -q c_files[1]
# The stderr to stdout redirection is because cppcheck, incorrectly IMHO, writes its
# diagnostic messages to stderr. Anyone running this who wants to capture its output will
# expect those messages to be written to stdout.
- cppcheck -q --verbose --std=posix --std=c11 --language=c++ --template "[{file}:{line}]: {severity} ({id}): {message}" --suppress=missingIncludeSystem --inline-suppr --enable=$cppchecks --rule-file=.cppcheck.rule $cppcheck_args $c_files 2>&1
+ cppcheck -q --verbose --std=posix --language=c++ --template "[{file}:{line}]: {severity} ({id}): {message}" --suppress=missingIncludeSystem --inline-suppr --enable=$cppchecks --rule-file=.cppcheck.rule $cppcheck_args $c_files 2>&1
end
if type -q oclint