@@ -85,14 +85,14 @@ using ValidateArgumentVariant = std::variant<ValidateArgumentVariable, int, doub
8585
8686struct [[nodiscard(" unnecessary construction" )]] ValidateArgumentValue
8787{
88- ValidateArgumentValue (ValidateArgumentVariable && value);
88+ ValidateArgumentValue (ValidateArgumentVariable&& value);
8989 ValidateArgumentValue (int value);
9090 ValidateArgumentValue (double value);
9191 ValidateArgumentValue (std::string_view value);
9292 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);
9696
9797 ValidateArgumentVariant data;
9898};
@@ -102,7 +102,7 @@ struct [[nodiscard("unnecessary construction")]] ValidateArgumentValue
102102class [[nodiscard(" unnecessary construction" )]] ValidateArgumentValueVisitor
103103{
104104public:
105- ValidateArgumentValueVisitor (std::list<schema_error> & errors);
105+ ValidateArgumentValueVisitor (std::list<schema_error>& errors);
106106
107107 void visit (const peg::ast_node& value);
108108
@@ -127,10 +127,8 @@ using ValidateFieldArguments = internal::string_view_map<ValidateArgumentValuePt
127127
128128struct [[nodiscard(" unnecessary construction" )]] ValidateField
129129{
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);
134132
135133 [[nodiscard (" unnecessary call" )]] bool operator ==(const ValidateField& other) const ;
136134
@@ -147,8 +145,8 @@ using ValidateTypes = internal::string_view_map<ValidateType>;
147145class [[nodiscard(" unnecessary construction" )]] ValidateVariableTypeVisitor
148146{
149147public:
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);
152150
153151 void visit (const peg::ast_node& typeName);
154152
@@ -176,7 +174,7 @@ class [[nodiscard("unnecessary construction")]] ValidateExecutableVisitor
176174
177175 GRAPHQLSERVICE_EXPORT void visit (const peg::ast_node& root);
178176
179- GRAPHQLSERVICE_EXPORT [[nodiscard (" unnecessary construction" )]] std::list<schema_error>
177+ [[nodiscard (" unnecessary construction" )]] GRAPHQLSERVICE_EXPORT std::list<schema_error>
180178 getStructuredErrors ();
181179
182180private:
@@ -201,12 +199,11 @@ class [[nodiscard("unnecessary construction")]] ValidateExecutableVisitor
201199 [[nodiscard (" unnecessary call" )]] static const ValidateType& getValidateFieldType (
202200 const InputFieldTypes::mapped_type& value);
203201 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);
206204 template <class _FieldTypes >
207205 [[nodiscard (" unnecessary call" )]] static ValidateType getWrappedFieldType (
208- const _FieldTypes& fields,
209- std::string_view name);
206+ const _FieldTypes& fields, std::string_view name);
210207
211208 void visitFragmentDefinition (const peg::ast_node& fragmentDefinition);
212209 void visitOperationDefinition (const peg::ast_node& operationDefinition);
@@ -217,15 +214,13 @@ class [[nodiscard("unnecessary construction")]] ValidateExecutableVisitor
217214 void visitFragmentSpread (const peg::ast_node& fragmentSpread);
218215 void visitInlineFragment (const peg::ast_node& inlineFragment);
219216
220- void visitDirectives (introspection::DirectiveLocation location,
221- const peg::ast_node& directives);
217+ void visitDirectives (
218+ introspection::DirectiveLocation location, const peg::ast_node& directives);
222219
223220 [[nodiscard (" unnecessary call" )]] bool validateInputValue (bool hasNonNullDefaultValue,
224- const ValidateArgumentValuePtr& argument,
225- const ValidateType& type);
221+ const ValidateArgumentValuePtr& argument, const ValidateType& type);
226222 [[nodiscard (" unnecessary call" )]] bool validateVariableType (bool isNonNull,
227- const ValidateType& variableType,
228- const schema_location& position,
223+ const ValidateType& variableType, const schema_location& position,
229224 const ValidateType& inputType);
230225
231226 const std::shared_ptr<schema::Schema> _schema;
0 commit comments