aboutsummaryrefslogtreecommitdiff
path: root/paludis/user_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/user_dep_spec.hh
parent3e45be57eef80ab27eba09e0249c70c2ee931573 (diff)
downloadpaludis-6e995e8d5f0e763b6dd6adef7b014eaf54121334.tar.gz
paludis-6e995e8d5f0e763b6dd6adef7b014eaf54121334.tar.xz
modernize: Mark overriding functions as suchHEADmaster
Done using clang-tidy's `modernize-use-override` check
Diffstat (limited to 'paludis/user_dep_spec.hh')
-rw-r--r--paludis/user_dep_spec.hh44
1 files changed, 22 insertions, 22 deletions
diff --git a/paludis/user_dep_spec.hh b/paludis/user_dep_spec.hh
index 8795dafc6..70f0001ef 100644
--- a/paludis/user_dep_spec.hh
+++ b/paludis/user_dep_spec.hh
@@ -62,9 +62,9 @@ namespace paludis
public:
UserSlotExactFullRequirement(const std::pair<SlotName, SlotName> &);
- virtual const std::pair<SlotName, SlotName> slots() const PALUDIS_ATTRIBUTE((warn_unused_result));
- virtual const std::string as_string() const PALUDIS_ATTRIBUTE((warn_unused_result));
- virtual const std::shared_ptr<const SlotRequirement> maybe_original_requirement_if_rewritten() const PALUDIS_ATTRIBUTE((warn_unused_result));
+ const std::pair<SlotName, SlotName> slots() const override PALUDIS_ATTRIBUTE((warn_unused_result));
+ const std::string as_string() const override PALUDIS_ATTRIBUTE((warn_unused_result));
+ const std::shared_ptr<const SlotRequirement> maybe_original_requirement_if_rewritten() const override PALUDIS_ATTRIBUTE((warn_unused_result));
};
class PALUDIS_VISIBLE UserSlotExactPartialRequirement :
@@ -81,9 +81,9 @@ namespace paludis
///\}
- virtual const SlotName slot() const PALUDIS_ATTRIBUTE((warn_unused_result));
- virtual const std::string as_string() const PALUDIS_ATTRIBUTE((warn_unused_result));
- virtual const std::shared_ptr<const SlotRequirement> maybe_original_requirement_if_rewritten() const PALUDIS_ATTRIBUTE((warn_unused_result));
+ const SlotName slot() const override PALUDIS_ATTRIBUTE((warn_unused_result));
+ const std::string as_string() const override PALUDIS_ATTRIBUTE((warn_unused_result));
+ const std::shared_ptr<const SlotRequirement> maybe_original_requirement_if_rewritten() const override PALUDIS_ATTRIBUTE((warn_unused_result));
};
/**
@@ -103,27 +103,27 @@ namespace paludis
///\{
UserKeyRequirement(const std::string &);
- ~UserKeyRequirement();
+ ~UserKeyRequirement() override;
///\}
- virtual const std::pair<bool, std::string> requirement_met(
+ const std::pair<bool, std::string> requirement_met(
const Environment * const, const ChangedChoices *,
const std::shared_ptr<const PackageID> &,
const std::shared_ptr<const PackageID> &,
- const ChangedChoices * const) const PALUDIS_ATTRIBUTE((warn_unused_result));
+ const ChangedChoices * const) const override PALUDIS_ATTRIBUTE((warn_unused_result));
- virtual const std::string as_human_string(
- const std::shared_ptr<const PackageID> &) const PALUDIS_ATTRIBUTE((warn_unused_result));
+ const std::string as_human_string(
+ const std::shared_ptr<const PackageID> &) const override PALUDIS_ATTRIBUTE((warn_unused_result));
- virtual const std::string as_raw_string() const PALUDIS_ATTRIBUTE((warn_unused_result));
+ const std::string as_raw_string() const override PALUDIS_ATTRIBUTE((warn_unused_result));
- virtual Tribool accumulate_changes_to_make_met(
+ Tribool accumulate_changes_to_make_met(
const Environment * const,
const ChangedChoices * const,
const std::shared_ptr<const PackageID> &,
const std::shared_ptr<const PackageID> &,
- ChangedChoices &) const PALUDIS_ATTRIBUTE((warn_unused_result));
+ ChangedChoices &) const override PALUDIS_ATTRIBUTE((warn_unused_result));
};
extern template class Pimp<UserKeyRequirement>;
@@ -144,27 +144,27 @@ namespace paludis
///\{
ExcludeRequirement(const PackageDepSpec &);
- ~ExcludeRequirement();
+ ~ExcludeRequirement() override;
///\}
- virtual const std::pair<bool, std::string> requirement_met(
+ const std::pair<bool, std::string> requirement_met(
const Environment * const, const ChangedChoices *,
const std::shared_ptr<const PackageID> &,
const std::shared_ptr<const PackageID> &,
- const ChangedChoices * const) const PALUDIS_ATTRIBUTE((warn_unused_result));
+ const ChangedChoices * const) const override PALUDIS_ATTRIBUTE((warn_unused_result));
- virtual const std::string as_human_string(
- const std::shared_ptr<const PackageID> &) const PALUDIS_ATTRIBUTE((warn_unused_result));
+ const std::string as_human_string(
+ const std::shared_ptr<const PackageID> &) const override PALUDIS_ATTRIBUTE((warn_unused_result));
- virtual const std::string as_raw_string() const PALUDIS_ATTRIBUTE((warn_unused_result));
+ const std::string as_raw_string() const override PALUDIS_ATTRIBUTE((warn_unused_result));
- virtual Tribool accumulate_changes_to_make_met(
+ Tribool accumulate_changes_to_make_met(
const Environment * const,
const ChangedChoices * const,
const std::shared_ptr<const PackageID> &,
const std::shared_ptr<const PackageID> &,
- ChangedChoices &) const PALUDIS_ATTRIBUTE((warn_unused_result));
+ ChangedChoices &) const override PALUDIS_ATTRIBUTE((warn_unused_result));
};
}