In particular, these messages should start with a lower-case letter and should have no trailing period at the end of the last sentence.
See http://lists.llvm.org/pipermail/llvm-dev/2020-March/140178.html for context.
Differential D76833
[CodingStandards] Document coding standard for error and warning messages jhenderson on Mar 26 2020, 3:06 AM. Authored by
Details In particular, these messages should start with a lower-case letter and should have no trailing period at the end of the last sentence. See http://lists.llvm.org/pipermail/llvm-dev/2020-March/140178.html for context.
Diff Detail
Unit Tests
Event Timeline
Comment Actions Thanks for doing this. The guidance is really helpful to have.
Comment Actions I think this looks good (with a minor comment) but would like to hear from more people first.
Comment Actions Thanks for working on this! (You should wait to commit for others to weigh in as well.)
Comment Actions Address comments. I'll leave this another 24 hours and then commit it, if that's okay?
|
This advice is not true for diagnostics from the Clang Static Analyzer, where they've chosen to use sentences with capitalization but without punctuation. We should call that style choice out, and clarify that the lowercase/no punctuation style applies to clang as well as clang-tidy.