summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorw0rp <w0rp@users.noreply.github.com>2017-03-01 15:19:52 +0000
committerGitHub <noreply@github.com>2017-03-01 15:19:52 +0000
commitf578c4a792953bf7ccbff89d60463b04d7bacc87 (patch)
treeaf5ad2898d3853ecd25a5d854247725c6149f92f
parentceeff6c723463ee4d47159d48b44eb49f8222e91 (diff)
parent4fa52fd98a7ba58dbdb1b6045a21a36c89b06526 (diff)
downloadale-f578c4a792953bf7ccbff89d60463b04d7bacc87.zip
Merge pull request #369 from equal-l2/fix-cpp-clang-standard-flag
Use latest C++ standard
-rw-r--r--ale_linters/cpp/clang.vim5
-rw-r--r--doc/ale.txt2
2 files changed, 2 insertions, 5 deletions
diff --git a/ale_linters/cpp/clang.vim b/ale_linters/cpp/clang.vim
index 9c2c73cf..7cd86968 100644
--- a/ale_linters/cpp/clang.vim
+++ b/ale_linters/cpp/clang.vim
@@ -3,10 +3,7 @@
" Set this option to change the Clang options for warnings for CPP.
if !exists('g:ale_cpp_clang_options')
- " let g:ale_cpp_clang_options = '-Wall'
- " let g:ale_cpp_clang_options = '-std=c99 -Wall'
- " c11 compatible
- let g:ale_cpp_clang_options = '-std=c11 -Wall'
+ let g:ale_cpp_clang_options = '-std=c++14 -Wall'
endif
call ale#linter#Define('cpp', {
diff --git a/doc/ale.txt b/doc/ale.txt
index 3f1c7438..6173b36a 100644
--- a/doc/ale.txt
+++ b/doc/ale.txt
@@ -758,7 +758,7 @@ g:ale_c_clang_options *g:ale_c_clang_options*
g:ale_cpp_clang_options *g:ale_cpp_clang_options*
Type: |String|
- Default: `'-std=c11 -Wall'`
+ Default: `'-std=c++14 -Wall'`
This variable can be changed to modify flags given to clang.