ΒΆclang::CharSourceRange maybeExtendRange(
    clang::CharSourceRange Range,
    tok::TokenKind Terminator,
    clang::ASTContext& Context)

Description

Extends \p Range to include the token \p Terminator, if it immediately follows the end of the range. Otherwise, returns \p Range unchanged.

Declared at: clang/include/clang/Tooling/Transformer/SourceCode.h:25

Parameters

clang::CharSourceRange Range
tok::TokenKind Terminator
clang::ASTContext& Context