@@ -112,10 +112,10 @@ namespace graphql::client {
112112namespace multiple {
113113
114114// Return the original text of the request document.
115- const std::string& GetRequestText () noexcept ;
115+ [[nodiscard]] const std::string& GetRequestText () noexcept ;
116116
117117// Return a pre-parsed, pre-validated request object.
118- const peg::ast& GetRequestObject () noexcept ;
118+ [[nodiscard]] const peg::ast& GetRequestObject () noexcept ;
119119
120120enum class [[nodiscard]] TaskState
121121{
@@ -125,7 +125,7 @@ enum class [[nodiscard]] TaskState
125125 Unassigned,
126126};
127127
128- struct CompleteTaskInput
128+ struct [[nodiscard]] CompleteTaskInput
129129{
130130 response::IdType id {};
131131 std::optional<TaskState> testTaskState {};
@@ -141,15 +141,15 @@ using multiple::GetRequestText;
141141using multiple::GetRequestObject;
142142
143143// Return the name of this operation in the shared request document.
144- const std::string& GetOperationName () noexcept ;
144+ [[nodiscard]] const std::string& GetOperationName () noexcept ;
145145
146- struct Response
146+ struct [[nodiscard]] Response
147147{
148- struct appointments_AppointmentConnection
148+ struct [[nodiscard]] appointments_AppointmentConnection
149149 {
150- struct edges_AppointmentEdge
150+ struct [[nodiscard]] edges_AppointmentEdge
151151 {
152- struct node_Appointment
152+ struct [[nodiscard]] node_Appointment
153153 {
154154 response::IdType id {};
155155 std::optional<std::string> subject {};
@@ -167,7 +167,7 @@ struct Response
167167 appointments_AppointmentConnection appointments {};
168168};
169169
170- Response parseResponse (response::Value&& response);
170+ [[nodiscard]] Response parseResponse (response::Value&& response);
171171
172172} // namespace query::Appointments
173173
@@ -177,15 +177,15 @@ using multiple::GetRequestText;
177177using multiple::GetRequestObject;
178178
179179// Return the name of this operation in the shared request document.
180- const std::string& GetOperationName () noexcept ;
180+ [[nodiscard]] const std::string& GetOperationName () noexcept ;
181181
182- struct Response
182+ struct [[nodiscard]] Response
183183{
184- struct tasks_TaskConnection
184+ struct [[nodiscard]] tasks_TaskConnection
185185 {
186- struct edges_TaskEdge
186+ struct [[nodiscard]] edges_TaskEdge
187187 {
188- struct node_Task
188+ struct [[nodiscard]] node_Task
189189 {
190190 response::IdType id {};
191191 std::optional<std::string> title {};
@@ -202,7 +202,7 @@ struct Response
202202 tasks_TaskConnection tasks {};
203203};
204204
205- Response parseResponse (response::Value&& response);
205+ [[nodiscard]] Response parseResponse (response::Value&& response);
206206
207207} // namespace query::Tasks
208208
@@ -212,15 +212,15 @@ using multiple::GetRequestText;
212212using multiple::GetRequestObject;
213213
214214// Return the name of this operation in the shared request document.
215- const std::string& GetOperationName () noexcept ;
215+ [[nodiscard]] const std::string& GetOperationName () noexcept ;
216216
217- struct Response
217+ struct [[nodiscard]] Response
218218{
219- struct unreadCounts_FolderConnection
219+ struct [[nodiscard]] unreadCounts_FolderConnection
220220 {
221- struct edges_FolderEdge
221+ struct [[nodiscard]] edges_FolderEdge
222222 {
223- struct node_Folder
223+ struct [[nodiscard]] node_Folder
224224 {
225225 response::IdType id {};
226226 std::optional<std::string> name {};
@@ -237,7 +237,7 @@ struct Response
237237 unreadCounts_FolderConnection unreadCounts {};
238238};
239239
240- Response parseResponse (response::Value&& response);
240+ [[nodiscard]] Response parseResponse (response::Value&& response);
241241
242242} // namespace query::UnreadCounts
243243
@@ -247,13 +247,13 @@ using multiple::GetRequestText;
247247using multiple::GetRequestObject;
248248
249249// Return the name of this operation in the shared request document.
250- const std::string& GetOperationName () noexcept ;
250+ [[nodiscard]] const std::string& GetOperationName () noexcept ;
251251
252252using multiple::TaskState;
253253
254- struct Response
254+ struct [[nodiscard]] Response
255255{
256- struct anyType_UnionType
256+ struct [[nodiscard]] anyType_UnionType
257257 {
258258 std::string _typename {};
259259 response::IdType id {};
@@ -269,7 +269,7 @@ struct Response
269269 std::optional<std::string> default_ {};
270270};
271271
272- Response parseResponse (response::Value&& response);
272+ [[nodiscard]] Response parseResponse (response::Value&& response);
273273
274274} // namespace query::Miscellaneous
275275
@@ -279,25 +279,25 @@ using multiple::GetRequestText;
279279using multiple::GetRequestObject;
280280
281281// Return the name of this operation in the shared request document.
282- const std::string& GetOperationName () noexcept ;
282+ [[nodiscard]] const std::string& GetOperationName () noexcept ;
283283
284284using multiple::TaskState;
285285
286286using multiple::CompleteTaskInput;
287287
288- struct Variables
288+ struct [[nodiscard]] Variables
289289{
290290 std::unique_ptr<CompleteTaskInput> input {};
291291 bool skipClientMutationId {};
292292};
293293
294- response::Value serializeVariables (Variables&& variables);
294+ [[nodiscard]] response::Value serializeVariables (Variables&& variables);
295295
296- struct Response
296+ struct [[nodiscard]] Response
297297{
298- struct completedTask_CompleteTaskPayload
298+ struct [[nodiscard]] completedTask_CompleteTaskPayload
299299 {
300- struct completedTask_Task
300+ struct [[nodiscard]] completedTask_Task
301301 {
302302 response::IdType completedTaskId {};
303303 std::optional<std::string> title {};
@@ -311,7 +311,7 @@ struct Response
311311 completedTask_CompleteTaskPayload completedTask {};
312312};
313313
314- Response parseResponse (response::Value&& response);
314+ [[nodiscard]] Response parseResponse (response::Value&& response);
315315
316316} // namespace mutation::CompleteTaskMutation
317317} // namespace graphql::client
0 commit comments