aboutsummaryrefslogtreecommitdiff
path: root/paludis/dep_spec.hh
diff options
context:
space:
mode:
authorAvatar Marvin Schmidt <marv@exherbo.org> 2019-02-21 18:14:13 +0100
committerAvatar Heiko Becker <heirecka@exherbo.org> 2020-10-16 17:59:26 +0000
commit6e995e8d5f0e763b6dd6adef7b014eaf54121334 (patch)
tree9d5dd7bc7ce267d4449cfd08d850ec33caf8be67 /paludis/dep_spec.hh
parent3e45be57eef80ab27eba09e0249c70c2ee931573 (diff)
downloadpaludis-6e995e8d5f0e763b6dd6adef7b014eaf54121334.tar.gz
paludis-6e995e8d5f0e763b6dd6adef7b014eaf54121334.tar.xz
modernize: Mark overriding functions as such
Done using clang-tidy's `modernize-use-override` check
Diffstat (limited to 'paludis/dep_spec.hh')
-rw-r--r--paludis/dep_spec.hh40
1 files changed, 20 insertions, 20 deletions
diff --git a/paludis/dep_spec.hh b/paludis/dep_spec.hh
index 8b0b4410c..d4e5f5746 100644
--- a/paludis/dep_spec.hh
+++ b/paludis/dep_spec.hh
@@ -85,7 +85,7 @@ namespace paludis
///\name Basic operations
///\{
- virtual ~DepSpec();
+ ~DepSpec() override;
DepSpec(const DepSpec &) = delete;
DepSpec & operator= (const DepSpec &) = delete;
@@ -124,7 +124,7 @@ namespace paludis
///\}
- virtual std::shared_ptr<DepSpec> clone() const PALUDIS_ATTRIBUTE((warn_unused_result));
+ std::shared_ptr<DepSpec> clone() const override PALUDIS_ATTRIBUTE((warn_unused_result));
};
/**
@@ -145,7 +145,7 @@ namespace paludis
///\}
- virtual std::shared_ptr<DepSpec> clone() const PALUDIS_ATTRIBUTE((warn_unused_result));
+ std::shared_ptr<DepSpec> clone() const override PALUDIS_ATTRIBUTE((warn_unused_result));
};
/**
@@ -166,7 +166,7 @@ namespace paludis
///\}
- virtual std::shared_ptr<DepSpec> clone() const PALUDIS_ATTRIBUTE((warn_unused_result));
+ std::shared_ptr<DepSpec> clone() const override PALUDIS_ATTRIBUTE((warn_unused_result));
};
/**
@@ -187,7 +187,7 @@ namespace paludis
///\}
- virtual std::shared_ptr<DepSpec> clone() const PALUDIS_ATTRIBUTE((warn_unused_result));
+ std::shared_ptr<DepSpec> clone() const override PALUDIS_ATTRIBUTE((warn_unused_result));
};
/**
@@ -215,7 +215,7 @@ namespace paludis
ConditionalDepSpec(const std::shared_ptr<const ConditionalDepSpecData> &);
ConditionalDepSpec(const ConditionalDepSpec &);
- ~ConditionalDepSpec();
+ ~ConditionalDepSpec() override;
///\}
@@ -278,7 +278,7 @@ namespace paludis
StringDepSpec(const std::string &);
- ~StringDepSpec();
+ ~StringDepSpec() override;
///\}
@@ -372,7 +372,7 @@ namespace paludis
PackageDepSpec(const PackageDepSpec &);
- ~PackageDepSpec();
+ ~PackageDepSpec() override;
///\}
@@ -465,7 +465,7 @@ namespace paludis
///\}
- virtual std::shared_ptr<DepSpec> clone() const PALUDIS_ATTRIBUTE((warn_unused_result));
+ std::shared_ptr<DepSpec> clone() const override PALUDIS_ATTRIBUTE((warn_unused_result));
};
/**
@@ -491,7 +491,7 @@ namespace paludis
/// Fetch the name of our set.
const SetName name() const PALUDIS_ATTRIBUTE((warn_unused_result));
- virtual std::shared_ptr<DepSpec> clone() const PALUDIS_ATTRIBUTE((warn_unused_result));
+ std::shared_ptr<DepSpec> clone() const override PALUDIS_ATTRIBUTE((warn_unused_result));
};
/**
@@ -512,7 +512,7 @@ namespace paludis
///\}
- virtual std::shared_ptr<DepSpec> clone() const PALUDIS_ATTRIBUTE((warn_unused_result));
+ std::shared_ptr<DepSpec> clone() const override PALUDIS_ATTRIBUTE((warn_unused_result));
};
/**
@@ -555,7 +555,7 @@ namespace paludis
*/
std::string filename() const;
- virtual std::shared_ptr<DepSpec> clone() const PALUDIS_ATTRIBUTE((warn_unused_result));
+ std::shared_ptr<DepSpec> clone() const override PALUDIS_ATTRIBUTE((warn_unused_result));
};
/**
@@ -578,7 +578,7 @@ namespace paludis
///\}
- virtual std::shared_ptr<DepSpec> clone() const PALUDIS_ATTRIBUTE((warn_unused_result));
+ std::shared_ptr<DepSpec> clone() const override PALUDIS_ATTRIBUTE((warn_unused_result));
};
/**
@@ -637,7 +637,7 @@ namespace paludis
*
* \since 0.73
*/
- virtual const std::shared_ptr<const DepSpecAnnotations> maybe_annotations() const PALUDIS_ATTRIBUTE((warn_unused_result));
+ const std::shared_ptr<const DepSpecAnnotations> maybe_annotations() const override PALUDIS_ATTRIBUTE((warn_unused_result));
/**
* Change our annotations, may be null. Forwards to the
@@ -645,9 +645,9 @@ namespace paludis
*
* \since 0.73
*/
- virtual void set_annotations(const std::shared_ptr<const DepSpecAnnotations> &);
+ void set_annotations(const std::shared_ptr<const DepSpecAnnotations> &) override;
- virtual std::shared_ptr<DepSpec> clone() const PALUDIS_ATTRIBUTE((warn_unused_result));
+ std::shared_ptr<DepSpec> clone() const override PALUDIS_ATTRIBUTE((warn_unused_result));
};
/**
@@ -672,7 +672,7 @@ namespace paludis
///\{
LabelsDepSpec();
- ~LabelsDepSpec();
+ ~LabelsDepSpec() override;
///\}
@@ -690,7 +690,7 @@ namespace paludis
///\}
- virtual std::shared_ptr<DepSpec> clone() const PALUDIS_ATTRIBUTE((warn_unused_result));
+ std::shared_ptr<DepSpec> clone() const override PALUDIS_ATTRIBUTE((warn_unused_result));
};
class PALUDIS_VISIBLE PlainTextLabelDepSpec :
@@ -701,11 +701,11 @@ namespace paludis
///\{
PlainTextLabelDepSpec(const std::string &);
- ~PlainTextLabelDepSpec();
+ ~PlainTextLabelDepSpec() override;
///\}
- virtual std::shared_ptr<DepSpec> clone() const PALUDIS_ATTRIBUTE((warn_unused_result));
+ std::shared_ptr<DepSpec> clone() const override PALUDIS_ATTRIBUTE((warn_unused_result));
const std::string label() const PALUDIS_ATTRIBUTE((warn_unused_result));
};