9#ifndef LLVM_CLANG_TOOLS_EXTRA_CLANGD_REFACTOR_INSERTIONPOINT_H
10#define LLVM_CLANG_TOOLS_EXTRA_CLANGD_REFACTOR_INSERTIONPOINT_H
12#include "clang/AST/DeclCXX.h"
13#include "clang/Basic/Specifiers.h"
14#include "clang/Tooling/Core/Replacement.h"
34 llvm::ArrayRef<Anchor> Anchors);
39llvm::Expected<tooling::Replacement>
insertDecl(llvm::StringRef
Code,
40 const DeclContext &Ctx,
41 llvm::ArrayRef<Anchor> Anchors);
45 std::vector<Anchor> Anchors,
46 AccessSpecifier Protection);
50llvm::Expected<tooling::Replacement>
insertDecl(llvm::StringRef
Code,
51 const CXXRecordDecl &InClass,
52 std::vector<Anchor> Anchors,
53 AccessSpecifier Protection);
const FunctionDecl * Decl
SourceLocation insertionPoint(const DeclContext &DC, llvm::ArrayRef< Anchor > Anchors)
llvm::Expected< tooling::Replacement > insertDecl(llvm::StringRef Code, const DeclContext &DC, llvm::ArrayRef< Anchor > Anchors)
===– Representation.cpp - ClangDoc Representation --------—*- C++ -*-===//
enum clang::clangd::Anchor::Dir Direction
std::function< bool(const Decl *)> Match