diff options
author | Stephen Kelly <steveire@gmail.com> | 2018-10-24 20:33:45 +0000 |
---|---|---|
committer | Stephen Kelly <steveire@gmail.com> | 2018-10-24 20:33:45 +0000 |
commit | 51707b21a0d7fe140fd0cf20f001192cecd301aa (patch) | |
tree | 6233c1e0067d04d3e89d321b4cc392eaba5aa3c3 /clang-tools-extra/clang-query/Query.cpp | |
parent | 4c3d7a969aa61fa9333a88f22320e48e8afe228c (diff) | |
download | bcm5719-llvm-51707b21a0d7fe140fd0cf20f001192cecd301aa.tar.gz bcm5719-llvm-51707b21a0d7fe140fd0cf20f001192cecd301aa.zip |
[clang-query] Add 'detailed-ast' output as an alias for 'dump'
Summary: Future development can then dump other content than AST.
Reviewers: aaron.ballman
Subscribers: cfe-commits
Differential Revision: https://reviews.llvm.org/D53500
llvm-svn: 345193
Diffstat (limited to 'clang-tools-extra/clang-query/Query.cpp')
-rw-r--r-- | clang-tools-extra/clang-query/Query.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/clang-tools-extra/clang-query/Query.cpp b/clang-tools-extra/clang-query/Query.cpp index 3e83bbc92b2..abf1a32470d 100644 --- a/clang-tools-extra/clang-query/Query.cpp +++ b/clang-tools-extra/clang-query/Query.cpp @@ -53,8 +53,10 @@ bool HelpQuery::run(llvm::raw_ostream &OS, QuerySession &QS) const { "Pretty-print bound nodes.\n" " diag " "Diagnostic location for bound nodes.\n" + " detailed-ast " + "Detailed AST output for bound nodes.\n" " dump " - "Detailed AST output for bound nodes.\n\n"; + "Detailed AST output for bound nodes (alias of detailed-ast).\n\n"; return true; } @@ -124,7 +126,7 @@ bool MatchQuery::run(llvm::raw_ostream &OS, QuerySession &QS) const { OS << "\n"; break; } - case OK_Dump: { + case OK_DetailedAST: { OS << "Binding for \"" << BI->first << "\":\n"; BI->second.dump(OS, AST->getSourceManager()); OS << "\n"; |