[cfe-commits] r65570 - in /cfe/trunk: include/clang/Analysis/ include/clang/Basic/ include/clang/Driver/ include/clang/Parse/ lib/Analysis/ lib/Basic/ lib/Driver/ lib/Parse/ lib/Rewrite/ lib/Sema/ test/Parser/ test/SemaTemplate/
Gabor Greif
gabor at mac.com
Thu Feb 26 18:14:31 PST 2009
> In this future, we could consider hooking this mechanism up to the
> rewriter to actually try to fix these problems during compilation (or,
> after a compilation whose only errors have fixes). For now, however, I
> suggest that we use these code modification hints whenever we can, so
> that we get better diagnostics now and will have better coverage when
> we find better ways to use this information.
I had a very similar idea back in good old CodeWarrior days:
The IDE could have added a small AppleScript to the diagnostic
object, and a double-click on it would have run it, with the effect,
that obvious syntax errors would have been almost auto-correcting
(in a permanent way).
Doing it in the Rewriter is not that nice, because it would happen
at every compilation. Or is it thought to operate on the editor buffer?
This has some taste of the DWIM (do what I mean) compilation of
(west coast) Lisp back in the eighties...
Anyway, it is awesome to see this happening!
Cheers,
Gabor
More information about the cfe-commits
mailing list