[CLion/C++] Errors and warnings from included files
Opened this issue · 0 comments
In neovim, Comrade adds errors and warnings from included files to the location list. These do not appear in the buffer in CLion. They make navigation between errors quite frustrating, because it pollutes the buffer and location list and :lnext
can move me out of the current file. Errors from included files are never something I care about: either they are errors in my code, and I will see them when I build or when I edit the erroneous file; or they are warnings from code that I do not control which I cannot do anything about.
Additionally, the file paths in the errors from included files include control characters, so they are not usable. For example, a location list entry:
^[[0m^[[1mbazel-out/k8-opt/bin/external/<censored>/_virtual_includes/<censored>.H|43 col 16 warning| ^[[0moverridden virtual function is here^[[0m
Is there a way Comrade can filter out errors from external files? Failing that, can the presence of control characters be fixed?