<div dir="ltr">On Mon, May 6, 2013 at 10:27 PM, Kim Gräsman <span dir="ltr"><<a href="mailto:kim.grasman@gmail.com" target="_blank">kim.grasman@gmail.com</a>></span> wrote:<br><div class="gmail_extra"><div class="gmail_quote">
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Alexander,<div><br></div><div>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.</div>
<div><br></div><div> # start from Google style</div><div> BasedOn: <span></span>google.clang-format</div><div> </div><div> # local adjustments</div><div> ColumnLimit: 120</div><div> ...</div></blockquote><div><br></div>
<div>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:</div>
<div><br></div></div></div><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div class="gmail_extra"><div class="gmail_quote"><div style>BasedOnStyle: Google</div></div></div></blockquote></div>