diff options
author | Aaron Gyes <me@aaron.gy> | 2016-06-23 17:24:19 -0700 |
---|---|---|
committer | Aaron Gyes <me@aaron.gy> | 2016-06-23 17:26:08 -0700 |
commit | fa78a7101c3f19aa0ac148f7184aafb1d32bb701 (patch) | |
tree | 3a7af19985c9908418cb7c91694f077b50ed41d4 /build_tools | |
parent | 5d680f6dbc86e69990b3b2e8ab8027f785ef4720 (diff) |
Make IWYU output in lint.cpp less messy
And re-run IWYU, adjust #includes.
Diffstat (limited to 'build_tools')
-rwxr-xr-x | build_tools/lint.fish | 12 |
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 |