This is an archive of the discontinued LLVM Phabricator instance.

[PATCH] [clang-tidy] NFC: add preposition "of" to code annotation of ElseAfterReturnCheck
ClosedPublic

Authored by zhouyizhou on Jul 16 2022, 9:42 PM.

Details

Summary

Hi,
I think we should add add preposition "of" to code annotation of ElseAfterReturnCheck ;-)
Many Thanks Zhouyi

Zhouyi Zhou <zhouzhouyi@gmail.com>

Diff Detail

Event Timeline

zhouyizhou created this revision.Jul 16 2022, 9:42 PM
Herald added a project: Restricted Project. · View Herald TranscriptJul 16 2022, 9:42 PM
zhouyizhou requested review of this revision.Jul 16 2022, 9:42 PM
Herald added a project: Restricted Project. · View Herald TranscriptJul 16 2022, 9:42 PM
Herald added a subscriber: cfe-commits. · View Herald Transcript
njames93 accepted this revision.Jul 16 2022, 11:16 PM

While you're here could you also put full stops( or periods 🙃) at the end of the sentences.

This revision is now accepted and ready to land.Jul 16 2022, 11:16 PM

While you're here could you also put full stops( or periods 🙃) at the end of the sentences.

Thank Nathan for reviewing my patch
I am here, and am very happy to make further enhancement ;-) But because my native language is not English, I don't know where should I put the full stops at .
Isn't "If the if statement is the last statement of its enclosing statements scope, we can pull the decl out of the if statement." constitute a complete sentence?

Thanks again
Zhouyi

While you're here could you also put full stops( or periods 🙃) at the end of the sentences.

Thank Nathan for reviewing my patch
I am here, and am very happy to make further enhancement ;-) But because my native language is not English, I don't know where should I put the full stops at .
Isn't "If the if statement is the last statement of its enclosing statements scope, we can pull the decl out of the if statement." constitute a complete sentence?

Thanks again
Zhouyi

They are just used to end sentences, we typically try to put them at the end of every comment in LLVM.

clang-tools-extra/clang-tidy/readability/ElseAfterReturnCheck.cpp
266
302
nridge added inline comments.Jul 17 2022, 12:24 AM
clang-tools-extra/clang-tidy/readability/ElseAfterReturnCheck.cpp
266

This is the middle of a sentence though -- the sentence continues on the next line

Hi,

I have no write access to LLVM, could you commit for me at your convenience ;-)

Many thanks

Zhouyi Zhou <zhouzhouyi@gmail.com>