10 #ifndef LLVM_CLANG_TOOLS_EXTRA_CLANG_MOVE_USED_HELPER_DECL_FINDER_H 11 #define LLVM_CLANG_TOOLS_EXTRA_CLANG_MOVE_USED_HELPER_DECL_FINDER_H 13 #include "clang/ASTMatchers/ASTMatchFinder.h" 14 #include "clang/Analysis/CallGraph.h" 15 #include "llvm/ADT/DenseSet.h" 56 void addEdge(
const Decl *Caller,
const Decl *Callee);
57 CallGraphNode *
getNode(
const Decl *D)
const;
67 void print(raw_ostream &OS)
const;
70 CallGraphNode *getOrInsertNode(Decl *D);
72 typedef llvm::DenseMap<const Decl *, std::unique_ptr<CallGraphNode>>
83 void run(
const ast_matchers::MatchFinder::MatchResult &Result)
override;
90 static const Decl *getOutmostClassOrFunDecl(
const Decl *D);
93 std::unique_ptr<HelperDeclRefGraph> RG;
99 #endif // LLVM_CLANG_TOOLS_EXTRA_CLANG_MOVE_USED_HELPER_DECL_FINDER_H
HelperDeclRefGraph()=default
llvm::DenseSet< const CallGraphNode * > getReachableNodes(const Decl *D) const
void addEdge(const Decl *Caller, const Decl *Callee)
const HelperDeclRefGraph * getGraph() const
~HelperDeclRefGraph()=default
CallGraphNode * getNode(const Decl *D) const
===– Representation.cpp - ClangDoc Representation --------—*- C++ -*-===//