Forcing c++ lang in clang options for ycm

This commit is contained in:
Strahinja Val Markovic 2012-08-05 12:55:03 -07:00
parent feef67c50a
commit df260ed2a8

View File

@ -8,6 +8,11 @@ flags = [
'-Wno-long-long',
'-Wno-variadic-macros',
'-DNDEBUG',
# THIS IS IMPORTANT! Without a "-std=<something>" flag, clang won't know which
# language to use when compiling headers. So it will guess. Badly. So C++
# headers will be compiled as C headers. You don't want that so ALWAYS specify
# a "-std=<something>"
'-std=c++11',
'-isystem',
'../BoostParts',
'-isystem',