summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorThorsten Behrens <Thorsten.Behrens@CIB.de>2020-07-06 03:50:20 +0200
committerThorsten Behrens <Thorsten.Behrens@CIB.de>2020-07-10 02:03:40 +0200
commitc5b985bc9bd8d56fb012260cb1685a617261e7fc (patch)
treecff0e97b1fcd1e380236b1e2e2b203512df0109f /bin
parentabb6c01519a0318d7165dc9dc5b7d185353f93d6 (diff)
replace usage of blacklist with excludelist for IWYU
Background and motivation: https://tools.ietf.org/html/draft-knodel-terminology-02 Change-Id: I2f22d455d2a936a85750eaab1fda215ebb6d9d48 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/98182 Tested-by: Thorsten Behrens <Thorsten.Behrens@CIB.de> Reviewed-by: Thorsten Behrens <Thorsten.Behrens@CIB.de>
Diffstat (limited to 'bin')
-rwxr-xr-xbin/find-unneeded-includes10
1 files changed, 5 insertions, 5 deletions
diff --git a/bin/find-unneeded-includes b/bin/find-unneeded-includes
index fcbabad87465..2090339b21df 100755
--- a/bin/find-unneeded-includes
+++ b/bin/find-unneeded-includes
@@ -12,7 +12,7 @@
# you can generate one with 'make vim-ide-integration'.
#
# Design goals:
-# - blacklist mechanism, so a warning is either fixed or blacklisted
+# - exludelist mechanism, so a warning is either fixed or excluded
# - works in a plugins-enabled clang build
# - no custom configure options required
# - no need to generate a dummy library to build a header
@@ -133,10 +133,10 @@ def ignoreRemoval(include, toAdd, absFileName, moduleRules):
# yaml rules
- if "blacklist" in moduleRules.keys():
- blacklistRules = moduleRules["blacklist"]
- if fileName in blacklistRules.keys():
- if include in blacklistRules[fileName]:
+ if "excludelist" in moduleRules.keys():
+ excludelistRules = moduleRules["excludelist"]
+ if fileName in excludelistRules.keys():
+ if include in excludelistRules[fileName]:
return True
return False