clang-tools 22.0.0git
clang::tidy::llvm_check::UseNewMlirOpBuilderCheck Class Reference

Checks for uses of MLIR's old/to be deprecated OpBuilder::create<T> form and suggests using T::create instead. More...

#include <UseNewMLIROpBuilderCheck.h>

Inheritance diagram for clang::tidy::llvm_check::UseNewMlirOpBuilderCheck:
[legend]

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.

Detailed Description

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.

Constructor & Destructor Documentation

◆ UseNewMlirOpBuilderCheck()

clang::tidy::llvm_check::UseNewMlirOpBuilderCheck::UseNewMlirOpBuilderCheck ( StringRef Name,
ClangTidyContext * Context )

Member Function Documentation

◆ isLanguageVersionSupported()

bool clang::tidy::llvm_check::UseNewMlirOpBuilderCheck::isLanguageVersionSupported ( const LangOptions & LangOpts) const
inlineoverride

Definition at line 22 of file UseNewMLIROpBuilderCheck.h.


The documentation for this class was generated from the following files: