]> 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>
Mon, 13 Sep 2021 17:40:58 +0000 (18:40 +0100)
commitdcdbb7486b08cc594c9e2e45961942a3f3ef80c8
tree64495f5fd8dbd9b21366aa83d7af6d6b9d212740
parentac24adc376893434e08bdb84f4b3ceb2cf5dfd6f
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