vim and clang-format configuration file
This commit is contained in:
parent
6cfc8e1c2f
commit
fd6551e90c
10
.clang-format
Normal file
10
.clang-format
Normal file
@ -0,0 +1,10 @@
|
||||
BasedOnStyle: LLVM
|
||||
AlignConsecutiveAssignments: true
|
||||
AllowShortFunctionsOnASingleLine: Empty
|
||||
BreakBeforeBraces: Linux
|
||||
BreakStringLiterals: false
|
||||
ColumnLimit: 95
|
||||
IndentCaseLabels: true
|
||||
IndentWidth: 4
|
||||
TabWidth: 4
|
||||
UseTab: Never
|
9
.vimrc
Normal file
9
.vimrc
Normal file
@ -0,0 +1,9 @@
|
||||
let g:ale_c_clang_options= ' -Icore/ -Idrivers/'
|
||||
let g:ale_c_clangd_options= ' -Icore/ -Idrivers/'
|
||||
let g:ale_c_gcc_options= ' -Icore/ -Idrivers/'
|
||||
let g:ale_c_parse_makefile=1
|
||||
let g:ale_c_cppcheck_options=' -Icore/ -Idrivers/'
|
||||
let g:c_clangformat_options='-style=file'
|
||||
let g:ale_echo_msg_format = '[%linter%] %s [%severity%]'
|
||||
let b:ale_linters = {'c': ['gcc', 'clang', 'cppcheck']}
|
||||
let b:ale_fixers = { 'c': ['clang-format']}
|
Loading…
Reference in New Issue
Block a user