Missing diagnostic highlighting on macro "expanded from" note

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 here
void foo();
     ^
1 error generated.

source:
#define call fob();
void foo();
int main() { call }

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?

I think this is an artifact of how they’re implemented.

Yeah - I figured they might be implemented as “fake” notes somehow.

I actually have a fix in the works for this. Care to file a PR and assign it to me?

I opened the bug: http://llvm.org/bugs/show_bug.cgi?id=10859 though I couldn’t seem to assign it to chandlerc@google.com - I guess you can assign it to yourself.

  • David