[clang-format] Add SpaceBeforeBrackets
authormydeveloperday <mydeveloperday@gmail.com>
Sat, 16 Nov 2019 11:54:21 +0000 (11:54 +0000)
committerpaulhoad <mydeveloperday@gmail.com>
Sat, 16 Nov 2019 11:54:21 +0000 (11:54 +0000)
commita4a7c1259e8a8f2d11fa29686a6c2834948c1358
treeab315a8d692d9765a93b2a2347774241779fbca2
parent42effc106966d45053abdd4e3d03ecfe256869b5
[clang-format] Add SpaceBeforeBrackets

Summary: Adds a new option SpaceBeforeBrackets to add spaces before brackets (i.e. int a[23]; -> int a [23];)  This is present as an option in the Visual Studio C++ code formatting settings, but there was no matching setting in clang-format.

Reviewers: djasper, MyDeveloperDay, mitchell-stellar

Reviewed By: MyDeveloperDay

Subscribers: llvm-commits, cfe-commits, klimek

Patch by: Anteru

Tags: #clang, #clang-format, #llvm

Differential Revision: https://reviews.llvm.org/D6920
clang/docs/ClangFormatStyleOptions.rst
clang/include/clang/Format/Format.h
clang/lib/Format/Format.cpp [changed mode: 0644->0755]
clang/lib/Format/TokenAnnotator.cpp
clang/unittests/Format/FormatTest.cpp