ΒΆOptional<clang::tooling::SelectedASTNode>
findSelectedASTNodes(
    const clang::ASTContext& Context,
    clang::SourceRange SelectionRange)

Description

Traverses the given ASTContext and creates a tree of selected AST nodes.

Declared at: clang/include/clang/Tooling/Refactoring/ASTSelection.h:70

Parameters

const clang::ASTContext& Context
clang::SourceRange SelectionRange

Returns

None if no nodes are selected in the AST, or a selected AST node that corresponds to the TranslationUnitDecl otherwise.