]> git.eshelyaron.com Git - emacs.git/commit
Add proper Flymake support to cc-mode.el
authorJoão Távora <joaotavora@gmail.com>
Mon, 4 Jun 2018 00:40:50 +0000 (01:40 +0100)
committerJoão Távora <joaotavora@gmail.com>
Mon, 4 Jun 2018 00:47:02 +0000 (01:47 +0100)
commit9a0b20d5b33e3e3282b597c3d0c836396071a547
treec6c9a414c46b0e438163b85d37f846e98e44def6
parentfb8d2e064dff0dbbe71809b2ee4184fe44805258
Add proper Flymake support to cc-mode.el

Except for the important detail that it doesn't make temporary files,
the new flymake-cc backend doesn't yet behave much differently from
the old flymake-proc-legacy-flymake, i.e. it still needs a special
`check-syntax' Makefile target to provide the compiler and compilation
flags.  However, the new infrastructure created should allow less
intrusive cleverer flag guessers (yet to be written) to replace that
mechanism.

* lisp/progmodes/cc-mode.el (c-mode, c++-mode): Add to
flymake-diagnostic-functions.

* lisp/progmodes/flymake-cc.el: New file.
lisp/progmodes/cc-mode.el
lisp/progmodes/flymake-cc.el [new file with mode: 0644]