Hi,
Currently, I’m debugging clang, and I wonder how can I print the type of a token?
I know we have something like Tok.is(tok::l_brace)
, but what if I want to know exactly what type it is? Do we have something like Tok.dump()
or Tok.getKind().dump()
? Thanks a lot!
IIRC, Token::getName()
is what I always use.
1 Like
Oh, thank you that works. I’m surprised why I didn’t discover this obvious API…