]> git.eshelyaron.com Git - emacs.git/commit
Keep and report "foreign" diangnostics in flymake-cc Flymake backend
authorJoão Távora <joaotavora@gmail.com>
Mon, 30 Aug 2021 15:24:25 +0000 (16:24 +0100)
committerJoão Távora <joaotavora@gmail.com>
Tue, 14 Sep 2021 11:22:15 +0000 (12:22 +0100)
commitaec08e609e6c672c6e85d91b84f45e38019ccc9e
tree28381d2d4f48faaae3d1ce43e35ae9de907880c7
parent7d9d3951c6736d5606828e2727a7319856511ddb
Keep and report "foreign" diangnostics in flymake-cc Flymake backend

This includes diagnostics for .h files that sprang up when checking a
c file.  Those diagnostics are reported to the Flymake infrastructure
which does not (yet) do anything with them.

This includes a change to the test fixtures, too.

* lisp/progmodes/flymake-cc.el (flymake-cc--make-diagnostics): Rework

* test/lisp/progmodes/flymake-resources/another-problematic-file.c:
  New file.

* test/lisp/progmodes/flymake-resources/some-problems.h:
  Add a function declaration..
lisp/progmodes/flymake-cc.el
test/lisp/progmodes/flymake-resources/another-problematic-file.c [new file with mode: 0644]
test/lisp/progmodes/flymake-resources/some-problems.h