From aec08e609e6c672c6e85d91b84f45e38019ccc9e Mon Sep 17 00:00:00 2001 From: João Távora Date: Mon, 30 Aug 2021 16:24:25 +0100 Subject: 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.. --- test/lisp/progmodes/flymake-resources/another-problematic-file.c | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 test/lisp/progmodes/flymake-resources/another-problematic-file.c (limited to 'test/lisp/progmodes/flymake-resources/another-problematic-file.c') diff --git a/test/lisp/progmodes/flymake-resources/another-problematic-file.c b/test/lisp/progmodes/flymake-resources/another-problematic-file.c new file mode 100644 index 00000000000..03eacdd8011 --- /dev/null +++ b/test/lisp/progmodes/flymake-resources/another-problematic-file.c @@ -0,0 +1,5 @@ +#include "some-problems.h" + +int frob(char* freb) { + return 42; +} -- cgit v1.2.3