<div class="gmail_quote">On Wed, May 2, 2012 at 2:57 PM, William Wilson <span dir="ltr"><<a href="mailto:will@indefiant.com" target="_blank">will@indefiant.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="HOEnZb"><div class="h5">> Newbie question: I'll also have a go at this, but as the token is<br>
> effectively ignored do I use tok::unknown for it's kind or<br>
> tok::annot_typename? Or alternatively, am I barking up the wrong tree<br>
> entirely?<br></div></div></blockquote><div><br></div><div>You should consume the 'typename' token, and try to recover as if the 'typename' keyword were not present, following the logic present later on in that function. As a special case, if that later logic were to find that the tokens after the 'typename' keyword can't be annotated as a type name, you should produce a hard error (even with MS extensions enabled).</div>
<div><br></div><div>(In particular, for 'typename identifier', it will be the identifier you annotate, not the 'typename' keyword.)</div></div>