summaryrefslogtreecommitdiff
path: root/lisp/progmodes/compile.el
diff options
context:
space:
mode:
authorPhilip Kaludercic <philipk@posteo.net>2021-11-16 00:05:11 +0100
committerPhilip Kaludercic <philipk@posteo.net>2021-11-21 19:00:40 +0100
commit08ccce2257d81ae4e8a579c374f6a8e886992385 (patch)
tree3a41d6964aa25196f8e22ccb24727be4f37fd334 /lisp/progmodes/compile.el
parentb7db7eb2c7b8ac1bddf4afa9ccf9b30ebeb0224e (diff)
downloademacs-08ccce2257d81ae4e8a579c374f6a8e886992385.tar.gz
emacs-08ccce2257d81ae4e8a579c374f6a8e886992385.tar.bz2
emacs-08ccce2257d81ae4e8a579c374f6a8e886992385.zip
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
Diffstat (limited to 'lisp/progmodes/compile.el')
-rw-r--r--lisp/progmodes/compile.el5
1 files changed, 4 insertions, 1 deletions
diff --git a/lisp/progmodes/compile.el b/lisp/progmodes/compile.el
index 14da5880203..c0e16ce3515 100644
--- a/lisp/progmodes/compile.el
+++ b/lisp/progmodes/compile.el
@@ -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