This is an archive of the discontinued LLVM Phabricator instance.

[clang] Inclusive language: change instances of blacklist/whitelist to allowlist/ignorelist
ClosedPublic

Authored by ZarkoCA on Nov 4 2021, 7:22 AM.

Details

Summary

Change the error message to use ignorelist, and changed some variable and function
names in related code and test.

Diff Detail

Event Timeline

ZarkoCA requested review of this revision.Nov 4 2021, 7:22 AM
ZarkoCA created this revision.
Herald added a project: Restricted Project. · View Herald TranscriptNov 4 2021, 7:22 AM
Herald added a subscriber: cfe-commits. · View Herald Transcript
thakis accepted this revision.Nov 5 2021, 1:57 PM

Generally lg. I find the word "allowlist" (and to a lesser level also "ignorelist") a bit awkward; imho you can often make things more clear by rephrasing things away from "foolist". A few suggestions along those lines below.

clang/include/clang/AST/CommentHTMLTags.td
55

"Define a list of…"

58–59

"This should be a list of attributes that _are_ safe. When making this change, don't forget…"

clang/include/clang/Basic/DiagnosticASTKinds.td
570–571

s/a/an/

571

"is ignored"

This revision is now accepted and ready to land.Nov 5 2021, 1:57 PM
ZarkoCA updated this revision to Diff 385478.Nov 8 2021, 6:42 AM
ZarkoCA retitled this revision from [clang] Inclusive language: change instances of blacklist/whitelist to allowlist/ignorelist to [clang] Inclusive language: change instances of blacklist/whitelist to allowlist/ignorelist.
  • Address review: reworded comments
ZarkoCA updated this revision to Diff 385479.Nov 8 2021, 6:43 AM
  • Fix typo