[all-commits] [llvm/llvm-project] 1661a2: [RFC][Docs] Clarify brace omission for single-line...

Shilei Tian via All-commits all-commits at lists.llvm.org
Wed May 6 15:36:36 PDT 2026


  Branch: refs/heads/users/shiltian/single-line-brace-rule
  Home:   https://github.com/llvm/llvm-project
  Commit: 1661a232f3ca3b29811bc7dce7a9e99a938a6301
      https://github.com/llvm/llvm-project/commit/1661a232f3ca3b29811bc7dce7a9e99a938a6301
  Author: Shilei Tian <i at tianshilei.me>
  Date:   2026-05-06 (Wed, 06 May 2026)

  Changed paths:
    M llvm/docs/CodingStandards.rst

  Log Message:
  -----------
  [RFC][Docs] Clarify brace omission for single-line bodies

Update the Coding Standards brace guidance to emphasize that braces should be
omitted only for simple bodies that do not wrap across multiple physical lines.


  Commit: db86c2575b2cf0b1187f5a97697d14958aaf2ac5
      https://github.com/llvm/llvm-project/commit/db86c2575b2cf0b1187f5a97697d14958aaf2ac5
  Author: Shilei Tian <i at tianshilei.me>
  Date:   2026-05-06 (Wed, 06 May 2026)

  Changed paths:
    M llvm/docs/CodingStandards.rst

  Log Message:
  -----------
  add rule for nested statements


Compare: https://github.com/llvm/llvm-project/compare/2e4c72eeefc7...db86c2575b2c

To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list