struct TokenBuffer::Expansion
Declaration
struct TokenBuffer::Expansion { /* full declaration omitted */ };
Description
An expansion produced by the preprocessor, includes macro expansions and preprocessor directives. Preprocessor always maps a non-empty range of spelled tokens to a (possibly empty) range of expanded tokens. Here is a few examples of expansions: #pragma once // Expands to an empty range. #define FOO 1 2 3 // Expands an empty range. FOO // Expands to "1 2 3". FIXME(ibiryukov): implement this, currently #include expansions are empty. #include <vector > // Expands to tokens produced by the include.
Declared at: clang/include/clang/Tooling/Syntax/Tokens.h:274
Member Variables
- public llvm::ArrayRef<syntax::Token> Spelled
- public llvm::ArrayRef<syntax::Token> Expanded