diff options
author | Bruno Ricci <riccibrun@gmail.com> | 2020-07-02 19:38:46 +0100 |
---|---|---|
committer | Bruno Ricci <riccibrun@gmail.com> | 2020-07-02 19:40:09 +0100 |
commit | fcf4d5e4499a391dff42ea1a096f146db44147b6 (patch) | |
tree | 8fd0fc6cf32201187d0797e3f29ce491d4262b09 /clang-tools-extra/clang-query | |
parent | 670dbad473270a2bd46fc611bd48472685403ed6 (diff) | |
download | llvm-fcf4d5e4499a391dff42ea1a096f146db44147b6.zip llvm-fcf4d5e4499a391dff42ea1a096f146db44147b6.tar.gz llvm-fcf4d5e4499a391dff42ea1a096f146db44147b6.tar.bz2 |
Revert "[clang][NFC] Store a pointer to the ASTContext in ASTDumper and TextNodeDumper"
This reverts commit aa7fd905e4e1bc510448431da9310e8cf5197523.
I missed some dump() functions.
Diffstat (limited to 'clang-tools-extra/clang-query')
-rw-r--r-- | clang-tools-extra/clang-query/Query.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/clang-tools-extra/clang-query/Query.cpp b/clang-tools-extra/clang-query/Query.cpp index 4fe7110..2fc7af6 100644 --- a/clang-tools-extra/clang-query/Query.cpp +++ b/clang-tools-extra/clang-query/Query.cpp @@ -157,7 +157,8 @@ bool MatchQuery::run(llvm::raw_ostream &OS, QuerySession &QS) const { OS << "Binding for \"" << BI->first << "\":\n"; const ASTContext &Ctx = AST->getASTContext(); const SourceManager &SM = Ctx.getSourceManager(); - ASTDumper Dumper(OS, Ctx, SM.getDiagnostics().getShowColors()); + ASTDumper Dumper(OS, &Ctx.getCommentCommandTraits(), &SM, + SM.getDiagnostics().getShowColors(), Ctx.getPrintingPolicy()); Dumper.SetTraversalKind(QS.TK); Dumper.Visit(BI->second); OS << "\n"; |