Author: Eric Christopher Date: 2020-06-19T14:51:04-07:00 New Revision: 2db1d75396fe3700530e3703f8c951a53cff00ee
URL: https://github.com/llvm/llvm-project/commit/2db1d75396fe3700530e3703f8c951a53cff00ee DIFF: https://github.com/llvm/llvm-project/commit/2db1d75396fe3700530e3703f8c951a53cff00ee.diff LOG: As part of using inclusive language within the llvm project, migrate away from the use of blacklist and whitelist. Added: Modified: lldb/examples/darwin/heap_find/heap.py Removed: ################################################################################ diff --git a/lldb/examples/darwin/heap_find/heap.py b/lldb/examples/darwin/heap_find/heap.py index 0c8744ff15f4..a8bc377ffe4c 100644 --- a/lldb/examples/darwin/heap_find/heap.py +++ b/lldb/examples/darwin/heap_find/heap.py @@ -226,7 +226,7 @@ def get_member_types_for_offset(value_type, offset, member_list): 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 @@ def add_common_options(parser): 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 @@ def display_match_results( 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 _______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits