vim-clang icon indicating copy to clipboard operation
vim-clang copied to clipboard

can't work with -DTEST()="hello"

Open johnzeng opened this issue 7 years ago • 2 comments

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' -'

johnzeng avatar Apr 21 '17 12:04 johnzeng

-D 'TEST(A)="hello"'

justmao945 avatar Apr 21 '17 16:04 justmao945

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?

johnzeng avatar Apr 22 '17 01:04 johnzeng