File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -45,9 +45,9 @@ bool HelpQuery::run(llvm::raw_ostream &OS, QuerySession &QS) const {
4545 " set bind-root (true|false) "
4646 " Set whether to bind the root matcher to \" root\" .\n "
4747 " set print-matcher (true|false) "
48- " set enable-profile (true|false) "
49- " Set whether to enable matcher profiling,\n "
5048 " Set whether to print the current matcher,\n "
49+ " set enable-profile (true|false) "
50+ " Set whether to enable matcher profiling,\n "
5151 " set traversal <kind> "
5252 " Set traversal kind of clang-query session. Available kinds are:\n "
5353 " AsIs "
@@ -101,7 +101,7 @@ bool MatchQuery::run(llvm::raw_ostream &OS, QuerySession &QS) const {
101101
102102 std::optional<QueryProfile> Profiling;
103103 if (QS.EnableProfile )
104- Profiling = QueryProfile ();
104+ Profiling. emplace ();
105105
106106 for (auto &AST : QS.ASTs ) {
107107 ast_matchers::MatchFinder::MatchFinderOptions FinderOptions;
Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ void QueryProfile::printUserFriendlyTable(llvm::raw_ostream &OS) {
1616 OS.flush ();
1717}
1818
19- QueryProfile::~QueryProfiling () {
19+ QueryProfile::~QueryProfile () {
2020 TG.emplace (" clang-query" , " clang-query matcher profiling" , Records);
2121 printUserFriendlyTable (llvm::errs ());
2222}
You can’t perform that action at this time.
0 commit comments