[CMake] clang-format

Tiago Macarios tiagomacarios at gmail.com
Mon Nov 14 13:37:23 EST 2016


Well, I don't really mind how it is implemented. During compilation, or as
a separate target, but it would be a nice feature.

On Sun, Nov 13, 2016 at 11:08 PM, Patrick Boettcher <
patrick.boettcher at posteo.de> wrote:

> Hi,
>
> On Mon, 7 Nov 2016 12:06:15 -0800
> Tiago Macarios <tiagomacarios at gmail.com> wrote:
> > CMake has "built-in" support for clang_tidy and include-what-you-use.
> > I was wondering why there is not support for clang_format. No one ever
> > contributed, or people think this should not be part of CMake?
>
> First thought which came to my mind when reading your mail was that no
> automatic tool should change (source-)files during compilation which
> are, possibly, opened in an editor.
>
> But, it would, maybe, be nice to have a custom, optional target to run
> it on demand.
>
> If your editor supports it (mine does, even for selected code-lines, \o/
> ) integrate clang-format as source-code-indentation-tool.
>
> regards
> --
> Patrick.
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/cmake/attachments/20161114/ab389b91/attachment.html>


More information about the CMake mailing list