Clang-format: Add Whitesmiths indentation style
authorPaul Hoad <mydeveloperday@gmail.com>
Sun, 22 Sep 2019 12:00:34 +0000 (12:00 +0000)
committerPaul Hoad <mydeveloperday@gmail.com>
Sun, 22 Sep 2019 12:00:34 +0000 (12:00 +0000)
commita506ed256aeba5f3d71d1cf58f8d193444a3c694
tree6e7889d9be1db080cbcb7b63daa67c494cc7f063
parent1b38002c7dae02ab8b97f3d3b076e3e5f58c136f
Clang-format: Add Whitesmiths indentation style

Summary:
This patch adds support for the Whitesmiths indentation style to clang-format. It’s an update to a patch submitted in 2015 (D6833), but reworks it to use the newer API.

There are still some issues with this patch, primarily around `switch` and `case` support. The added unit test won’t currently pass because of the remaining issues.

Reviewers: mboehme, MyDeveloperDay, djasper

Reviewed By: MyDeveloperDay

Subscribers: krasimir, MyDeveloperDay, echristo, cfe-commits

Patch By: @timwoj (Tim Wojtulewicz)

Tags: #clang

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

llvm-svn: 372497
clang/docs/ClangFormatStyleOptions.rst
clang/include/clang/Format/Format.h
clang/lib/Format/ContinuationIndenter.cpp
clang/lib/Format/Format.cpp
clang/lib/Format/UnwrappedLineFormatter.cpp
clang/unittests/Format/FormatTest.cpp