Vim errorformat:隐藏上面带有三个'*'的消息

时间:2017-06-22 22:44:14

标签: vim makefile

我正在使用make进行编译,有时使用gcc或clang。 我有一个函数,可以根据编译器更改errorformat。 但我仍然收到与make相关的警告,我想忽略它们,或者至少将它们降级为不警告:

make[2]: *** [/buildpath/build.make:519: /path/test.cxx.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:36062: /path] Error 2
make: *** [Makefile:163: all] Error 2

我的错误格式为gcc:

      \ '%-G%f:%s:,' .
      \ '%-G%f:%l: %#error: %#(Each undeclared identifier is reported only%.%#,' .
      \ '%-G%f:%l: %#error: %#for each function it appears%.%#,' .
      \ '%-GIn file included%.%#,' .
      \ '%-G %#from %f:%l\,,' .
      \ '%f:%l:%c: %trror: %m,' .
      \ '%f:%l:%c: %tarning: %m,' .
      \ '%I%f:%l:%c: note: %m,' .
      \ '%f:%l:%c: %m,' .
      \ '%f:%l: %trror: %m,' .
      \ '%f:%l: %tarning: %m,'.
      \ '%I%f:%l: note: %m,'.
      \ '%f:%l: %m'

vim运行时,我得到的错误与gcc正确相关,但仍然是这些make警告:

make[2]: *** [/buildpath/build.make:519:/build.make|519 warning| /path/test.cxx.o] Error 1
make[1]: *** [CMakeFiles/Makefile2|36062 warning| /path] Error 2
make: *** [Makefile|163 warning| all] Error 2

我已尝试-G %#%#%#来匹配三个星号(%#:help errorformat的星号。但我收到一个错误说:

Neomake error in: function <SNR>166_nvim_exit_handler[6]..<SNR>166_exit_handler[27]..<SNR>166_RegisterJobOutput[16]..<SNR>166_ProcessJobOutput, line 55
Neomake: [2.2:2] Error during output processing for build: Vim(caddexpr):E871: (NFA regexp) Can't have a multi follow a multi !.

0 个答案:

没有答案