forked from OSchip/llvm-project
[clang-tidy] Transformer checks now store IncludeStyle option
This commit is contained in:
parent
80af39ead8
commit
7af0c8559b
|
@ -112,6 +112,12 @@ void TransformerClangTidyCheck::check(
|
|||
}
|
||||
}
|
||||
|
||||
void TransformerClangTidyCheck::storeOptions(
|
||||
ClangTidyOptions::OptionMap &Opts) {
|
||||
Options.store(Opts, "IncludeStyle", IncludeStyle,
|
||||
IncludeSorter::getMapping());
|
||||
}
|
||||
|
||||
} // namespace utils
|
||||
} // namespace tidy
|
||||
} // namespace clang
|
||||
|
|
|
@ -67,6 +67,10 @@ public:
|
|||
void registerMatchers(ast_matchers::MatchFinder *Finder) final;
|
||||
void check(const ast_matchers::MatchFinder::MatchResult &Result) final;
|
||||
|
||||
/// Derived classes that override this function should call this method from
|
||||
/// the overridden method.
|
||||
void storeOptions(ClangTidyOptions::OptionMap &Opts) override;
|
||||
|
||||
private:
|
||||
Optional<transformer::RewriteRule> Rule;
|
||||
const IncludeSorter::IncludeStyle IncludeStyle;
|
||||
|
|
Loading…
Reference in New Issue