diff options
author | Florian Schmaus <flo@geekplace.eu> | 2020-11-06 23:20:54 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-07 00:20:54 +0200 |
commit | 00d5ef3191e5589ab16107107d78865d28a5fbf6 (patch) | |
tree | 5accd9eaa7290fa10701534e8cc02767f231a4fc /docs/markdown/snippets | |
parent | cc033e5476b40a97662f15af1736262371738e50 (diff) | |
download | meson-00d5ef3191e5589ab16107107d78865d28a5fbf6.zip meson-00d5ef3191e5589ab16107107d78865d28a5fbf6.tar.gz meson-00d5ef3191e5589ab16107107d78865d28a5fbf6.tar.bz2 |
Fix clang-tidy return value reporting (#7949)
* Fix clang-tidy return value reporting
In case clang-tidy is invoked manually, i.e. if run-clang-tidy(.py) is
not found, Meson would not report the return value. This is caused by
ignoring the return value of manual_clangformat() in clangformat()
within mesonbuild/scripts/clangtidy.py.
Even though only more recent-versions of clang-tidy actually report an
non-zero exit code if errors are found, there is no reason Meson
shouldn't simply report any error codes it received from clang-tidy.
Fixes #7948.
* Rename methods in clangtidy.py from clangformat to clangtidy
For some unknown reason, the method names in clangtidy.py are clangformat()
and manual_clangformat(). This is confusing, as clang-format is not
invoked by them, clang-tidy is. Hence rename those from
{manual_}clangformat() → {manual_}clangtidy()
Diffstat (limited to 'docs/markdown/snippets')
0 files changed, 0 insertions, 0 deletions