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


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
_______________________________________________
lldb-commits mailing list
lldb-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

Reply via email to