@@ -85,14 +85,14 @@ using ValidateArgumentVariant = std::variant<ValidateArgumentVariable, int, doub
85
85
86
86
struct [[nodiscard(" unnecessary construction" )]] ValidateArgumentValue
87
87
{
88
- ValidateArgumentValue (ValidateArgumentVariable && value);
88
+ ValidateArgumentValue (ValidateArgumentVariable&& value);
89
89
ValidateArgumentValue (int value);
90
90
ValidateArgumentValue (double value);
91
91
ValidateArgumentValue (std::string_view value);
92
92
ValidateArgumentValue (bool value);
93
- ValidateArgumentValue (ValidateArgumentEnumValue && value);
94
- ValidateArgumentValue (ValidateArgumentList && value);
95
- ValidateArgumentValue (ValidateArgumentMap && value);
93
+ ValidateArgumentValue (ValidateArgumentEnumValue&& value);
94
+ ValidateArgumentValue (ValidateArgumentList&& value);
95
+ ValidateArgumentValue (ValidateArgumentMap&& value);
96
96
97
97
ValidateArgumentVariant data;
98
98
};
@@ -102,7 +102,7 @@ struct [[nodiscard("unnecessary construction")]] ValidateArgumentValue
102
102
class [[nodiscard(" unnecessary construction" )]] ValidateArgumentValueVisitor
103
103
{
104
104
public:
105
- ValidateArgumentValueVisitor (std::list<schema_error> & errors);
105
+ ValidateArgumentValueVisitor (std::list<schema_error>& errors);
106
106
107
107
void visit (const peg::ast_node& value);
108
108
@@ -127,10 +127,8 @@ using ValidateFieldArguments = internal::string_view_map<ValidateArgumentValuePt
127
127
128
128
struct [[nodiscard(" unnecessary construction" )]] ValidateField
129
129
{
130
- ValidateField (ValidateType && returnType,
131
- ValidateType && objectType,
132
- std::string_view fieldName,
133
- ValidateFieldArguments && arguments);
130
+ ValidateField (ValidateType&& returnType, ValidateType&& objectType, std::string_view fieldName,
131
+ ValidateFieldArguments&& arguments);
134
132
135
133
[[nodiscard (" unnecessary call" )]] bool operator ==(const ValidateField& other) const ;
136
134
@@ -147,8 +145,8 @@ using ValidateTypes = internal::string_view_map<ValidateType>;
147
145
class [[nodiscard(" unnecessary construction" )]] ValidateVariableTypeVisitor
148
146
{
149
147
public:
150
- ValidateVariableTypeVisitor (const std::shared_ptr<schema::Schema>& schema,
151
- const ValidateTypes& types);
148
+ ValidateVariableTypeVisitor (
149
+ const std::shared_ptr<schema::Schema>& schema, const ValidateTypes& types);
152
150
153
151
void visit (const peg::ast_node& typeName);
154
152
@@ -176,7 +174,7 @@ class [[nodiscard("unnecessary construction")]] ValidateExecutableVisitor
176
174
177
175
GRAPHQLSERVICE_EXPORT void visit (const peg::ast_node& root);
178
176
179
- GRAPHQLSERVICE_EXPORT [[nodiscard (" unnecessary construction" )]] std::list<schema_error>
177
+ [[nodiscard (" unnecessary construction" )]] GRAPHQLSERVICE_EXPORT std::list<schema_error>
180
178
getStructuredErrors ();
181
179
182
180
private:
@@ -201,12 +199,11 @@ class [[nodiscard("unnecessary construction")]] ValidateExecutableVisitor
201
199
[[nodiscard (" unnecessary call" )]] static const ValidateType& getValidateFieldType (
202
200
const InputFieldTypes::mapped_type& value);
203
201
template <class _FieldTypes >
204
- [[nodiscard (" unnecessary call" )]] static ValidateType getFieldType (const _FieldTypes& fields,
205
- std::string_view name);
202
+ [[nodiscard (" unnecessary call" )]] static ValidateType getFieldType (
203
+ const _FieldTypes& fields, std::string_view name);
206
204
template <class _FieldTypes >
207
205
[[nodiscard (" unnecessary call" )]] static ValidateType getWrappedFieldType (
208
- const _FieldTypes& fields,
209
- std::string_view name);
206
+ const _FieldTypes& fields, std::string_view name);
210
207
211
208
void visitFragmentDefinition (const peg::ast_node& fragmentDefinition);
212
209
void visitOperationDefinition (const peg::ast_node& operationDefinition);
@@ -217,15 +214,13 @@ class [[nodiscard("unnecessary construction")]] ValidateExecutableVisitor
217
214
void visitFragmentSpread (const peg::ast_node& fragmentSpread);
218
215
void visitInlineFragment (const peg::ast_node& inlineFragment);
219
216
220
- void visitDirectives (introspection::DirectiveLocation location,
221
- const peg::ast_node& directives);
217
+ void visitDirectives (
218
+ introspection::DirectiveLocation location, const peg::ast_node& directives);
222
219
223
220
[[nodiscard (" unnecessary call" )]] bool validateInputValue (bool hasNonNullDefaultValue,
224
- const ValidateArgumentValuePtr& argument,
225
- const ValidateType& type);
221
+ const ValidateArgumentValuePtr& argument, const ValidateType& type);
226
222
[[nodiscard (" unnecessary call" )]] bool validateVariableType (bool isNonNull,
227
- const ValidateType& variableType,
228
- const schema_location& position,
223
+ const ValidateType& variableType, const schema_location& position,
229
224
const ValidateType& inputType);
230
225
231
226
const std::shared_ptr<schema::Schema> _schema;
0 commit comments