]> granicus.if.org Git - clang/commit
Allow _clang-format as alternative to .clang-format config filename
authorHans Wennborg <hans@hanshq.net>
Tue, 10 Sep 2013 15:41:12 +0000 (15:41 +0000)
committerHans Wennborg <hans@hanshq.net>
Tue, 10 Sep 2013 15:41:12 +0000 (15:41 +0000)
commit9a7a50eef777765e4d20e3b1f3670b32582114fb
tree65ffa709a3a39fce2c7bf0dfe72e59d2bd368dc6
parentdaa07e9ee76d438efa3c7e2c54b4d3d3ed19ea27
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.

Differential Revision: http://llvm-reviews.chandlerc.com/D1629

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@190413 91177308-0d34-0410-b5e6-96231b3b80d8
docs/ClangFormat.rst
docs/ClangFormatStyleOptions.rst
test/Format/style-on-command-line.cpp
tools/clang-format-vs/ClangFormat/ClangFormatPackage.cs
tools/clang-format/ClangFormat.cpp
tools/clang-format/clang-format-sublime.py
tools/clang-format/clang-format.py