summaryrefslogtreecommitdiffstats
path: root/clang/tools/clang-format/clang-format-sublime.py
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/clang-format-sublime.py
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/clang-format-sublime.py')
-rw-r--r--clang/tools/clang-format/clang-format-sublime.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/clang/tools/clang-format/clang-format-sublime.py b/clang/tools/clang-format/clang-format-sublime.py
index 73ff3dc8239..78c8939c1b0 100644
--- a/clang/tools/clang-format/clang-format-sublime.py
+++ b/clang/tools/clang-format/clang-format-sublime.py
@@ -21,7 +21,8 @@ binary = 'clang-format'
# Change this to format according to other formatting styles. See the output of
# 'clang-format --help' for a list of supported styles. The default looks for
-# a '.clang-format' file to indicate the style that should be used.
+# a '.clang-format' or '_clang-format' file to indicate the style that should be
+# used.
style = 'file'
class ClangFormatCommand(sublime_plugin.TextCommand):
OpenPOWER on IntegriCloud