Skip to content

Commit f1cdecc

Browse files
committed
rename polymorphic value type
#refactor
1 parent 969c325 commit f1cdecc

36 files changed

+324
-324
lines changed

include/mrdocs/ADT/PolymorphicValue.hpp renamed to include/mrdocs/ADT/Polymorphic.hpp

Lines changed: 113 additions & 113 deletions
Large diffs are not rendered by default.

include/mrdocs/ADT/detail/PolymorphicValue.hpp renamed to include/mrdocs/ADT/detail/Polymorphic.hpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99
// Official repository: https://github.com/cppalliance/mrdocs
1010
//
1111

12-
#ifndef MRDOCS_API_ADT_DETAIL_POLYMORPHICVALUE_HPP
13-
#define MRDOCS_API_ADT_DETAIL_POLYMORPHICVALUE_HPP
12+
#ifndef MRDOCS_API_ADT_DETAIL_POLYMORPHIC_HPP
13+
#define MRDOCS_API_ADT_DETAIL_POLYMORPHIC_HPP
1414

1515
#include <mrdocs/Support/Assert.hpp>
1616
#include <type_traits>
@@ -75,7 +75,7 @@ class DirectPolymorphicStorage final
7575
// Control block that holds the object in a unique_ptr
7676
// and stores a copier function
7777
// This is the main control block type used
78-
// by the PolymorphicValue class
78+
// by the Polymorphic class
7979
template <class Base, class Derived, class Copier, class Deleter>
8080
class PointerPolymorphicStorage final
8181
: public PolymorphicStorage<Base>

include/mrdocs/Metadata/Info/Enum.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
#ifndef MRDOCS_API_METADATA_ENUM_HPP
1313
#define MRDOCS_API_METADATA_ENUM_HPP
1414

15-
#include <mrdocs/ADT/PolymorphicValue.hpp>
15+
#include <mrdocs/ADT/Polymorphic.hpp>
1616
#include <mrdocs/Metadata/Info.hpp>
1717
#include <mrdocs/Metadata/Source.hpp>
1818
#include <mrdocs/Metadata/Type.hpp>
@@ -30,7 +30,7 @@ struct EnumInfo final
3030
// Set too nonempty to the type when this is an explicitly typed enum. For
3131
// enum Foo : short { ... };
3232
// this will be "short".
33-
PolymorphicValue<TypeInfo> UnderlyingType;
33+
Polymorphic<TypeInfo> UnderlyingType;
3434

3535
/** The members of this scope.
3636

include/mrdocs/Metadata/Info/Field.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ struct FieldInfo final
3030
: InfoCommonBase<InfoKind::Field>
3131
{
3232
/** Type of the field */
33-
PolymorphicValue<TypeInfo> Type;
33+
Polymorphic<TypeInfo> Type;
3434

3535
/** The default member initializer, if any.
3636
*/

include/mrdocs/Metadata/Info/Friend.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ struct FriendInfo final
2828

2929
/** Befriended type.
3030
*/
31-
PolymorphicValue<TypeInfo> FriendType;
31+
Polymorphic<TypeInfo> FriendType;
3232

3333
//--------------------------------------------
3434

