aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdrian Kuegel <akuegel@google.com>2024-04-03 14:12:26 +0000
committerAdrian Kuegel <akuegel@google.com>2024-04-03 14:14:06 +0000
commit269d0aaec1801000a39122b1c5792d9c096b33ec (patch)
tree0af37b0f2b6ddf40f76d0aea1d8461817408c550
parent1f7c3d609b01d0cf2a0b973cc17a9b0bca8e56b5 (diff)
downloadllvm-269d0aaec1801000a39122b1c5792d9c096b33ec.zip
llvm-269d0aaec1801000a39122b1c5792d9c096b33ec.tar.gz
llvm-269d0aaec1801000a39122b1c5792d9c096b33ec.tar.bz2
[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.
-rw-r--r--mlir/include/mlir/Pass/Pass.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/mlir/include/mlir/Pass/Pass.h b/mlir/include/mlir/Pass/Pass.h
index 0f50f30..e71c49a 100644
--- a/mlir/include/mlir/Pass/Pass.h
+++ b/mlir/include/mlir/Pass/Pass.h
@@ -355,7 +355,7 @@ private:
template <typename OpT = void>
class OperationPass : public Pass {
public:
- ~OperationPass() = default;
+ ~OperationPass() override = default;
protected:
OperationPass(TypeID passID) : Pass(passID, OpT::getOperationName()) {}
@@ -400,7 +400,7 @@ protected:
template <>
class OperationPass<void> : public Pass {
public:
- ~OperationPass() = default;
+ ~OperationPass() override = default;
protected:
OperationPass(TypeID passID) : Pass(passID) {}
@@ -461,7 +461,7 @@ public:
static bool classof(const Pass *pass) {
return pass->getTypeID() == TypeID::get<PassT>();
}
- ~PassWrapper() = default;
+ ~PassWrapper() override = default;
protected:
PassWrapper() : BaseT(TypeID::get<PassT>()) {}