HomePhabricator

Add to the Coding Standard our that single-line bodies omit braces

Authored by erichkeane on Jun 1 2020, 12:14 PM.

Description

Add to the Coding Standard our that single-line bodies omit braces

This is a rule that seems to have been enforced for the better part of
the decade, so we should document it for new contributors.

Differential Revision: https://reviews.llvm.org/D80947

Event Timeline

lattner added inline comments.
/llvm/docs/CodingStandards.rst
1615

Please add a space after the 'for' keyword. Also, I'd appreciate being cc'd on changes to coding standards, thanks!

erichkeane marked an inline comment as done.Jun 15 2020, 4:22 PM
erichkeane added inline comments.
/llvm/docs/CodingStandards.rst
1615

Done in fad9cba.

I'll do better to remember to do so in the future, my apologies.

No worries, thanks Erich!