#include "ParsedAST.h"
#include "Selection.h"
#include "SourceCode.h"
#include "index/Index.h"
#include "support/Path.h"
#include "clang/Tooling/Core/Replacement.h"
#include "llvm/ADT/StringRef.h"
#include "llvm/Support/Error.h"
#include <optional>
#include <string>
Go to the source code of this file.
|
namespace | clang |
| ===– Representation.cpp - ClangDoc Representation --------—*- C++ -*-===//
|
|
namespace | clang::clangd |
| FIXME: Skip testing on windows temporarily due to the different escaping code mode.
|
|
|
std::vector< std::unique_ptr< Tweak > > | clang::clangd::prepareTweaks (const Tweak::Selection &S, llvm::function_ref< bool(const Tweak &)> Filter, const FeatureModuleSet *Modules) |
| Calls prepare() on all tweaks that satisfy the filter, returning those that can run on the selection.
|
|
llvm::Expected< std::unique_ptr< Tweak > > | clang::clangd::prepareTweak (StringRef ID, const Tweak::Selection &S, const FeatureModuleSet *Modules) |
|
◆ REGISTER_TWEAK
#define REGISTER_TWEAK |
( |
|
Subclass | ) |
|
Value: ::llvm::Registry<::clang::clangd::Tweak>::Add<Subclass> \
TweakRegistrationFor##Subclass(#Subclass, ""); \
const char *Subclass::id() const { return #Subclass; }
Definition at line 129 of file Tweak.h.