how to add c++11 support to syntastic vim plugin?

前端 未结 5 730
抹茶落季
抹茶落季 2020-12-23 02:18

I am using syntastic in my c++11 project. When I am editing in vim, and save (:w) the syntastic plugin gives me errors on every initializer list {} and for each loops which

5条回答
  •  隐瞒了意图╮
    2020-12-23 02:39

    It has project specific options, like the .clang_complete solution

    You can set path to files g:syntastic_cpp_config_file and g:syntastic_c_config_file. The default is .syntastic_cpp_config for C++. Put file in root of the project and compiler options inside it (one for each line)

    for details

提交回复
热议问题