Represents a single token from the preprocessor.
Tokens are effectively segments of source code. Source code is first parsed into tokens before being converted into the AST and Cursors.
Tokens are obtained from parsed TranslationUnit instances. You currently can't create tokens manually.
The Cursor this Token corresponds to.
The SourceRange this Token occupies.
Obtain the TokenKind of the current token.
The SourceLocation this Token occurs at.
The spelling of this token.
See Implementation
Represents a single token from the preprocessor.
Tokens are effectively segments of source code. Source code is first parsed into tokens before being converted into the AST and Cursors.
Tokens are obtained from parsed TranslationUnit instances. You currently can't create tokens manually.