clang-tools  9.0.0
Public Member Functions | Public Attributes | List of all members
clang::clangd::Tweak::Selection Struct Reference

Input to prepare and apply tweaks. More...

#include <Tweak.h>

Collaboration diagram for clang::clangd::Tweak::Selection:
[legend]

Public Member Functions

 Selection (ParsedAST &AST, unsigned RangeBegin, unsigned RangeEnd)
 

Public Attributes

llvm::StringRef Code
 The text of the active document. More...
 
ParsedASTAST
 Parsed AST of the active file. More...
 
SourceLocation Cursor
 A location of the cursor in the editor. More...
 
unsigned SelectionBegin
 The begin offset of the selection. More...
 
unsigned SelectionEnd
 The end offset of the selection. More...
 
SelectionTree ASTSelection
 The AST nodes that were selected. More...
 

Detailed Description

Input to prepare and apply tweaks.

Definition at line 42 of file Tweak.h.

Constructor & Destructor Documentation

◆ Selection()

clang::clangd::Tweak::Selection::Selection ( ParsedAST AST,
unsigned  RangeBegin,
unsigned  RangeEnd 
)

Definition at line 41 of file Tweak.cpp.

Member Data Documentation

◆ AST

ParsedAST& clang::clangd::Tweak::Selection::AST

Parsed AST of the active file.

Definition at line 47 of file Tweak.h.

◆ ASTSelection

SelectionTree clang::clangd::Tweak::Selection::ASTSelection

The AST nodes that were selected.

Definition at line 56 of file Tweak.h.

◆ Code

llvm::StringRef clang::clangd::Tweak::Selection::Code

The text of the active document.

Definition at line 45 of file Tweak.h.

◆ Cursor

SourceLocation clang::clangd::Tweak::Selection::Cursor

A location of the cursor in the editor.

Definition at line 50 of file Tweak.h.

◆ SelectionBegin

unsigned clang::clangd::Tweak::Selection::SelectionBegin

The begin offset of the selection.

Definition at line 52 of file Tweak.h.

◆ SelectionEnd

unsigned clang::clangd::Tweak::Selection::SelectionEnd

The end offset of the selection.

Definition at line 54 of file Tweak.h.


The documentation for this struct was generated from the following files: