struct TokenBuffer::Mapping
Declaration
struct TokenBuffer::Mapping { /* full declaration omitted */ };
Description
Describes a mapping between a continuous subrange of spelled tokens and expanded tokens. Represents macro expansions, preprocessor directives, conditionally disabled pp regions, etc. #define FOO 1+2 #define BAR(a) a + 1 FOO // invocation #1, tokens = {'1','+','2'}, macroTokens = {'FOO'}. BAR(1) // invocation #2, tokens = {'a', '+', '1'}, macroTokens = {'BAR', '(', '1', ')'}.
Declared at: clang/include/clang/Tooling/Syntax/Tokens.h:323
Member Variables
- public unsigned int BeginSpelled = 0
- public unsigned int EndSpelled = 0
- public unsigned int BeginExpanded = 0
- public unsigned int EndExpanded = 0
Method Overview
- public std::string str() const
Methods
ΒΆstd::string str() const
std::string str() const
Description
For debugging purposes.
Declared at: clang/include/clang/Tooling/Syntax/Tokens.h:334