Skip to content

Commit 5ffdc17

Browse files
committed
fmt'
1 parent 2d4aee8 commit 5ffdc17

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

clang-tools-extra/clang-tidy/readability/UseCppStyleCommentsCheck.cpp

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -172,18 +172,17 @@ UseCppStyleCommentsCheck::UseCppStyleCommentsCheck(StringRef Name,
172172
*this, Options.get("ExcludeDoxygenStyleComments", false),
173173
Options.get("ExcludedComments", "^$"))) {}
174174

175+
void UseCppStyleCommentsCheck::storeOptions(ClangTidyOptions::OptionMap &Opts) {
176+
Options.store(Opts, "ExcludeDoxygenStyleComments",
177+
Handler->isExcludeDoxygen());
178+
Options.store(Opts, "ExcludedComments", Handler->getExcludedCommentsRegex());
179+
}
175180
void UseCppStyleCommentsCheck::registerPPCallbacks(
176181
const SourceManager &SM, Preprocessor *PP, Preprocessor *ModuleExpanderPP) {
177182
PP->addCommentHandler(Handler.get());
178183
}
179184

180185
void UseCppStyleCommentsCheck::check(const MatchFinder::MatchResult &Result) {}
181186

182-
void UseCppStyleCommentsCheck::storeOptions(ClangTidyOptions::OptionMap &Opts) {
183-
Options.store(Opts, "ExcludeDoxygenStyleComments",
184-
Handler->isExcludeDoxygen());
185-
Options.store(Opts, "ExcludedComments", Handler->getExcludedCommentsRegex());
186-
}
187-
188187
UseCppStyleCommentsCheck::~UseCppStyleCommentsCheck() = default;
189188
} // namespace clang::tidy::readability

0 commit comments

Comments
 (0)