ΒΆtemplate <typename T>
llvm::StringRef getExtendedText(
const T& Node,
tok::TokenKind Next,
clang::ASTContext& Context)
template <typename T>
llvm::StringRef getExtendedText(
const T& Node,
tok::TokenKind Next,
clang::ASTContext& Context)
Description
Returns the source text of the node, extended to include \p Next, if it immediately follows the node. Otherwise, returns the text of just \p Node. For example, given statements S1 and S2 below: then
Declared at: clang/include/clang/Tooling/Transformer/SourceCode.h:83
Templates
- T
Parameters
- const T& Node
- tok::TokenKind Next
- clang::ASTContext& Context