Searched defs:DumpVisitor (Results 1 – 2 of 2) sorted by relevance
62 struct DumpVisitor { struct63 unsigned Depth = 0;64 bool PendingNewline = false;66 template<typename NodeT> static constexpr bool wantsNewline(const NodeT *) { in wantsNewline()69 static bool wantsNewline(NodeArray A) { return !A.empty(); } in wantsNewline()70 static constexpr bool wantsNewline(...) { return false; } in wantsNewline()72 template<typename ...Ts> static bool anyWantNewline(Ts ...Vs) { in anyWantNewline()79 void printStr(const char *S) { fprintf(stderr, "%s", S); } in printStr()80 void print(StringView SV) { in print()83 void print(const Node *N) { in print()[all …]
63 struct DumpVisitor { struct64 unsigned Depth = 0;65 bool PendingNewline = false;67 template<typename NodeT> static constexpr bool wantsNewline(const NodeT *) { in wantsNewline()70 static bool wantsNewline(NodeArray A) { return !A.empty(); } in wantsNewline()71 static constexpr bool wantsNewline(...) { return false; } in wantsNewline()73 template<typename ...Ts> static bool anyWantNewline(Ts ...Vs) { in anyWantNewline()80 void printStr(const char *S) { fprintf(stderr, "%s", S); } in printStr()81 void print(StringView SV) { in print()84 void print(const Node *N) { in print()[all …]