Home
last modified time | relevance | path

Searched defs:PreorderVisitor (Results 1 – 1 of 1) sorted by relevance

/external/llvm-project/clang/lib/Tooling/ASTDiff/
DASTDiff.cpp190 struct PreorderVisitor : public RecursiveASTVisitor<PreorderVisitor> { struct
191 int Id = 0, Depth = 0;
192 NodeId Parent;
193 SyntaxTree::Impl &Tree;
195 PreorderVisitor(SyntaxTree::Impl &Tree) : Tree(Tree) {} in PreorderVisitor() argument
197 template <class T> std::tuple<NodeId, NodeId> PreTraverse(T *ASTNode) { in PreTraverse()
215 void PostTraverse(std::tuple<NodeId, NodeId> State) { in PostTraverse()
232 bool TraverseDecl(Decl *D) { in TraverseDecl()
240 bool TraverseStmt(Stmt *S) { in TraverseStmt()
250 bool TraverseType(QualType T) { return true; } in TraverseType()
[all …]