Merge pull request #2907 from keplersj/clang-format

Add .clang-format as a YAML file
This commit is contained in:
Kepler Sticka-Jones
2016-03-23 20:09:34 -06:00
committed by Arfon Smith
parent 84471a5463
commit 2012647f78
2 changed files with 20 additions and 0 deletions

View File

@@ -4000,6 +4000,8 @@ YAML:
- .syntax
- .yaml
- .yaml-tmlanguage
filenames:
- .clang-format
ace_mode: yaml
YANG:

View File

@@ -0,0 +1,18 @@
---
# We'll use defaults from the LLVM style, but with 4 columns indentation.
BasedOnStyle: LLVM
IndentWidth: 4
---
Language: Cpp
# Force pointers to the type for C++.
DerivePointerAlignment: false
PointerAlignment: Left
---
Language: JavaScript
# Use 100 columns for JS.
ColumnLimit: 100
---
Language: Proto
# Don't format .proto files.
DisableFormat: true
...