r190413 - Allow _clang-format as alternative to .clang-format config filename

Hans Wennborg hans at chromium.org
Wed Sep 11 10:24:56 PDT 2013


On Tue, Sep 10, 2013 at 11:34 AM, Chandler Carruth <chandlerc at google.com> wrote:
>
> On Tue, Sep 10, 2013 at 8:41 AM, Hans Wennborg <hans at hanshq.net> wrote:
>>
>> Allow _clang-format as alternative to .clang-format config filename
>>
>> Dotfiles are impractical on Windows. This makes clang-format search
>> for the style configuration file as '_clang-format' in addition to
>> the usual '.clang-format'. This is similar to how VIM searches for
>> '_vimrc' on Windows.
>
>
> Ok, the '-' here is getting damn confusing. Should this be _clang_format?
> .clang_format for consistency there? Or do folks really like the format
> here?

It is already consistent, though. _clang-format is consistent with
.clang-format which is consistent with the name of the tool (which is
consistent with the name of all the other tools).

Maybe Daniel has an opinion here.

 - Hans



More information about the cfe-commits mailing list