]> granicus.if.org Git - clang/commit
Implement the TreeStructure interface through the TextNodeDumper
authorStephen Kelly <steveire@gmail.com>
Tue, 8 Jan 2019 22:32:48 +0000 (22:32 +0000)
committerStephen Kelly <steveire@gmail.com>
Tue, 8 Jan 2019 22:32:48 +0000 (22:32 +0000)
commit63beca62d94c0442c16aeb7d176ae93f5c90017f
tree9259ba3fd777d15483938f268206d88a4fc51b77
parent72d635358db729a936c80b9be7316faac848d36c
Implement the TreeStructure interface through the TextNodeDumper

Summary:
This way, when the generic ASTTraverser is extracted from ASTDumper,
there can't be any problem related to ordering of class members, a
concern that was raised in https://reviews.llvm.org/D55337.

This will also preserve the property that the generic traverser does not
enforce any coupling between the NodeDumper and the TreeStructure.

 https://godbolt.org/z/PEtT1_

Reviewers: aaron.ballman, erichkeane

Subscribers: cfe-commits

Differential Revision: https://reviews.llvm.org/D56407

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@350665 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/AST/ASTDumperUtils.h
include/clang/AST/TextNodeDumper.h
lib/AST/ASTDumper.cpp
lib/AST/TextNodeDumper.cpp