clang-tools  12.0.0git
Public Attributes | List of all members
clang::clangd::RenameOptions Struct Reference

#include <Rename.h>

Collaboration diagram for clang::clangd::RenameOptions:
Collaboration graph
[legend]

Public Attributes

bool AllowCrossFile = false
 If true, enable cross-file rename; otherwise, only allows to rename a symbol that's only used in the current file. More...
 
size_t LimitFiles = 50
 The maximum number of affected files (0 means no limit), only meaningful when AllowCrossFile = true. More...
 
bool WantFormat = false
 If true, format the rename edits, only meaningful in ClangdServer layer. More...
 

Detailed Description

Definition at line 29 of file Rename.h.

Member Data Documentation

◆ AllowCrossFile

bool clang::clangd::RenameOptions::AllowCrossFile = false

If true, enable cross-file rename; otherwise, only allows to rename a symbol that's only used in the current file.

Definition at line 32 of file Rename.h.

◆ LimitFiles

size_t clang::clangd::RenameOptions::LimitFiles = 50

The maximum number of affected files (0 means no limit), only meaningful when AllowCrossFile = true.

If the actual number exceeds the limit, rename is forbidden.

Definition at line 36 of file Rename.h.

◆ WantFormat

bool clang::clangd::RenameOptions::WantFormat = false

If true, format the rename edits, only meaningful in ClangdServer layer.

Definition at line 38 of file Rename.h.


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