File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -442,4 +442,9 @@ void UseStdNumbersCheck::registerPPCallbacks(
442
442
Preprocessor *const ModuleExpanderPP) {
443
443
IncludeInserter.registerPreprocessor (PP);
444
444
}
445
+
446
+ void UseStdNumbersCheck::storeOptions (ClangTidyOptions::OptionMap &Opts) {
447
+ Options.store (Opts, " IncludeStyle" , IncludeInserter.getStyle ());
448
+ Options.store (Opts, " DiffThreshold" , DiffThresholdString);
449
+ }
445
450
} // namespace clang::tidy::modernize
Original file line number Diff line number Diff line change @@ -33,10 +33,7 @@ class UseStdNumbersCheck : public ClangTidyCheck {
33
33
void check (const ast_matchers::MatchFinder::MatchResult &Result) override ;
34
34
void registerPPCallbacks (const SourceManager &SM, Preprocessor *PP,
35
35
Preprocessor *ModuleExpanderPP) override ;
36
- void storeOptions (ClangTidyOptions::OptionMap &Opts) override {
37
- Options.store (Opts, " IncludeStyle" , IncludeInserter.getStyle ());
38
- Options.store (Opts, " DiffThreshold" , DiffThresholdString);
39
- }
36
+ void storeOptions (ClangTidyOptions::OptionMap &Opts) override ;
40
37
std::optional<TraversalKind> getCheckTraversalKind () const override {
41
38
return TK_IgnoreUnlessSpelledInSource;
42
39
}
You can’t perform that action at this time.
0 commit comments