[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
diff --git a/clang-tools-extra/clang-query/Query.cpp b/clang-tools-extra/clang-query/Query.cpp
index 3e83bbc..abf1a32 100644
--- a/clang-tools-extra/clang-query/Query.cpp
+++ b/clang-tools-extra/clang-query/Query.cpp
@@ -53,8 +53,10 @@
"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 @@
OS << "\n";
break;
}
- case OK_Dump: {
+ case OK_DetailedAST: {
OS << "Binding for \"" << BI->first << "\":\n";
BI->second.dump(OS, AST->getSourceManager());
OS << "\n";