Merge pull request #369 from equal-l2/fix-cpp-clang-standard-flag
Use latest C++ standard
This commit is contained in:
commit
f578c4a792
@ -3,10 +3,7 @@
|
|||||||
|
|
||||||
" Set this option to change the Clang options for warnings for CPP.
|
" Set this option to change the Clang options for warnings for CPP.
|
||||||
if !exists('g:ale_cpp_clang_options')
|
if !exists('g:ale_cpp_clang_options')
|
||||||
" let g:ale_cpp_clang_options = '-Wall'
|
let g:ale_cpp_clang_options = '-std=c++14 -Wall'
|
||||||
" let g:ale_cpp_clang_options = '-std=c99 -Wall'
|
|
||||||
" c11 compatible
|
|
||||||
let g:ale_cpp_clang_options = '-std=c11 -Wall'
|
|
||||||
endif
|
endif
|
||||||
|
|
||||||
call ale#linter#Define('cpp', {
|
call ale#linter#Define('cpp', {
|
||||||
|
@ -758,7 +758,7 @@ g:ale_c_clang_options *g:ale_c_clang_options*
|
|||||||
g:ale_cpp_clang_options *g:ale_cpp_clang_options*
|
g:ale_cpp_clang_options *g:ale_cpp_clang_options*
|
||||||
|
|
||||||
Type: |String|
|
Type: |String|
|
||||||
Default: `'-std=c11 -Wall'`
|
Default: `'-std=c++14 -Wall'`
|
||||||
|
|
||||||
This variable can be changed to modify flags given to clang.
|
This variable can be changed to modify flags given to clang.
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user