[Lldb-commits] [PATCH] D82236: blacklist -> exclusions: heap.py
Eric Christopher via Phabricator via lldb-commits
lldb-commits at lists.llvm.org
Fri Jun 19 14:41:59 PDT 2020
echristo created this revision.
echristo added a reviewer: mehdi_amini.
Herald added subscribers: aaron.ballman, mcrosier.
Herald added a project: LLDB.
echristo edited the summary of this revision.
As part of using inclusive language with the llvm project migrate away from the use of blacklist and whitelist.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D82236
Files:
lldb/examples/darwin/heap_find/heap.py
Index: lldb/examples/darwin/heap_find/heap.py
===================================================================
--- lldb/examples/darwin/heap_find/heap.py
+++ lldb/examples/darwin/heap_find/heap.py
@@ -226,7 +226,7 @@
def append_regex_callback(option, opt, value, parser):
try:
ivar_regex = re.compile(value)
- parser.values.ivar_regex_blacklist.append(ivar_regex)
+ parser.values.ivar_regex_exclusions.append(ivar_regex)
except:
print('error: an exception was thrown when compiling the ivar regular expression for "%s"' % value)
@@ -287,7 +287,7 @@
type='string',
action='callback',
callback=append_regex_callback,
- dest='ivar_regex_blacklist',
+ dest='ivar_regex_exclusions',
default=[],
help='specify one or more regular expressions used to backlist any matches that are in ivars')
parser.add_option(
@@ -773,8 +773,8 @@
member_path += '.'
member_path += member_name
if member_path:
- if options.ivar_regex_blacklist:
- for ivar_regex in options.ivar_regex_blacklist:
+ if options.ivar_regex_exclusions:
+ for ivar_regex in options.ivar_regex_exclusions:
if ivar_regex.match(
member_path):
print_entry = False
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D82236.272180.patch
Type: text/x-patch
Size: 1679 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20200619/150556d1/attachment.bin>
More information about the lldb-commits
mailing list