Commit 67c3a3af authored by João Távora's avatar João Távora
Browse files

Avoid occasional confusion of Flymake C/C++ backend

The regexp would sometimes match non-errors and create a diagnostic
with nil severity, which would have consequences for the Flymake
engine (these should eventually be addressed, too).

* lisp/progmodes/flymake-cc.el (flymake-cc--make-diagnostics):
Tighten regexp.
parent 8cac2bf0
Pipeline #1067 failed with stage
in 50 minutes and 40 seconds
...@@ -58,7 +58,9 @@ SOURCE." ...@@ -58,7 +58,9 @@ SOURCE."
(cl-loop (cl-loop
while while
(search-forward-regexp (search-forward-regexp
"^\\(In file included from \\)?<stdin>:\\([0-9]+\\)\\(?::\\([0-9]+\\)\\)?:\n?\\(.*\\): \\(.*\\)$" (concat
"^\\(In file included from \\)?<stdin>:\\([0-9]+\\)\\(?::\\([0-9]+\\)\\)"
"?:[\n ]?\\(error\\|warning\\|note\\): \\(.*\\)$")
nil t) nil t)
for msg = (match-string 5) for msg = (match-string 5)
for (beg . end) = (flymake-diag-region for (beg . end) = (flymake-diag-region
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment