GNU bug report logs -
#25987
25.2; support gcc fixit notes
Previous Next
Full log
View this message in rfc822 format
> From: David Malcolm <dmalcolm <at> redhat.com>
> Cc: 25987 <at> debbugs.gnu.org
> Date: Mon, 12 Oct 2020 18:27:29 -0400
>
> I like how -fdiagnostics-parseable-fixits adds extra lines of output,
> with a prefix that's ought to be easy to detect.
Yes, I think that's preferable, indeed.
> BTW, does Emacs set anything in the environment that GCC could detect?
Yes, Emacs sets INSIDE_EMACS when it runs a sub-process.
> Does Emacs have an automated test suite that could test this feature?
Yes, see the tests in the test/ subdirectory of the Emacs tree.
> Another complication to consider: the locations in a fix-it hint refer
> to the original source file, before any changes are made. If the user
> interface supports the user e.g. clicking on fix-it hints and
> selectively apply them one by one, then after each fix-it hint is
> applied, all locations after that point potentially need to be "fixed
> up" somehow, to reflect the changes to the buffer.
That could be handled automatically by defining a marker at each
hint's location, then they will move as text is edited.
This bug report was last modified 4 years and 248 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.