Improve error parsing for GCC -fanalyzer output
* compile.el (compilation-error-regexp-alist-alist): Adjust gnu rule * compile-tests.el (compile-tests--test-regexps-data): Add testcase
This commit is contained in:
parent
b7db7eb2c7
commit
08ccce2257
2 changed files with 5 additions and 1 deletions
|
@ -351,7 +351,10 @@ of[ \t]+\"?\\([a-zA-Z]?:?[^\":\n]+\\)\"?:" 3 2 nil (1))
|
|||
;; from Ruby, but it is unclear whether it is actually
|
||||
;; used since the gcc-include rule above seems to cover
|
||||
;; it.
|
||||
(regexp "[ \t]+\\(?:in \\|from\\)")))
|
||||
(regexp "[ \t]+\\(?:in \\|from\\)")
|
||||
;; Skip indentation generated by tools like GCC's
|
||||
;; -fanalyzer.
|
||||
(: (+ space) "|")))
|
||||
|
||||
;; File name group.
|
||||
(group-n 1
|
||||
|
|
|
@ -230,6 +230,7 @@
|
|||
(gnu "foo.c:8:23:information: message" 1 23 8 "foo.c")
|
||||
(gnu "foo.c:8.23-45: Informational: message" 1 (23 . 45) (8 . nil) "foo.c")
|
||||
(gnu "foo.c:8-23: message" 1 nil (8 . 23) "foo.c")
|
||||
(gnu " |foo.c:8: message" 1 nil 8 "foo.c")
|
||||
;; The next one is not in the GNU standards AFAICS.
|
||||
;; Here we seem to interpret it as LINE1-LINE2.COL2.
|
||||
(gnu "foo.c:8-45.3: message" 1 (nil . 3) (8 . 45) "foo.c")
|
||||
|
|
Loading…
Add table
Reference in a new issue