From fa78a7101c3f19aa0ac148f7184aafb1d32bb701 Mon Sep 17 00:00:00 2001 From: Aaron Gyes Date: Thu, 23 Jun 2016 17:24:19 -0700 Subject: Make IWYU output in lint.cpp less messy And re-run IWYU, adjust #includes. --- build_tools/lint.fish | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'build_tools') 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 -- cgit v1.2.3