In -ast-dump, only dump comments when dumping the actual Decl to which they
attach, rather than merging all comments on the declaration chain. This gives a more faithful dump, and has the side benefit of unbreaking uses of dump() from within AST deserialization (where the redeclaration chain may not be sane). git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@182350 91177308-0d34-0410-b5e6-96231b3b80d8
Showing
- include/clang/AST/ASTContext.h 6 additions, 1 deletioninclude/clang/AST/ASTContext.h
- lib/AST/ASTContext.cpp 5 additions, 0 deletionslib/AST/ASTContext.cpp
- lib/AST/ASTDumper.cpp 5 additions, 4 deletionslib/AST/ASTDumper.cpp
- test/Misc/ast-dump-decl.cpp 16 additions, 0 deletionstest/Misc/ast-dump-decl.cpp
Loading
Please register or sign in to comment