From e08d20069594f1b7832a35c42dc4ed0c5e86195e Mon Sep 17 00:00:00 2001 From: DanielSchuette Date: Mon, 6 Dec 2021 22:49:35 +0100 Subject: [PATCH] fix CC configuration to compile with std=c++20 --- vim-config/configs.vim | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/vim-config/configs.vim b/vim-config/configs.vim index 999e581c..320e5620 100644 --- a/vim-config/configs.vim +++ b/vim-config/configs.vim @@ -506,11 +506,13 @@ let g:ale_linters = { \ 'go': ['go', 'golint', 'errcheck'], \ 'vim': ['vint'], \ 'elm': ['elm_ls'], -\ 'cpp': ['clangtidy', 'gcc'], +\ 'cpp': ['clangtidy', 'g++'], \ 'haskell': ['stack-build', 'hlint', 'stack-ghc', 'hls', 'hie'], \ 'lhaskell': ['stack-build', 'hlint', 'stack-ghc', 'hls', 'hie'] \} + +let g:ale_cpp_cc_options = ' -Wall -Wextra -Wpedantic -Weffc++ -std=c++20' let g:ale_cpp_gcc_options = '-Wall -Wextra -Wpedantic -Weffc++ -std=c++20' let g:ale_cpp_clang_options = '-Wall -Wextra -std=c++20 -x c++' let g:ale_cpp_clangtidy_options = '-Wall -Wextra -std=c++20 -x c++'