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

前端 未结 5 758
抹茶落季
抹茶落季 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:32

    If your using YouCompleteMe in addition to Syntastic you need to change your .ycm_extra_conf.py file. Sepcifically change '-Wc++98-compat' to '-Wnoc++98-compat'.

    I didn't have to change the Syntastic settings myself, although that might be because I'm using a compile_commands.json file.

    via here.

提交回复
热议问题