From 558a138f2e4868fbe921c6a1276d90afb7e77908 Mon Sep 17 00:00:00 2001 From: Bruno BELANYI Date: Tue, 8 Oct 2019 13:47:24 +0200 Subject: [PATCH] [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. --- vim/.vimrc | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/vim/.vimrc b/vim/.vimrc index 041dfe2..a55609d 100644 --- a/vim/.vimrc +++ b/vim/.vimrc @@ -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' +" }}} " }}} " }}}