请教一个关于Quickfix的问题.
以下是编译器错误消息的示例,STATEMENT泛指一行语句:
IBM1211I W 426.0 Source with length 2 is longer than the target VAR.
STATEMENT
IBM1211I W 522.0 Source with length 2 is longer than the target VAR.
STATEMENT
Quickfix需要用到的errorformat这样定义的:
errorformat=%AIBM%nI\ %t\ %l.0\ %m,%Z%m
Quickfix也能识别这个错误文件和格式,显示成这样:
|426 warning 1211| Source with length 2 is longer than the target VAR.
STATEMENT
|522 warning 1211| Source with length 2 is longer than the target VAR.
STATEMENT
但是我在这两行上按回车,不能跳转到426或者522行上面去,只能用:cn,:cp命令来跳转,如果错误多就很麻烦了,如何能解决呢?
还有就是这个编译器有点傻,会展开SQL语句,这样造成编译结果里的行号和实际代码行号不匹配,但是通过语句能准确定位,Quickfix是否有查找内容定位的功能?
不知道我的问题描述得是否足够清楚,多谢先!
这问题解决了,必须有%f参数,表示源文件名
errorformat=%A%f\ IBM%nI\ %t\ %l.0\ %m,%Z%m