diff options
author | Stephen Kelly <steveire@gmail.com> | 2020-07-02 20:46:27 +0100 |
---|---|---|
committer | Stephen Kelly <steveire@gmail.com> | 2020-07-03 21:19:46 +0100 |
commit | 551092bc3dfb86f1e11a55f3bee0c8ee1be6fdd6 (patch) | |
tree | 8800e6fa3aec87170e6b335a953ac9b5508713d1 /clang-tools-extra/clang-query | |
parent | 7926969afc63820b123de9d6895c3913befaae1b (diff) | |
download | llvm-551092bc3dfb86f1e11a55f3bee0c8ee1be6fdd6.tar.gz |
Revert AST Matchers default to AsIs mode
Reviewers: aaron.ballman, klimek
Subscribers: cfe-commits
Tags: #clang
Differential Revision: https://reviews.llvm.org/D83076
Diffstat (limited to 'clang-tools-extra/clang-query')
-rw-r--r-- | clang-tools-extra/clang-query/Query.cpp | 6 | ||||
-rw-r--r-- | clang-tools-extra/clang-query/QuerySession.h | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/clang-tools-extra/clang-query/Query.cpp b/clang-tools-extra/clang-query/Query.cpp index 4fe7110daed3..ca2a285e9eb7 100644 --- a/clang-tools-extra/clang-query/Query.cpp +++ b/clang-tools-extra/clang-query/Query.cpp @@ -46,12 +46,12 @@ bool HelpQuery::run(llvm::raw_ostream &OS, QuerySession &QS) const { " set traversal <kind> " "Set traversal kind of clang-query session. Available kinds are:\n" " AsIs " - "Print and match the AST as clang sees it.\n" + "Print and match the AST as clang sees it. This mode is the " + "default.\n" " IgnoreImplicitCastsAndParentheses " "Omit implicit casts and parens in matching and dumping.\n" " IgnoreUnlessSpelledInSource " - "Omit AST nodes unless spelled in the source. This mode is the " - "default.\n" + "Omit AST nodes unless spelled in the source.\n" " set output <feature> " "Set whether to output only <feature> content.\n" " enable output <feature> " diff --git a/clang-tools-extra/clang-query/QuerySession.h b/clang-tools-extra/clang-query/QuerySession.h index 1660e4039f61..20c788b206a0 100644 --- a/clang-tools-extra/clang-query/QuerySession.h +++ b/clang-tools-extra/clang-query/QuerySession.h @@ -26,7 +26,7 @@ public: QuerySession(llvm::ArrayRef<std::unique_ptr<ASTUnit>> ASTs) : ASTs(ASTs), PrintOutput(false), DiagOutput(true), DetailedASTOutput(false), BindRoot(true), PrintMatcher(false), - Terminate(false), TK(ast_type_traits::TK_IgnoreUnlessSpelledInSource) {} + Terminate(false), TK(ast_type_traits::TK_AsIs) {} llvm::ArrayRef<std::unique_ptr<ASTUnit>> ASTs; |