[cfe-dev] Clang-format configuration files

Alexander Kornienko alexfh at google.com
Tue May 7 03:41:05 PDT 2013

On Mon, May 6, 2013 at 10:27 PM, Kim Gräsman <kim.grasman at gmail.com> wrote:

> Hi Alexander,
> When I did external config for IWYU, I added an #include mechanism to
> allow configurations composed from different files. In our case it was  to
> support per-library configurations, which is probably not useful for
> clang-format. However, it might be nice for you to allow "use the Google
> style, but..." in the form of a base file and local overrides. E.g.
>   # start from Google style
>   BasedOn: google.clang-format
>   # local adjustments
>   ColumnLimit: 120
>   ...

Sounds interesting. I would avoid any form of inclusion and referencing
other configuration files, but I like the idea of allowing to choose base
configuration from the list of styles supported by clang-format internally.
I would use a bit different naming, though:

BasedOnStyle: Google
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20130507/48044123/attachment.html>

More information about the cfe-dev mailing list