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" 55 void addEdge(
const Decl *Caller,
const Decl *Callee);
56 CallGraphNode *
getNode(
const Decl *
D)
const;
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;
89 static const Decl *getOutmostClassOrFunDecl(
const Decl *
D);
92 std::unique_ptr<HelperDeclRefGraph> RG;
98 #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++ -*-===//
llvm::Optional< llvm::Expected< tooling::AtomicChanges > > Result