[clang][NFC] Inclusive language: remove use of Whitelist in clang/lib/Analysis/
authorQuinn Pham <Quinn.Pham@ibm.com>
Fri, 22 Apr 2022 21:26:13 +0000 (16:26 -0500)
committerQuinn Pham <Quinn.Pham@ibm.com>
Mon, 25 Apr 2022 20:26:36 +0000 (15:26 -0500)
[NFC] As part of using inclusive language within the llvm project, this patch
rewords a comment to replace Whitelist with Allowlist in
`RetainSummaryManager.cpp`.

Reviewed By: aaron.ballman

Differential Revision: https://reviews.llvm.org/D124389

clang/lib/Analysis/RetainSummaryManager.cpp

index 836e369..9098cf3 100644 (file)
@@ -398,7 +398,7 @@ const RetainSummary *RetainSummaryManager::getSummaryForObjCOrCFObject(
   } else if (FName.startswith("NSLog")) {
     return getDoNothingSummary();
   } else if (FName.startswith("NS") && FName.contains("Insert")) {
-    // Whitelist NSXXInsertXX, for example NSMapInsertIfAbsent, since they can
+    // Allowlist NSXXInsertXX, for example NSMapInsertIfAbsent, since they can
     // be deallocated by NSMapRemove. (radar://11152419)
     ScratchArgs = AF.add(ScratchArgs, 1, ArgEffect(StopTracking));
     ScratchArgs = AF.add(ScratchArgs, 2, ArgEffect(StopTracking));