15 #ifndef LLVM_CLANG_AST_STMTGRAPHTRAITS_H
16 #define LLVM_CLANG_AST_STMTGRAPHTRAITS_H
19 #include "llvm/ADT/DepthFirstIterator.h"
20 #include "llvm/ADT/GraphTraits.h"
27 template <>
struct GraphTraits<clang::
Stmt*> {
35 if (N)
return N->child_begin();
40 if (N)
return N->child_end();
54 template <>
struct GraphTraits<const clang::
Stmt*> {
62 if (N)
return N->child_begin();
67 if (N)
return N->child_end();
static NodeType * getEntryNode(const clang::Stmt *S)
static ChildIteratorType child_begin(NodeType *N)
llvm::df_iterator< const clang::Stmt * > nodes_iterator
static ChildIteratorType child_begin(NodeType *N)
static nodes_iterator nodes_end(clang::Stmt *S)
static nodes_iterator nodes_begin(const clang::Stmt *S)
static nodes_iterator nodes_end(const clang::Stmt *S)
static ChildIteratorType child_end(NodeType *N)
static NodeType * getEntryNode(clang::Stmt *S)
clang::Stmt::const_child_iterator ChildIteratorType
llvm::df_iterator< clang::Stmt * > nodes_iterator
clang::Stmt::child_iterator ChildIteratorType
const clang::Stmt NodeType
static ChildIteratorType child_end(NodeType *N)
static nodes_iterator nodes_begin(clang::Stmt *S)