[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
This commit is contained in:
Quinn Pham 2022-04-22 16:26:13 -05:00
parent d35f7f254f
commit 0386213352
1 changed files with 1 additions and 1 deletions

View File

@ -398,7 +398,7 @@ const RetainSummary *RetainSummaryManager::getSummaryForObjCOrCFObject(
} else if (FName.startswith("NSLog")) { } else if (FName.startswith("NSLog")) {
return getDoNothingSummary(); return getDoNothingSummary();
} else if (FName.startswith("NS") && FName.contains("Insert")) { } 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) // be deallocated by NSMapRemove. (radar://11152419)
ScratchArgs = AF.add(ScratchArgs, 1, ArgEffect(StopTracking)); ScratchArgs = AF.add(ScratchArgs, 1, ArgEffect(StopTracking));
ScratchArgs = AF.add(ScratchArgs, 2, ArgEffect(StopTracking)); ScratchArgs = AF.add(ScratchArgs, 2, ArgEffect(StopTracking));