[ADD][VIM] Compile flags for C/C++ in ALE

I usually code in C99 and C++17 because that's EPITA's guidelines.

I'll have to check out the new C11/C18 features (notably threading and
type genericity...) someday.
This commit is contained in:
Bruno BELANYI 2019-10-08 13:47:24 +02:00
parent 4ae3eda5f9
commit 558a138f2e

View file

@ -301,6 +301,16 @@ let g:ale_echo_msg_error_str='E'
let g:ale_echo_msg_format='[%linter%][%severity%]%(code):% %s'
" The message displayed in the location list
let g:ale_loclist_msg_format='[%linter%]%(code):% %s'
" C/C++ settings {{{
""""""""""""""""
" More warnings and the usual version in flags for Clang
let g:ale_c_clang_options='-Wall -Wextra -pedantic -std=c99'
let g:ale_cpp_clang_options='-Wall -Wextra -pedantic -std=c++17'
" More warnings and the usual version in flags for GCC
let g:ale_c_gcc_options='-Wall -Wextra -pedantic -std=c99'
let g:ale_cpp_gcc_options='-Wall -Wextra -pedantic -std=c++17'
" }}}
" }}}
" }}}