Skip to content

Commit 269d0aa

Browse files
committed
[mlir] Apply ClangTidy findings.
modernize-use-override ClangTidy check. This warning appears on overridden virtual functions not marked with override or final keywords or marked with more than one of virtual, override, final.
1 parent 1f7c3d6 commit 269d0aa

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

mlir/include/mlir/Pass/Pass.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -355,7 +355,7 @@ class Pass {
355355
template <typename OpT = void>
356356
class OperationPass : public Pass {
357357
public:
358-
~OperationPass() = default;
358+
~OperationPass() override = default;
359359

360360
protected:
361361
OperationPass(TypeID passID) : Pass(passID, OpT::getOperationName()) {}
@@ -400,7 +400,7 @@ class OperationPass : public Pass {
400400
template <>
401401
class OperationPass<void> : public Pass {
402402
public:
403-
~OperationPass() = default;
403+
~OperationPass() override = default;
404404

405405
protected:
406406
OperationPass(TypeID passID) : Pass(passID) {}
@@ -461,7 +461,7 @@ class PassWrapper : public BaseT {
461461
static bool classof(const Pass *pass) {
462462
return pass->getTypeID() == TypeID::get<PassT>();
463463
}
464-
~PassWrapper() = default;
464+
~PassWrapper() override = default;
465465

466466
protected:
467467
PassWrapper() : BaseT(TypeID::get<PassT>()) {}

0 commit comments

Comments
 (0)