This is an archive of the discontinued LLVM Phabricator instance.

[clang][NFC] Inclusive terms: Replace uses of whitelist in clang/lib/StaticAnalyzer
ClosedPublic

Authored by ZarkoCA on Oct 27 2021, 11:23 AM.

Details

Summary

Replace variable and functions names, as well as comments that contain whitelist with
more inclusive terms.

Diff Detail

Event Timeline

ZarkoCA created this revision.Oct 27 2021, 11:23 AM
ZarkoCA requested review of this revision.Oct 27 2021, 11:23 AM
aaron.ballman accepted this revision.Oct 28 2021, 7:30 AM

Thank you for this! Mostly just bikeshedding on names (allowlist as a verb sounds weird to me), feel free to take or leave the suggestions. LG aside from the formatting nits.

clang/lib/StaticAnalyzer/Checkers/EnumCastOutOfRangeChecker.cpp
96–97
clang/lib/StaticAnalyzer/Checkers/RetainCountChecker/RetainCountChecker.cpp
1191–1199
clang/lib/StaticAnalyzer/Checkers/VforkChecker.cpp
12
53–54
96–97

Also, should fix the clang-format issue.

183–184
188–189

Might as well handle this formatting issue.

This revision is now accepted and ready to land.Oct 28 2021, 7:30 AM
martong accepted this revision.Oct 29 2021, 5:24 AM

Thanks @ZarkoCA, LGTM, but please address the sensible changes advised by Aaron. And thanks @aaron.ballman for the review!

ZarkoCA updated this revision to Diff 383359.Oct 29 2021, 8:11 AM
  • Fix formatting and change variable names to make better grammatical sense
ZarkoCA marked 6 inline comments as done.Oct 29 2021, 8:13 AM

Thank you for this! Mostly just bikeshedding on names (allowlist as a verb sounds weird to me), feel free to take or leave the suggestions. LG aside from the formatting nits.

Yes, it didn't seem that right to me either but thought I'd get the ball rolling with something for now. Thanks for the suggestions, it looks much better to me now.

ZarkoCA marked an inline comment as done.Oct 29 2021, 8:14 AM