Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(86)

Unified Diff: webrtc/tools/header_usage.sh

Issue 2363423002: header_usage.sh script: Exclude matches in gyp and gn files. (Closed)
Patch Set: Ignore all *.gn* and *.gyp* files. Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/tools/header_usage.sh
diff --git a/webrtc/tools/header_usage.sh b/webrtc/tools/header_usage.sh
index 6bb890136b4e8adf24a1a6e0115a58c9374175c1..58d85024dde8c680a85feef88feb532c5fde5d55 100755
--- a/webrtc/tools/header_usage.sh
+++ b/webrtc/tools/header_usage.sh
@@ -18,6 +18,8 @@
git ls-files '*.h' '*.hpp' | while read header ; do
name="$(basename "${header}")"
- count="$(git grep -l -F "${name}" | wc -l)"
+ count="$(git grep -l -F "${name}" \
+ | grep -v -e '\.gn' -e '\.gyp' \
+ | wc -l)"
echo "${count}" "${header}"
done | sort -n
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698