#include <Tweak.h>
Definition at line 77 of file Tweak.h.
◆ fileEdit()
llvm::Expected< std::pair< Path, Edit > > clang::clangd::Tweak::Effect::fileEdit |
( |
const SourceManager & |
SM, |
|
|
FileID |
FID, |
|
|
tooling::Replacements |
Replacements |
|
) |
| |
|
static |
Path is the absolute, symlink-resolved path for the file pointed by FID in SM.
Edit is generated from Replacements. Fails if cannot figure out absolute path for FID.
Definition at line 93 of file Tweak.cpp.
◆ mainFileEdit()
llvm::Expected< Tweak::Effect > clang::clangd::Tweak::Effect::mainFileEdit |
( |
const SourceManager & |
SM, |
|
|
tooling::Replacements |
Replacements |
|
) |
| |
|
static |
Creates an effect with an Edit for the main file.
Fails if cannot figure out absolute path for main file.
Definition at line 105 of file Tweak.cpp.
◆ showMessage()
static Effect clang::clangd::Tweak::Effect::showMessage |
( |
StringRef |
S | ) |
|
|
inlinestatic |
◆ ApplyEdits
FileEdits clang::clangd::Tweak::Effect::ApplyEdits |
◆ ShowMessage
llvm::Optional<std::string> clang::clangd::Tweak::Effect::ShowMessage |
The documentation for this struct was generated from the following files: