forked from OSchip/llvm-project
[mlir] Apply ClangTidyLegacy findings.
Use '= default' to define a trivial default constructor.
This commit is contained in:
parent
02b5d3bc3b
commit
d903fa4c62
|
@ -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)) {}
|
||||
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -83,7 +83,7 @@ public:
|
|||
|
||||
using AbstractTy = AbstractType;
|
||||
|
||||
constexpr Type() {}
|
||||
constexpr Type() = default;
|
||||
/* implicit */ Type(const ImplType *impl)
|
||||
: impl(const_cast<ImplType *>(impl)) {}
|
||||
|
||||
|
|
Loading…
Reference in New Issue