[clang] 0386213 - [clang][NFC] Inclusive language: remove use of Whitelist in clang/lib/Analysis/
Quinn Pham via cfe-commits
cfe-commits at lists.llvm.org
Mon Apr 25 13:26:43 PDT 2022
Author: Quinn Pham
Date: 2022-04-25T15:26:36-05:00
New Revision: 0386213352ec42342c756099fcfc6c1165d99e08
URL: https://github.com/llvm/llvm-project/commit/0386213352ec42342c756099fcfc6c1165d99e08
DIFF: https://github.com/llvm/llvm-project/commit/0386213352ec42342c756099fcfc6c1165d99e08.diff
LOG: [clang][NFC] Inclusive language: remove use of Whitelist in clang/lib/Analysis/
[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
Added:
Modified:
clang/lib/Analysis/RetainSummaryManager.cpp
Removed:
################################################################################
diff --git a/clang/lib/Analysis/RetainSummaryManager.cpp b/clang/lib/Analysis/RetainSummaryManager.cpp
index 836e369758d38..9098cf370d4f5 100644
--- a/clang/lib/Analysis/RetainSummaryManager.cpp
+++ b/clang/lib/Analysis/RetainSummaryManager.cpp
@@ -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));
More information about the cfe-commits
mailing list