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.
To keep the tokens efficient they are pointers into the range of tokens
derived from clang. This mean that the lifetime of a token is coupled to the
range.
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.
To keep the tokens efficient they are pointers into the range of tokens derived from clang. This mean that the lifetime of a token is coupled to the range.