include/mrdocs/Metadata/Info/Function.hpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
#include <mrdocs/Metadata/Source.hpp>
2222
#include <mrdocs/Metadata/Template.hpp>
2323
#include <mrdocs/Dom/LazyArray.hpp>
24-
#include <mrdocs/ADT/PolymorphicValue.hpp>
24+
#include <mrdocs/ADT/Polymorphic.hpp>
2525
#include <memory>
2626
#include <string>
2727
#include <vector>
@@ -90,7 +90,7 @@ tag_invoke(
9090
struct Param
9191
{
9292
/** The type of this parameter */
93-
PolymorphicValue<TypeInfo> Type;
93+
Polymorphic<TypeInfo> Type;
9494

9595
/** The parameter name.
9696
@@ -104,7 +104,7 @@ struct Param
104104
Param() = default;
105105

106106
Param(
107-
PolymorphicValue<TypeInfo>&& type,
107+
Polymorphic<TypeInfo>&& type,
108108
std::string&& name,
109109
std::string&& def_arg)
110110
: Type(std::move(type))
@@ -131,7 +131,7 @@ struct FunctionInfo final
131131
: InfoCommonBase<InfoKind::Function>
132132
{
133133
/// Info about the return type of this function.
134-
PolymorphicValue<TypeInfo> ReturnType;
134+
Polymorphic<TypeInfo> ReturnType;
135135

136136
/// List of parameters.
137137
std::vector<Param> Params;

include/mrdocs/Metadata/Info/Guide.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ struct GuideInfo final
3030
3131
This is always a SpecializationTypeInfo.
3232
*/
33-
PolymorphicValue<TypeInfo> Deduced;
33+
Polymorphic<TypeInfo> Deduced;
3434

3535
/** Template head, if any.
3636
*/

include/mrdocs/Metadata/Info/NamespaceAlias.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
#include <mrdocs/Platform.hpp>
1515
#include <mrdocs/Metadata/Info.hpp>
1616
#include <mrdocs/Metadata/Name.hpp>
17-
#include <mrdocs/ADT/PolymorphicValue.hpp>
17+
#include <mrdocs/ADT/Polymorphic.hpp>
1818

1919
namespace clang::mrdocs {
2020

@@ -24,7 +24,7 @@ struct NamespaceAliasInfo final
2424
: InfoCommonBase<InfoKind::NamespaceAlias>
2525
{
2626
/** The aliased symbol. */
27-
PolymorphicValue<NameInfo> AliasedSymbol;
27+
Polymorphic<NameInfo> AliasedSymbol;
2828

2929
//--------------------------------------------
3030

include/mrdocs/Metadata/Info/Record.hpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
#ifndef MRDOCS_API_METADATA_RECORD_HPP
1313
#define MRDOCS_API_METADATA_RECORD_HPP
1414

15-
#include <mrdocs/ADT/PolymorphicValue.hpp>
15+
#include <mrdocs/ADT/Polymorphic.hpp>
1616
#include <mrdocs/Metadata/Type.hpp>
1717
#include <mrdocs/Metadata/Info.hpp>
1818
#include <mrdocs/Metadata/Source.hpp>
@@ -220,14 +220,14 @@ allMembers(RecordInterface const& T)
220220
*/
221221
struct BaseInfo
222222
{
223-
PolymorphicValue<TypeInfo> Type;
223+
Polymorphic<TypeInfo> Type;
224224
AccessKind Access = AccessKind::Public;
225225
bool IsVirtual = false;
226226

227227
BaseInfo() = default;
228228

229229
BaseInfo(
230-
PolymorphicValue<TypeInfo>&& type,
230+
Polymorphic<TypeInfo>&& type,
231231
AccessKind const access,
232232
bool const is_virtual)
233233
: Type(std::move(type))

include/mrdocs/Metadata/Info/Specialization.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
#include <mrdocs/Platform.hpp>
1515
#include <mrdocs/Metadata/Info.hpp>
1616
#include <mrdocs/Metadata/Template.hpp>
17-
#include <mrdocs/ADT/PolymorphicValue.hpp>
17+
#include <mrdocs/ADT/Polymorphic.hpp>
1818
#include <vector>
1919

2020
namespace clang::mrdocs {
@@ -25,7 +25,7 @@ struct SpecializationInfo final
2525
: InfoCommonBase<InfoKind::Specialization>
2626
{
2727
/** The template arguments the parent template is specialized for */
28-
std::vector<PolymorphicValue<TArg>> Args;
28+
std::vector<Polymorphic<TArg>> Args;
2929

3030
/** ID of the template to which the arguments pertain */
3131
SymbolID Primary = SymbolID::invalid;

0 commit comments

Comments
 (0)