[libcxx-commits] [libcxx] 76ff077 - [libcxx] As part of using inclusive language within the llvm
Eric Christopher via libcxx-commits
libcxx-commits at lists.llvm.org
Fri Jun 19 21:37:50 PDT 2020
Author: Eric Christopher
Date: 2020-06-19T21:37:11-07:00
New Revision: 76ff0775d807f99b01ce0b8ae3f5b072ceb8fc79
URL: https://github.com/llvm/llvm-project/commit/76ff0775d807f99b01ce0b8ae3f5b072ceb8fc79
DIFF: https://github.com/llvm/llvm-project/commit/76ff0775d807f99b01ce0b8ae3f5b072ceb8fc79.diff
LOG: [libcxx] As part of using inclusive language within the llvm
project, migrate away from the use of blacklist and whitelist.
Added:
Modified:
libcxx/utils/libcxx/sym_check/util.py
libcxx/utils/sym_match.py
Removed:
################################################################################
diff --git a/libcxx/utils/libcxx/sym_check/util.py b/libcxx/utils/libcxx/sym_check/util.py
index 0ebde9034cab..4b04ac4dfe2d 100644
--- a/libcxx/utils/libcxx/sym_check/util.py
+++ b/libcxx/utils/libcxx/sym_check/util.py
@@ -31,7 +31,7 @@ def read_syms_from_file(filename):
return read_syms_from_list(data.splitlines())
-def read_blacklist(filename):
+def read_exclusions(filename):
with open(filename, 'r') as f:
data = f.read()
lines = [l.strip() for l in data.splitlines() if l.strip()]
diff --git a/libcxx/utils/sym_match.py b/libcxx/utils/sym_match.py
index 1fd39ca5f838..e1fd28bd6a51 100755
--- a/libcxx/utils/sym_match.py
+++ b/libcxx/utils/sym_match.py
@@ -19,7 +19,7 @@ def main():
parser = ArgumentParser(
description='Extract a list of symbols from a shared library.')
parser.add_argument(
- '--blacklist', dest='blacklist',
+ '--exclusions', dest='exclusions',
type=str, action='store', default=None)
parser.add_argument(
'symbol_list', metavar='symbol_list', type=str,
@@ -29,11 +29,11 @@ def main():
help='The file containing the new symbol list or a library')
args = parser.parse_args()
- if not args.regexes and args.blacklist is None:
- sys.stderr.write('Either a regex or a blacklist must be specified.\n')
+ if not args.regexes and args.exclusions is None:
+ sys.stderr.write('Either a regex or a exclusions must be specified.\n')
sys.exit(1)
- if args.blacklist:
- search_list = util.read_blacklist(args.blacklist)
+ if args.exclusions:
+ search_list = util.read_exclusions(args.exclusions)
else:
search_list = args.regexes
More information about the libcxx-commits
mailing list