clang-tools
9.0.0
|
#include "ClangdUnit.h"
#include "Protocol.h"
#include "Selection.h"
#include "clang/Tooling/Core/Replacement.h"
#include "llvm/ADT/Optional.h"
#include "llvm/ADT/StringRef.h"
Go to the source code of this file.
Classes | |
class | clang::clangd::Tweak |
An interface base for small context-sensitive refactoring actions. More... | |
struct | clang::clangd::Tweak::Selection |
Input to prepare and apply tweaks. More... | |
struct | clang::clangd::Tweak::Effect |
Namespaces | |
clang | |
===– Representation.cpp - ClangDoc Representation --------—*- C++ -*-===// | |
clang::clangd | |
Macros | |
#define | REGISTER_TWEAK(Subclass) |
Functions | |
std::vector< std::unique_ptr< Tweak > > | clang::clangd::prepareTweaks (const Tweak::Selection &S, llvm::function_ref< bool(const Tweak &)> Filter) |
Calls prepare() on all tweaks that satisfy the filter, returning those that can run on the selection. More... | |
llvm::Expected< std::unique_ptr< Tweak > > | clang::clangd::prepareTweak (StringRef ID, const Tweak::Selection &S) |