Skip to content

Commit ccd96f0

Browse files
committed
fix typos
1 parent dfd42c0 commit ccd96f0

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

clang-tools-extra/clang-query/Query.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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;

clang-tools-extra/clang-query/QueryProfile.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)