Skip to content

Commit aea4acf

Browse files
committed
perf: preprocess tranches
1 parent 40ac7f3 commit aea4acf

File tree

194 files changed

+6602
-5047
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

194 files changed

+6602
-5047
lines changed

docs/mrdocs.schema.json

+21
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,17 @@
158158
"title": "Include paths",
159159
"type": "array"
160160
},
161+
"inherit-base-members": {
162+
"default": "copy-dependencies",
163+
"description": "Determine how derived classes inherit members of base classes. When set to `never`, derived classes do not inherit members of base classes and only the relationship is stored. When set to `reference`, derived classes list members of base classes but references are still linked to the base class. When set to `copy`, a copy is created for each base symbol as if it was declared in the derived class. If the base class is a dependency, the extraction mode is copied from the new parent. When set to `copy-dependencies`, a reference is created by default and a copy is created when the base class is a dependency.",
164+
"enum": [
165+
"never",
166+
"reference",
167+
"copy",
168+
"copy-dependencies"
169+
],
170+
"title": "Determine how derived classes inherit base members"
171+
},
161172
"input": {
162173
"default": [
163174
"<source-root>/."
@@ -219,6 +230,16 @@
219230
"title": "Directory or file for generating output",
220231
"type": "string"
221232
},
233+
"overloads": {
234+
"default": true,
235+
"description": "When set to `true`, MrDocs detects function overloads and groups them as a single symbol type.",
236+
"enum": [
237+
true,
238+
false
239+
],
240+
"title": "Detect and group function overloads",
241+
"type": "boolean"
242+
},
222243
"private-bases": {
223244
"default": true,
224245
"description": "Determine whether private base classes should be extracted",

include/mrdocs/ADT/Optional.hpp

+7-6
Original file line numberDiff line numberDiff line change
@@ -64,10 +64,9 @@ class Optional
6464
using value_type = T;
6565

6666
constexpr Optional() = default;
67-
constexpr Optional(
68-
Optional const& other) = default;
69-
constexpr Optional& operator=(
70-
Optional const& other) = default;
67+
constexpr Optional(Optional const& other) = default;
68+
constexpr Optional& operator=(Optional const& other) = default;
69+
constexpr Optional& operator=(Optional&& other) = default;
7170

7271
template<class U>
7372
requires std::is_constructible_v<T, U>
@@ -94,7 +93,7 @@ class Optional
9493
return t_;
9594
}
9695

97-
constexpr const value_type& value() const & noexcept
96+
constexpr value_type const& value() const & noexcept
9897
{
9998
return t_;
10099
}
@@ -104,7 +103,7 @@ class Optional
104103
return std::move(t_);
105104
}
106105

107-
constexpr const value_type&& value() const && noexcept
106+
constexpr value_type const&& value() const && noexcept
108107
{
109108
return std::move(t_);
110109
}
@@ -138,6 +137,8 @@ class Optional
138137
{
139138
return ! EmptyPredicate()(t_);
140139
}
140+
141+
auto operator<=>(Optional const&) const = default;
141142
};
142143

143144
} // clang::mrdocs

include/mrdocs/ADT/PolymorphicValue.hpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ class BadPolymorphicValueConstruction
7070
{
7171
public:
7272
BadPolymorphicValueConstruction() noexcept = default;
73-
const char* what() const noexcept override {
73+
char const* what() const noexcept override {
7474
return "bad polymorphic value construction";
7575
}
7676
};

0 commit comments

Comments
 (0)