summaryrefslogtreecommitdiff
path: root/bin/find-unused-defines.py
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-12-15 12:26:07 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-12-15 13:46:04 +0200
commitca6d205e88f052d25325d360a6fd0d744cb43000 (patch)
tree536749ab72443220ec2bb36183c4863f39ca0277 /bin/find-unused-defines.py
parentf388d1dbb2edc1d678a658572bef6af4046728ff (diff)
improve the find-unused-typedefs script
Change-Id: If4ab3bf8759c194e6005091d6df6a3a11cd633b7
Diffstat (limited to 'bin/find-unused-defines.py')
-rwxr-xr-xbin/find-unused-defines.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/bin/find-unused-defines.py b/bin/find-unused-defines.py
index 7f5f27cb6bc7..2c08cc6cd342 100755
--- a/bin/find-unused-defines.py
+++ b/bin/find-unused-defines.py
@@ -97,6 +97,7 @@ def in_exclusion_set( a ):
return True;
return False;
+# find defines, excluding the externals folder
a = subprocess.Popen("git grep -hP '^#define\s+\w+\s+' -- \"[!e][!x][!t]*\" | sort -u", stdout=subprocess.PIPE, shell=True)
with a.stdout as txt: