This is an archive of the discontinued LLVM Phabricator instance.

[clang][docs] Inclusive language: remove use of sanity check in option description
ClosedPublic

Authored by ZarkoCA on Nov 24 2021, 1:15 PM.

Diff Detail

Event Timeline

ZarkoCA requested review of this revision.Nov 24 2021, 1:15 PM
ZarkoCA created this revision.
Quuxplusone added inline comments.
clang/docs/ThreadSafetyAnalysis.rst
471

I'd just say "Rejects invalid attribute syntax." But also

  • surely this is totally obvious, that invalid syntax causes an error? why do we even need to write this?
  • line 469 says "three" but then there are four bullet points
aaronpuchert added inline comments.
clang/docs/ThreadSafetyAnalysis.rst
471

It's more about semantics than syntax, i.e. something like “this attribute doesn't make sense on such a declaration.” The full (current) list of warning messages is on https://clang.llvm.org/docs/DiagnosticsReference.html#wthread-safety-attributes. (Even “ignoring A attribute because its argument is invalid” is actually just saying that we don't understand the AST.)

"Validation checks" feels like a hendiadys and doesn't really add anything. Indeed something like “Semantic (checks|validation) for thread safety attributes” would be most accurate. Though maybe @aaron.ballman has a better idea.

ZarkoCA updated this revision to Diff 389737.Nov 25 2021, 4:32 AM
  • Fix description
  • Remove three
aaron.ballman accepted this revision.Nov 30 2021, 11:20 AM

LGTM!

clang/docs/ThreadSafetyAnalysis.rst
471

TIL what hendiadys means.

I think the currently proposed wording is reasonable (it's not just about syntax, as @aaronpuchert says, it's also about semantic checks). Really, this groups is about diagnostics that relate to incorrect use of the attribute itself, not the analysis supported by the attribute and "semantic checks" works for that).

This revision is now accepted and ready to land.Nov 30 2021, 11:20 AM