[cfe-dev] Missing diagnostic highlighting on macro "expanded from" note

Chandler Carruth chandlerc at google.com
Sun Sep 4 14:01:00 PDT 2011


I think this is an artifact of how they're implemented. I actually have a
fix in the works for this. Care to file a PR and assign it to me?
On Sep 4, 2011 1:56 PM, "David Blaikie" <dblaikie at gmail.com> wrote:
> Is this by design? (the second diagnostic, the note about the first, is
not
> highlighted - not bold nor with black (grey) "note:", etc)
>
> /tmp/webcompile/_18466_0.cc:3:14: error: use of undeclared identifier
> 'fob'; did you mean 'foo'?int main() { call }
> ^/tmp/webcompile/_18466_0.cc:1:14: note: instantiated from:
> #define call fob(); ^/tmp/webcompile/_18466_0.cc:2:6:
> note: 'foo' declared herevoid foo(); ^1 error generated.
>
>
> source:
>
> #define call fob();
> void foo();
> int main() { call }
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20110904/8acd0b72/attachment.html>


More information about the cfe-dev mailing list