vim-clang
vim-clang copied to clipboard
can't work with -DTEST()="hello"
set up a .clang
file with the following content:
-D TEST(A)="hello"
and then you will get error because you didn't escape ()
in the command....
bash: -c: line 0: syntax error near unexpected token `('
bash: -c: line 0: `clang -fsyntax-only -Xclang -code-completion-macros -Xclang -code-completion-at=-:12:7 -D TEST(A)=B -x c++ -I '/Users/johnzeng/learning/cpp' -I '/usr/include' -'
-D 'TEST(A)="hello"'
I don't think this is a good enough solution for a plugin... but ... this plugin is just passing parameters to a shell so I think there is no such thing called 'perfect solution' so I give up. Do you mind to update the readme file to let other people knows this inconvenient?