[cmake-developers] Code style auto-formatting

Brad King brad.king at kitware.com
Thu Apr 28 10:26:54 EDT 2016


On 04/27/2016 07:12 PM, Daniel Pfeifer wrote:
> It took a while, but i figured out .clang-format definitions (there
> are two required) and a script that, after applying, does not break
> compilation and unit tests.

Thanks!  I'll try that out myself when I get a chance.

> I have attached a patch that adds the .clang-format and two other
> patches that need to be applied before reformatting.

Meanwhile I've applied these cleanups:

 CursesDialog: add missing cmState include
 https://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=bb8fdcf6

 Tests: add blank line between includes in StringFileTest
 https://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=29abee03

-Brad



More information about the cmake-developers mailing list