summaryrefslogtreecommitdiffstats
path: root/clang/tools/clang-format-vs/ClangFormat
diff options
context:
space:
mode:
authorHans Wennborg <hans@hanshq.net>2013-09-10 15:41:12 +0000
committerHans Wennborg <hans@hanshq.net>2013-09-10 15:41:12 +0000
commit9f6581bb88c5e2575c0cbd07103c76a528065192 (patch)
treec4a45148c311b9862cddb825586e0bab3b42e346 /clang/tools/clang-format-vs/ClangFormat
parentd532cb6bedb6e3e9742197c97972857640afca64 (diff)
downloadbcm5719-llvm-9f6581bb88c5e2575c0cbd07103c76a528065192.tar.gz
bcm5719-llvm-9f6581bb88c5e2575c0cbd07103c76a528065192.zip
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 llvm-svn: 190413
Diffstat (limited to 'clang/tools/clang-format-vs/ClangFormat')
-rw-r--r--clang/tools/clang-format-vs/ClangFormat/ClangFormatPackage.cs7
1 files changed, 4 insertions, 3 deletions
diff --git a/clang/tools/clang-format-vs/ClangFormat/ClangFormatPackage.cs b/clang/tools/clang-format-vs/ClangFormat/ClangFormatPackage.cs
index c216030b9d7..797d4678857 100644
--- a/clang/tools/clang-format-vs/ClangFormat/ClangFormatPackage.cs
+++ b/clang/tools/clang-format-vs/ClangFormat/ClangFormatPackage.cs
@@ -37,11 +37,12 @@ namespace LLVM.ClangFormat
[DisplayName("Style")]
[Description("Coding style, currently supports:\n" +
" - Predefined styles ('LLVM', 'Google', 'Chromium', 'Mozilla').\n" +
- " - 'File' to search for a YAML .clang-format configuration.\n" +
+ " - 'File' to search for a YAML .clang-format or _clang-format\n" +
+ " configuration file.\n" +
" - A YAML configuration snippet.\n\n" +
"'File':\n" +
- " Searches for a .clang-format configuration in the source file's\n" +
- " directory and its parents.\n\n" +
+ " Searches for a .clang-format or _clang-format configuration file\n" +
+ " in the source file's directory and its parents.\n\n" +
"YAML configuration snippet:\n" +
" The content of a .clang-format configuration file, as string.\n" +
" Example: '{BasedOnStyle: \"LLVM\", IndentWidth: 8}'\n\n" +
OpenPOWER on IntegriCloud