summaryrefslogtreecommitdiff
path: root/test/lisp/progmodes/flymake-resources/another-problematic-file.c
diff options
context:
space:
mode:
authorJoão Távora <joaotavora@gmail.com>2021-08-30 16:24:25 +0100
committerJoão Távora <joaotavora@gmail.com>2021-09-14 12:22:15 +0100
commitaec08e609e6c672c6e85d91b84f45e38019ccc9e (patch)
tree28381d2d4f48faaae3d1ce43e35ae9de907880c7 /test/lisp/progmodes/flymake-resources/another-problematic-file.c
parent7d9d3951c6736d5606828e2727a7319856511ddb (diff)
downloademacs-aec08e609e6c672c6e85d91b84f45e38019ccc9e.tar.gz
emacs-aec08e609e6c672c6e85d91b84f45e38019ccc9e.tar.bz2
emacs-aec08e609e6c672c6e85d91b84f45e38019ccc9e.zip
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..
Diffstat (limited to 'test/lisp/progmodes/flymake-resources/another-problematic-file.c')
-rw-r--r--test/lisp/progmodes/flymake-resources/another-problematic-file.c5
1 files changed, 5 insertions, 0 deletions
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;
+}