From df10b53c0caecd43a02b7f24515a9ff9edea7056 Mon Sep 17 00:00:00 2001 From: Kurtis Rader Date: Tue, 19 Apr 2016 19:49:15 -0700 Subject: restyle builtin modules to match project style Now that the IWYU cleanup has been merged compile all, not just a couple, of the builtin modules independent of builtin.cpp. That is, no longer `#include builtin_NAME.cpp` in builtin.cpp. This is more consistent, more in line with what developers expect, and is likely to reduce mistakes. Reduces lint errors from 384 to 336 (-13%). Line count from 6307 to 4988 (-21%). Another step in resolving issue #2902. --- build_tools/iwyu.linux.imp | 2 ++ build_tools/style.fish | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) (limited to 'build_tools') diff --git a/build_tools/iwyu.linux.imp b/build_tools/iwyu.linux.imp index 6fc614ae..27700b67 100644 --- a/build_tools/iwyu.linux.imp +++ b/build_tools/iwyu.linux.imp @@ -14,4 +14,6 @@ { symbol: ["size_t", "private", "", "public"] }, { symbol: ["size_t", "private", "", "public"] }, { symbol: ["uint64_t", "private", "", "public"] }, + { symbol: ["memset", "private", "", "public"] }, + { symbol: ["strerror", "private", "", "public"] }, ] diff --git a/build_tools/style.fish b/build_tools/style.fish index 62d8d5c7..fc9a96e3 100755 --- a/build_tools/style.fish +++ b/build_tools/style.fish @@ -39,7 +39,7 @@ else set git_clang_format yes else # No pending changes so lint the files in the most recent commit. - set files (git show --name-only --pretty=oneline head | tail --lines=+2) + set files (git show --name-only --pretty=oneline | tail --lines=+2) end # Extract just the C/C++ files. -- cgit v1.2.3