-
Notifications
You must be signed in to change notification settings - Fork 4
/
.vimrc_for_clang_format
37 lines (36 loc) · 1.98 KB
/
.vimrc_for_clang_format
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
let g:clang_format#code_style = 'webkit'
let g:clang_format#style_options = {
\ 'BasedOnStyle' : 'WebKit',
\ 'AlignAfterOpenBracket' : 'Align',
\ 'AlignConsecutiveAssignments' : 'true',
\ 'AlignConsecutiveDeclarations' : 'true',
\ 'AlignEscapedNewlinesLeft' : 'true',
\ 'AlignTrailingComments' : 'true',
\ 'AllowAllParametersOfDeclarationOnNextLine' : 'false',
\ 'AllowShortBlocksOnASingleLine' : 'false',
\ 'AllowShortCaseLabelsOnASingleLine' : 'false',
\ 'AllowShortFunctionsOnASingleLine' : 'false',
\ 'AllowShortIfStatementsOnASingleLine' : 'false',
\ 'AllowShortLoopsOnASingleLine' : 'false',
\ 'AlwaysBreakAfterReturnType' : 'None',
\ 'AlwaysBreakBeforeMultilineStrings' : 'true',
\ 'BinPackArguments' : 'true',
\ 'BinPackParameters' : 'true',
\ 'BreakBeforeBinaryOperators' : 'None',
\ 'BreakBeforeBraces' : 'WebKit',
\ 'ColumnLimit' : '120',
\ 'DerivePointerAlignment' : 'false',
\ 'IndentCaseLabels' : 'true',
\ 'IndentWidth' : '4',
\ 'MaxEmptyLinesToKeep' : '1',
\ 'PointerAlignment' : 'Middle',
\ 'SortIncludes' : 'false',
\ 'SpaceBeforeAssignmentOperators' : 'true',
\ 'SpaceBeforeParens' : 'ControlStatements',
\ 'SpaceInEmptyParentheses' : 'false',
\ 'SpacesInCStyleCastParentheses' : 'false',
\ 'SpacesInParentheses' : 'false',
\ 'SpacesInSquareBrackets' : 'false',
\ 'TabWidth' : '4',
\ 'UseTab' : 'ForIndentation',
\ }