Skip to content

Commit 8f7b148

Browse files
committed
[NFC] Make comment consistent with allow|ignore list renamings
Reviewed By: thakis Differential Revision: https://reviews.llvm.org/D123640
1 parent c56f5c7 commit 8f7b148

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

clang/lib/Driver/SanitizerArgs.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ static void addDefaultIgnorelists(const Driver &D, SanitizerMask Kinds,
175175
DiagnoseErrors);
176176
}
177177

178-
/// Parse -f(no-)?sanitize-(coverage-)?(white|ignore)list argument's values,
178+
/// Parse -f(no-)?sanitize-(coverage-)?(allow|ignore)list argument's values,
179179
/// diagnosing any invalid file paths and validating special case list format.
180180
static void parseSpecialCaseListArg(const Driver &D,
181181
const llvm::opt::ArgList &Args,
@@ -185,7 +185,7 @@ static void parseSpecialCaseListArg(const Driver &D,
185185
unsigned MalformedSCLErrorDiagID,
186186
bool DiagnoseErrors) {
187187
for (const auto *Arg : Args) {
188-
// Match -fsanitize-(coverage-)?(white|ignore)list.
188+
// Match -fsanitize-(coverage-)?(allow|ignore)list.
189189
if (Arg->getOption().matches(SCLOptionID)) {
190190
Arg->claim();
191191
std::string SCLPath = Arg->getValue();
@@ -788,7 +788,7 @@ SanitizerArgs::SanitizerArgs(const ToolChain &TC,
788788
CoverageFeatures |= CoverageFunc;
789789
}
790790

791-
// Parse -fsanitize-coverage-(ignore|white)list options if coverage enabled.
791+
// Parse -fsanitize-coverage-(allow|ignore)list options if coverage enabled.
792792
// This also validates special case lists format.
793793
// Here, OptSpecifier() acts as a never-matching command-line argument.
794794
// So, there is no way to clear coverage lists but you can append to them.

0 commit comments

Comments
 (0)