Author: timshen Date: Thu Aug 4 18:03:44 2016 New Revision: 277783 URL: http://llvm.org/viewvc/llvm-project?rev=277783&view=rev Log: [ADT] Migrate DepthFirstIterator to use NodeRef
Summary: The corresponding LLVM change is D23146. Reviewers: dblaikie, chandlerc Subscribers: cfe-commits Differential Revision: https://reviews.llvm.org/D23147 Modified: cfe/trunk/include/clang/AST/StmtGraphTraits.h cfe/trunk/include/clang/Analysis/Analyses/Dominators.h cfe/trunk/include/clang/StaticAnalyzer/Core/PathSensitive/ExplodedGraph.h Modified: cfe/trunk/include/clang/AST/StmtGraphTraits.h URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/AST/StmtGraphTraits.h?rev=277783&r1=277782&r2=277783&view=diff ============================================================================== --- cfe/trunk/include/clang/AST/StmtGraphTraits.h (original) +++ cfe/trunk/include/clang/AST/StmtGraphTraits.h Thu Aug 4 18:03:44 2016 @@ -26,6 +26,7 @@ namespace llvm { template <> struct GraphTraits<clang::Stmt*> { typedef clang::Stmt NodeType; + typedef clang::Stmt * NodeRef; typedef clang::Stmt::child_iterator ChildIteratorType; typedef llvm::df_iterator<clang::Stmt*> nodes_iterator; @@ -53,6 +54,7 @@ template <> struct GraphTraits<clang::St template <> struct GraphTraits<const clang::Stmt*> { typedef const clang::Stmt NodeType; + typedef const clang::Stmt * NodeRef; typedef clang::Stmt::const_child_iterator ChildIteratorType; typedef llvm::df_iterator<const clang::Stmt*> nodes_iterator; Modified: cfe/trunk/include/clang/Analysis/Analyses/Dominators.h URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Analysis/Analyses/Dominators.h?rev=277783&r1=277782&r2=277783&view=diff ============================================================================== --- cfe/trunk/include/clang/Analysis/Analyses/Dominators.h (original) +++ cfe/trunk/include/clang/Analysis/Analyses/Dominators.h Thu Aug 4 18:03:44 2016 @@ -168,6 +168,7 @@ private: namespace llvm { template <> struct GraphTraits< ::clang::DomTreeNode* > { typedef ::clang::DomTreeNode NodeType; + typedef ::clang::DomTreeNode *NodeRef; typedef NodeType::iterator ChildIteratorType; static NodeType *getEntryNode(NodeType *N) { Modified: cfe/trunk/include/clang/StaticAnalyzer/Core/PathSensitive/ExplodedGraph.h URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/StaticAnalyzer/Core/PathSensitive/ExplodedGraph.h?rev=277783&r1=277782&r2=277783&view=diff ============================================================================== --- cfe/trunk/include/clang/StaticAnalyzer/Core/PathSensitive/ExplodedGraph.h (original) +++ cfe/trunk/include/clang/StaticAnalyzer/Core/PathSensitive/ExplodedGraph.h Thu Aug 4 18:03:44 2016 @@ -451,6 +451,7 @@ public: namespace llvm { template<> struct GraphTraits<clang::ento::ExplodedNode*> { typedef clang::ento::ExplodedNode NodeType; + typedef clang::ento::ExplodedNode *NodeRef; typedef NodeType::succ_iterator ChildIteratorType; typedef llvm::df_iterator<NodeType*> nodes_iterator; @@ -477,6 +478,7 @@ namespace llvm { template<> struct GraphTraits<const clang::ento::ExplodedNode*> { typedef const clang::ento::ExplodedNode NodeType; + typedef const clang::ento::ExplodedNode *NodeRef; typedef NodeType::const_succ_iterator ChildIteratorType; typedef llvm::df_iterator<NodeType*> nodes_iterator; _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits