Stream: t-compiler/wg-diagnostics

Topic: "exactly a macro invocation" check


davidtwco (Jul 20 2019 at 11:09, on Zulip):

@Esteban Küber do you have an example of where a check like the one you mentioned here exists? I've not been able to find one.

davidtwco (Jul 25 2019 at 14:01, on Zulip):

@Esteban Küber just in case you missed this

Esteban Küber (Jul 25 2019 at 17:58, on Zulip):

I'll look around, but they are usually looking at the span for a macro backtrace

Esteban Küber (Jul 25 2019 at 17:59, on Zulip):

In this case you _won't_ have one because the span is for the invocation, not something coming from inside the macro

Esteban Küber (Jul 25 2019 at 17:59, on Zulip):

There are a couple of places that do a check on the snippet for .starts_with("#[")

Esteban Küber (Jul 25 2019 at 17:59, on Zulip):

which is hacky as hell

davidtwco (Jul 25 2019 at 18:18, on Zulip):

@Esteban Küber yeah, that’s what I was trying to avoid doing.

davidtwco (Jul 25 2019 at 18:18, on Zulip):

I thought you might have meant there was a function for detecting the invocation span case.

Last update: Nov 15 2019 at 11:10UTC