[all-commits] [llvm/llvm-project] 77e60b: [clang-format] Add option to insert braces after c...

Owen via All-commits all-commits at lists.llvm.org
Mon Feb 21 20:16:40 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 77e60bc42c48e16d646488d43210b1630cd4db49
      https://github.com/llvm/llvm-project/commit/77e60bc42c48e16d646488d43210b1630cd4db49
  Author: owenca <owenpiano at gmail.com>
  Date:   2022-02-21 (Mon, 21 Feb 2022)

  Changed paths:
    M clang/docs/ClangFormatStyleOptions.rst
    M clang/docs/ReleaseNotes.rst
    M clang/include/clang/Format/Format.h
    M clang/lib/Format/Format.cpp
    M clang/lib/Format/FormatToken.h
    M clang/lib/Format/UnwrappedLineParser.cpp
    M clang/lib/Format/UnwrappedLineParser.h
    M clang/unittests/Format/FormatTest.cpp

  Log Message:
  -----------
  [clang-format] Add option to insert braces after control statements

Adds a new option InsertBraces to insert the optional braces after
if, else, for, while, and do in C++.

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




More information about the All-commits mailing list