9#ifndef LLVM_CLANG_TOOLS_EXTRA_CLANG_MOVE_USED_HELPER_DECL_FINDER_H
10#define LLVM_CLANG_TOOLS_EXTRA_CLANG_MOVE_USED_HELPER_DECL_FINDER_H
12#include "clang/ASTMatchers/ASTMatchFinder.h"
13#include "clang/Analysis/CallGraph.h"
14#include "llvm/ADT/DenseSet.h"
66 void print(raw_ostream &
OS)
const;
69 CallGraphNode *getOrInsertNode(
Decl *D);
71 typedef llvm::DenseMap<const Decl *, std::unique_ptr<CallGraphNode>>
82 void run(
const ast_matchers::MatchFinder::MatchResult &Result)
override;
92 std::unique_ptr<HelperDeclRefGraph> RG;
const FunctionDecl * Decl
llvm::raw_string_ostream OS
static const Decl * getOutmostClassOrFunDecl(const Decl *D)
const HelperDeclRefGraph * getGraph() const
void addEdge(const Decl *Caller, const Decl *Callee)
llvm::DenseSet< const CallGraphNode * > getReachableNodes(const Decl *D) const
CallGraphNode * getNode(const Decl *D) const
~HelperDeclRefGraph()=default
HelperDeclRefGraph()=default
===– Representation.cpp - ClangDoc Representation --------—*- C++ -*-===//