[mlir] Apply ClangTidyLegacy findings.

Use '= default' to define a trivial default constructor.
This commit is contained in:
Adrian Kuegel 2022-10-12 12:45:35 +02:00
parent 02b5d3bc3b
commit d903fa4c62
4 changed files with 4 additions and 4 deletions

View File

@ -34,7 +34,7 @@ public:
using ValueType = void;
using AbstractTy = AbstractAttribute;
constexpr Attribute() {}
constexpr Attribute() = default;
/* implicit */ Attribute(const ImplType *impl)
: impl(const_cast<ImplType *>(impl)) {}

View File

@ -45,7 +45,7 @@ class IntegerSet {
public:
using ImplType = detail::IntegerSetStorage;
constexpr IntegerSet() {}
constexpr IntegerSet() = default;
explicit IntegerSet(ImplType *set) : set(set) {}
static IntegerSet get(unsigned dimCount, unsigned symbolCount,

View File

@ -215,7 +215,7 @@ public:
protected:
/// Initialize the printer with no internal implementation. In this case, all
/// virtual methods of this class must be overriden.
AsmPrinter() {}
AsmPrinter() = default;
private:
AsmPrinter(const AsmPrinter &) = delete;

View File

@ -83,7 +83,7 @@ public:
using AbstractTy = AbstractType;
constexpr Type() {}
constexpr Type() = default;
/* implicit */ Type(const ImplType *impl)
: impl(const_cast<ImplType *>(impl)) {}