[clang-format] Add experimental option to remove LLVM braces
authorOwen Pan <owenpiano@gmail.com>
Mon, 13 Dec 2021 02:25:33 +0000 (18:25 -0800)
committerowenca <owenpiano@gmail.com>
Fri, 14 Jan 2022 23:10:17 +0000 (15:10 -0800)
commit533fbae8d8d87fb151f852b5273e6e1626321567
tree7cef43f1fee6ad04f15708b6fd99696ded8963e8
parenta4e255f9c6d4458fa6e70394af626f3b65e0a26d
[clang-format] Add experimental option to remove LLVM braces

See the style examples at:
https://llvm.org/docs/CodingStandards.html#don-t-use-braces-on-simple-single-statement-bodies-of-if-else-loop-statements

Differential Revision: https://reviews.llvm.org/D116316
clang/docs/ClangFormatStyleOptions.rst
clang/docs/ReleaseNotes.rst
clang/include/clang/Format/Format.h
clang/lib/Format/Format.cpp
clang/lib/Format/FormatToken.h
clang/lib/Format/TokenAnnotator.cpp
clang/lib/Format/UnwrappedLineParser.cpp
clang/lib/Format/UnwrappedLineParser.h
clang/unittests/Format/FormatTest.cpp