@@ -112,10 +112,10 @@ namespace graphql::client {
112
112
namespace multiple {
113
113
114
114
// Return the original text of the request document.
115
- const std::string& GetRequestText () noexcept ;
115
+ [[nodiscard]] const std::string& GetRequestText () noexcept ;
116
116
117
117
// Return a pre-parsed, pre-validated request object.
118
- const peg::ast& GetRequestObject () noexcept ;
118
+ [[nodiscard]] const peg::ast& GetRequestObject () noexcept ;
119
119
120
120
enum class [[nodiscard]] TaskState
121
121
{
@@ -125,7 +125,7 @@ enum class [[nodiscard]] TaskState
125
125
Unassigned,
126
126
};
127
127
128
- struct CompleteTaskInput
128
+ struct [[nodiscard]] CompleteTaskInput
129
129
{
130
130
response::IdType id {};
131
131
std::optional<TaskState> testTaskState {};
@@ -141,15 +141,15 @@ using multiple::GetRequestText;
141
141
using multiple::GetRequestObject;
142
142
143
143
// Return the name of this operation in the shared request document.
144
- const std::string& GetOperationName () noexcept ;
144
+ [[nodiscard]] const std::string& GetOperationName () noexcept ;
145
145
146
- struct Response
146
+ struct [[nodiscard]] Response
147
147
{
148
- struct appointments_AppointmentConnection
148
+ struct [[nodiscard]] appointments_AppointmentConnection
149
149
{
150
- struct edges_AppointmentEdge
150
+ struct [[nodiscard]] edges_AppointmentEdge
151
151
{
152
- struct node_Appointment
152
+ struct [[nodiscard]] node_Appointment
153
153
{
154
154
response::IdType id {};
155
155
std::optional<std::string> subject {};
@@ -167,7 +167,7 @@ struct Response
167
167
appointments_AppointmentConnection appointments {};
168
168
};
169
169
170
- Response parseResponse (response::Value&& response);
170
+ [[nodiscard]] Response parseResponse (response::Value&& response);
171
171
172
172
} // namespace query::Appointments
173
173
@@ -177,15 +177,15 @@ using multiple::GetRequestText;
177
177
using multiple::GetRequestObject;
178
178
179
179
// Return the name of this operation in the shared request document.
180
- const std::string& GetOperationName () noexcept ;
180
+ [[nodiscard]] const std::string& GetOperationName () noexcept ;
181
181
182
- struct Response
182
+ struct [[nodiscard]] Response
183
183
{
184
- struct tasks_TaskConnection
184
+ struct [[nodiscard]] tasks_TaskConnection
185
185
{
186
- struct edges_TaskEdge
186
+ struct [[nodiscard]] edges_TaskEdge
187
187
{
188
- struct node_Task
188
+ struct [[nodiscard]] node_Task
189
189
{
190
190
response::IdType id {};
191
191
std::optional<std::string> title {};
@@ -202,7 +202,7 @@ struct Response
202
202
tasks_TaskConnection tasks {};
203
203
};
204
204
205
- Response parseResponse (response::Value&& response);
205
+ [[nodiscard]] Response parseResponse (response::Value&& response);
206
206
207
207
} // namespace query::Tasks
208
208
@@ -212,15 +212,15 @@ using multiple::GetRequestText;
212
212
using multiple::GetRequestObject;
213
213
214
214
// Return the name of this operation in the shared request document.
215
- const std::string& GetOperationName () noexcept ;
215
+ [[nodiscard]] const std::string& GetOperationName () noexcept ;
216
216
217
- struct Response
217
+ struct [[nodiscard]] Response
218
218
{
219
- struct unreadCounts_FolderConnection
219
+ struct [[nodiscard]] unreadCounts_FolderConnection
220
220
{
221
- struct edges_FolderEdge
221
+ struct [[nodiscard]] edges_FolderEdge
222
222
{
223
- struct node_Folder
223
+ struct [[nodiscard]] node_Folder
224
224
{
225
225
response::IdType id {};
226
226
std::optional<std::string> name {};
@@ -237,7 +237,7 @@ struct Response
237
237
unreadCounts_FolderConnection unreadCounts {};
238
238
};
239
239
240
- Response parseResponse (response::Value&& response);
240
+ [[nodiscard]] Response parseResponse (response::Value&& response);
241
241
242
242
} // namespace query::UnreadCounts
243
243
@@ -247,13 +247,13 @@ using multiple::GetRequestText;
247
247
using multiple::GetRequestObject;
248
248
249
249
// Return the name of this operation in the shared request document.
250
- const std::string& GetOperationName () noexcept ;
250
+ [[nodiscard]] const std::string& GetOperationName () noexcept ;
251
251
252
252
using multiple::TaskState;
253
253
254
- struct Response
254
+ struct [[nodiscard]] Response
255
255
{
256
- struct anyType_UnionType
256
+ struct [[nodiscard]] anyType_UnionType
257
257
{
258
258
std::string _typename {};
259
259
response::IdType id {};
@@ -269,7 +269,7 @@ struct Response
269
269
std::optional<std::string> default_ {};
270
270
};
271
271
272
- Response parseResponse (response::Value&& response);
272
+ [[nodiscard]] Response parseResponse (response::Value&& response);
273
273
274
274
} // namespace query::Miscellaneous
275
275
@@ -279,25 +279,25 @@ using multiple::GetRequestText;
279
279
using multiple::GetRequestObject;
280
280
281
281
// Return the name of this operation in the shared request document.
282
- const std::string& GetOperationName () noexcept ;
282
+ [[nodiscard]] const std::string& GetOperationName () noexcept ;
283
283
284
284
using multiple::TaskState;
285
285
286
286
using multiple::CompleteTaskInput;
287
287
288
- struct Variables
288
+ struct [[nodiscard]] Variables
289
289
{
290
290
std::unique_ptr<CompleteTaskInput> input {};
291
291
bool skipClientMutationId {};
292
292
};
293
293
294
- response::Value serializeVariables (Variables&& variables);
294
+ [[nodiscard]] response::Value serializeVariables (Variables&& variables);
295
295
296
- struct Response
296
+ struct [[nodiscard]] Response
297
297
{
298
- struct completedTask_CompleteTaskPayload
298
+ struct [[nodiscard]] completedTask_CompleteTaskPayload
299
299
{
300
- struct completedTask_Task
300
+ struct [[nodiscard]] completedTask_Task
301
301
{
302
302
response::IdType completedTaskId {};
303
303
std::optional<std::string> title {};
@@ -311,7 +311,7 @@ struct Response
311
311
completedTask_CompleteTaskPayload completedTask {};
312
312
};
313
313
314
- Response parseResponse (response::Value&& response);
314
+ [[nodiscard]] Response parseResponse (response::Value&& response);
315
315
316
316
} // namespace mutation::CompleteTaskMutation
317
317
} // namespace graphql::client
0 commit comments