Skip to content

Commit 19ecb23

Browse files
committed
east const
#style
1 parent 7d00a0b commit 19ecb23

35 files changed

+216
-216
lines changed

include/mrdocs/Metadata/Info.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ struct MRDOCS_VISIBLE Info
139139
#define INFO(Type) constexpr bool is##Type() const noexcept { return Kind == InfoKind::Type; }
140140
#include <mrdocs/Metadata/InfoNodesPascal.inc>
141141

142-
auto operator<=>(const Info&) const = default;
142+
auto operator<=>(Info const&) const = default;
143143
};
144144

145145
//------------------------------------------------
@@ -164,7 +164,7 @@ struct InfoCommonBase : Info
164164
static constexpr bool is##Kind() noexcept { return K == InfoKind::Kind; }
165165
#include <mrdocs/Metadata/InfoNodesPascal.inc>
166166

167-
auto operator<=>(const InfoCommonBase&) const = default;
167+
auto operator<=>(InfoCommonBase const&) const = default;
168168

169169
protected:
170170
constexpr explicit InfoCommonBase(SymbolID const& ID)

include/mrdocs/Metadata/Info/Function.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ struct Param
123123
, Default(std::move(def_arg))
124124
{}
125125

126-
auto operator<=>(const Param&) const = default;
126+
auto operator<=>(Param const&) const = default;
127127
};
128128

129129
/** Return the Param as a @ref dom::Value object.
@@ -188,7 +188,7 @@ struct FunctionInfo final
188188
}
189189

190190
std::strong_ordering
191-
operator<=>(const FunctionInfo& other) const;
191+
operator<=>(FunctionInfo const& other) const;
192192
};
193193

194194
MRDOCS_DECL

include/mrdocs/Metadata/Info/Record.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -301,7 +301,7 @@ struct RecordInfo final
301301
}
302302

303303
std::strong_ordering
304-
operator<=>(const RecordInfo& other) const;
304+
operator<=>(RecordInfo const& other) const;
305305
};
306306

307307
constexpr

include/mrdocs/Metadata/Javadoc.hpp

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ struct Text : Node
222222
{
223223
std::string string;
224224

225-
static constexpr NodeKind static_kind = NodeKind::text;
225+
static constexpr auto static_kind = NodeKind::text;
226226

227227
explicit
228228
Text(
@@ -642,7 +642,7 @@ struct UnorderedList final : Paragraph
642642
bool
643643
equals(Node const& other) const noexcept override
644644
{
645-
auto* p = dynamic_cast<const UnorderedList*>(&other);
645+
auto* p = dynamic_cast<UnorderedList const*>(&other);
646646
if (!p)
647647
{
648648
return false;
@@ -668,11 +668,11 @@ struct Details final : Paragraph
668668
auto operator<=>(Details const&) const = default;
669669

670670
bool
671-
operator==(const Details&) const noexcept = default;
671+
operator==(Details const&) const noexcept = default;
672672

673-
bool equals(const Node& other) const noexcept override
673+
bool equals(Node const& other) const noexcept override
674674
{
675-
auto* p = dynamic_cast<const Details*>(&other);
675+
auto* p = dynamic_cast<Details const*>(&other);
676676
if (!p)
677677
{
678678
return false;
@@ -698,13 +698,13 @@ struct See final : Paragraph
698698

699699
auto operator<=>(See const&) const = default;
700700

701-
bool operator==(const See&)
701+
bool operator==(See const&)
702702
const noexcept = default;
703703

704-
bool equals(const Node& other) const noexcept override
704+
bool equals(Node const& other) const noexcept override
705705
{
706706
return Kind == other.Kind &&
707-
*this == dynamic_cast<const See&>(other);
707+
*this == dynamic_cast<See const&>(other);
708708
}
709709
};
710710

@@ -755,13 +755,13 @@ struct Returns final : Paragraph
755755

756756
auto operator<=>(Returns const&) const = default;
757757

758-
bool operator==(const Returns&)
758+
bool operator==(Returns const&)
759759
const noexcept = default;
760760

761-
bool equals(const Node& other) const noexcept override
761+
bool equals(Node const& other) const noexcept override
762762
{
763763
return Kind == other.Kind &&
764-
*this == dynamic_cast<const Returns&>(other);
764+
*this == dynamic_cast<Returns const&>(other);
765765
}
766766
};
767767

@@ -779,11 +779,11 @@ struct TParam final : Paragraph
779779
}
780780

781781
auto operator<=>(TParam const&) const = default;
782-
bool operator==(const TParam&) const noexcept = default;
783-
bool equals(const Node& other) const noexcept override
782+
bool operator==(TParam const&) const noexcept = default;
783+
bool equals(Node const& other) const noexcept override
784784
{
785785
return Kind == other.Kind &&
786-
*this == dynamic_cast<const TParam&>(other);
786+
*this == dynamic_cast<TParam const&>(other);
787787
}
788788
};
789789

@@ -807,13 +807,13 @@ struct Throws final : Paragraph
807807

808808
auto operator<=>(Throws const&) const = default;
809809

810-
bool operator==(const Throws&)
810+
bool operator==(Throws const&)
811811
const noexcept = default;
812812

813-
bool equals(const Node& other) const noexcept override
813+
bool equals(Node const& other) const noexcept override
814814
{
815815
return Kind == other.Kind &&
816-
*this == dynamic_cast<const Throws&>(other);
816+
*this == dynamic_cast<Throws const&>(other);
817817
}
818818
};
819819

@@ -831,13 +831,13 @@ struct Precondition final : Paragraph
831831

832832
auto operator<=>(Precondition const&) const = default;
833833

834-
bool operator==(const Precondition&)
834+
bool operator==(Precondition const&)
835835
const noexcept = default;
836836

837-
bool equals(const Node& other) const noexcept override
837+
bool equals(Node const& other) const noexcept override
838838
{
839839
return Kind == other.Kind &&
840-
*this == dynamic_cast<const Precondition&>(other);
840+
*this == dynamic_cast<Precondition const&>(other);
841841
}
842842
};
843843

@@ -855,13 +855,13 @@ struct Postcondition : Paragraph
855855

856856
auto operator<=>(Postcondition const&) const = default;
857857

858-
bool operator==(const Postcondition&)
858+
bool operator==(Postcondition const&)
859859
const noexcept = default;
860860

861-
bool equals(const Node& other) const noexcept override
861+
bool equals(Node const& other) const noexcept override
862862
{
863863
return Kind == other.Kind &&
864-
*this == dynamic_cast<const Postcondition&>(other);
864+
*this == dynamic_cast<Postcondition const&>(other);
865865
}
866866
};
867867

include/mrdocs/Metadata/Specifiers.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ struct ExplicitInfo
7979
*/
8080
std::string Operand;
8181

82-
auto operator<=>(const ExplicitInfo&) const = default;
82+
auto operator<=>(ExplicitInfo const&) const = default;
8383
};
8484

8585
/** Exception specification kinds

include/mrdocs/Metadata/Symbols.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ template<>
204204
struct std::hash<clang::mrdocs::SymbolID>
205205
{
206206
std::size_t
207-
operator()(const clang::mrdocs::SymbolID& id) const noexcept
207+
operator()(clang::mrdocs::SymbolID const& id) const noexcept
208208
{
209209
return std::hash<std::string_view>()(
210210
std::string_view(id));

0 commit comments

Comments
 (0)