diff options
author | Chandler Carruth <chandlerc@gmail.com> | 2013-09-02 07:42:02 +0000 |
---|---|---|
committer | Chandler Carruth <chandlerc@gmail.com> | 2013-09-02 07:42:02 +0000 |
commit | 867d3fef16af84e12ca2af7f5645d19a9685585c (patch) | |
tree | 11aed7e9c292cca48969e7c84b5e65ae2ad6af7a /clang/.clang-format | |
parent | b24500fbeebb3bca475ba4a470d1baac63fb61f4 (diff) |
Switch the default mode for clang-format to '-file'. Make 'LLVM' the
fallback syntax used when we fail to find a '.clang-format' file. Adjust
variable names appropriately.
Update the editor integration pieces that specify a '-style' option to
specify it as '-style=file'. I left the functionality in place because
even if the preferred method is to use '.clang-format' files, this way
if someone needs to clobber the style in their editor we show how to do
so in these examples.
Also check in a '.clang-format' file for Clang to ensure that separate
checkouts and builds of Clang from LLVM can still get the nice
formatting. =] This unfortunately required nuking the test for the
absence of a '.clang-format' file as now the directory happening to be
under your clang source tree will cause there to always be a file. ;]
Diffstat (limited to 'clang/.clang-format')
-rw-r--r-- | clang/.clang-format | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/.clang-format b/clang/.clang-format new file mode 100644 index 00000000000..9b3aa8b7213 --- /dev/null +++ b/clang/.clang-format @@ -0,0 +1 @@ +BasedOnStyle: LLVM |