Hi
I have added a new format for YCM-Generator which is syntastic-extras.
First , syntastic-extras can't follow the relative path which file flags use, so I add a function to translate the relative path to absolute path.Though I don't think the way is that simple and direct.
I changed c/cxx in fake-toolchain to make them print their current working directory, then combining the working path and relative path to get the absolute path of the file.
Sencond, The format like "-I../include" is handled separately. I also find maybe there is a path format like "/home/user/project/src/../include" so I make a if-else in rta_path function.
Third, the config file of syntastic-extras have different names for c and c++, so I use a wildcard to solve the problem.
Could you give me some advice if you have better way to achieve this?
In fact, I am not good at neither python nor English. : )
Thanks in advance.
ssfdust
Hi I have added a new format for YCM-Generator which is syntastic-extras. First , syntastic-extras can't follow the relative path which file flags use, so I add a function to translate the relative path to absolute path.Though I don't think the way is that simple and direct. I changed c/cxx in fake-toolchain to make them print their current working directory, then combining the working path and relative path to get the absolute path of the file. Sencond, The format like "-I../include" is handled separately. I also find maybe there is a path format like "/home/user/project/src/../include" so I make a if-else in rta_path function.
Third, the config file of syntastic-extras have different names for c and c++, so I use a wildcard to solve the problem. Could you give me some advice if you have better way to achieve this? In fact, I am not good at neither python nor English. : ) Thanks in advance. ssfdust