Reputation: 1424
clang++ version: 2.9 vim version: 7.3
I write my .clang_comple
--std=c++0x
with follow source code test.cc
:
int main () {
return 0;
}
And the clang_complete shows
test.cc|| unknown argument: '--std=c++0x'
in the quickfix list.
I try to add the option with
set g:clang_user_options="--std=c++0x"
the problem is still there.
Tried to trace some code of clang_complete, but still can not solve that problem. All other options can be processed correctly, but not --std=c++0x
Do I miss anything? or made something wrong?
Upvotes: 3
Views: 6512
Reputation: 113
In .vimrc, I usually use the following config:
let g:clang_user_options='-std=c++0x -x c++'
map <F2> :call g:ClangUpdateQuickFix()<CR>
Thus, I can press to compile the *.cpp files and
then use quickfix window to debug errors.
Upvotes: 3