clang-tools 22.0.0git
|
Checks for uses of MLIR's old/to be deprecated OpBuilder::create<T> form and suggests using T::create instead. More...
#include <UseNewMLIROpBuilderCheck.h>
Public Member Functions | |
UseNewMlirOpBuilderCheck (StringRef Name, ClangTidyContext *Context) | |
bool | isLanguageVersionSupported (const LangOptions &LangOpts) const override |
Public Member Functions inherited from clang::tidy::utils::TransformerClangTidyCheck | |
TransformerClangTidyCheck (StringRef Name, ClangTidyContext *Context) | |
TransformerClangTidyCheck (std::function< std::optional< transformer::RewriteRuleWith< std::string > >(const LangOptions &, const OptionsView &)> MakeRule, StringRef Name, ClangTidyContext *Context) | |
DEPRECATED: prefer the two argument constructor in conjunction with setRule . | |
TransformerClangTidyCheck (transformer::RewriteRuleWith< std::string > R, StringRef Name, ClangTidyContext *Context) | |
Convenience overload of the constructor when the rule doesn't have any dependencies. | |
void | registerPPCallbacks (const SourceManager &SM, Preprocessor *PP, Preprocessor *ModuleExpanderPP) override |
void | registerMatchers (ast_matchers::MatchFinder *Finder) final |
void | check (const ast_matchers::MatchFinder::MatchResult &Result) final |
void | storeOptions (ClangTidyOptions::OptionMap &Opts) override |
Derived classes that override this function should call this method from the overridden method. | |
void | setRule (transformer::RewriteRuleWith< std::string > R) |
Set the rule that this check implements. |
Checks for uses of MLIR's old/to be deprecated OpBuilder::create<T> form and suggests using T::create instead.
Definition at line 18 of file UseNewMLIROpBuilderCheck.h.
clang::tidy::llvm_check::UseNewMlirOpBuilderCheck::UseNewMlirOpBuilderCheck | ( | StringRef | Name, |
ClangTidyContext * | Context ) |
Definition at line 134 of file UseNewMLIROpBuilderCheck.cpp.
References clang::tidy::utils::TransformerClangTidyCheck::TransformerClangTidyCheck().
|
inlineoverride |
Definition at line 22 of file UseNewMLIROpBuilderCheck.h.