clang 20.0.0git
|
An expansion produced by the preprocessor, includes macro expansions and preprocessor directives. More...
#include "clang/Tooling/Syntax/Tokens.h"
Public Attributes | |
llvm::ArrayRef< syntax::Token > | Spelled |
llvm::ArrayRef< syntax::Token > | Expanded |
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.
llvm::ArrayRef<syntax::Token> clang::syntax::TokenBuffer::Expansion::Expanded |
llvm::ArrayRef<syntax::Token> clang::syntax::TokenBuffer::Expansion::Spelled |