Skip to content

Commit cc51677

Browse files
committed
Make isInputType noexcept consistently
1 parent 3047fc9 commit cc51677

File tree

7 files changed

+21
-21
lines changed

7 files changed

+21
-21
lines changed

include/graphqlservice/GraphQLClient.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ enum class TypeModifier
7373

7474
// Specialized to return true for all INPUT_OBJECT types.
7575
template <typename Type>
76-
constexpr bool isInputType()
76+
constexpr bool isInputType() noexcept
7777
{
7878
return false;
7979
}

include/graphqlservice/GraphQLService.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -593,7 +593,7 @@ enum class TypeModifier
593593

594594
// Specialized to return true for all INPUT_OBJECT types.
595595
template <typename Type>
596-
constexpr bool isInputType()
596+
constexpr bool isInputType() noexcept
597597
{
598598
return false;
599599
}

samples/learn/schema/StarWarsSchema.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ std::shared_ptr<schema::Schema> GetSchema();
9090
namespace service {
9191

9292
template <>
93-
constexpr bool isInputType<learn::ReviewInput>()
93+
constexpr bool isInputType<learn::ReviewInput>() noexcept
9494
{
9595
return true;
9696
}

samples/today/nointrospection/TodaySchema.h

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -160,49 +160,49 @@ std::shared_ptr<schema::Schema> GetSchema();
160160
namespace service {
161161

162162
template <>
163-
constexpr bool isInputType<today::CompleteTaskInput>()
163+
constexpr bool isInputType<today::CompleteTaskInput>() noexcept
164164
{
165165
return true;
166166
}
167167

168168
template <>
169-
constexpr bool isInputType<today::ThirdNestedInput>()
169+
constexpr bool isInputType<today::ThirdNestedInput>() noexcept
170170
{
171171
return true;
172172
}
173173

174174
template <>
175-
constexpr bool isInputType<today::FourthNestedInput>()
175+
constexpr bool isInputType<today::FourthNestedInput>() noexcept
176176
{
177177
return true;
178178
}
179179

180180
template <>
181-
constexpr bool isInputType<today::IncludeNullableSelfInput>()
181+
constexpr bool isInputType<today::IncludeNullableSelfInput>() noexcept
182182
{
183183
return true;
184184
}
185185

186186
template <>
187-
constexpr bool isInputType<today::IncludeNonNullableListSelfInput>()
187+
constexpr bool isInputType<today::IncludeNonNullableListSelfInput>() noexcept
188188
{
189189
return true;
190190
}
191191

192192
template <>
193-
constexpr bool isInputType<today::SecondNestedInput>()
193+
constexpr bool isInputType<today::SecondNestedInput>() noexcept
194194
{
195195
return true;
196196
}
197197

198198
template <>
199-
constexpr bool isInputType<today::ForwardDeclaredInput>()
199+
constexpr bool isInputType<today::ForwardDeclaredInput>() noexcept
200200
{
201201
return true;
202202
}
203203

204204
template <>
205-
constexpr bool isInputType<today::FirstNestedInput>()
205+
constexpr bool isInputType<today::FirstNestedInput>() noexcept
206206
{
207207
return true;
208208
}

samples/today/schema/TodaySchema.h

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -160,49 +160,49 @@ std::shared_ptr<schema::Schema> GetSchema();
160160
namespace service {
161161

162162
template <>
163-
constexpr bool isInputType<today::CompleteTaskInput>()
163+
constexpr bool isInputType<today::CompleteTaskInput>() noexcept
164164
{
165165
return true;
166166
}
167167

168168
template <>
169-
constexpr bool isInputType<today::ThirdNestedInput>()
169+
constexpr bool isInputType<today::ThirdNestedInput>() noexcept
170170
{
171171
return true;
172172
}
173173

174174
template <>
175-
constexpr bool isInputType<today::FourthNestedInput>()
175+
constexpr bool isInputType<today::FourthNestedInput>() noexcept
176176
{
177177
return true;
178178
}
179179

180180
template <>
181-
constexpr bool isInputType<today::IncludeNullableSelfInput>()
181+
constexpr bool isInputType<today::IncludeNullableSelfInput>() noexcept
182182
{
183183
return true;
184184
}
185185

186186
template <>
187-
constexpr bool isInputType<today::IncludeNonNullableListSelfInput>()
187+
constexpr bool isInputType<today::IncludeNonNullableListSelfInput>() noexcept
188188
{
189189
return true;
190190
}
191191

192192
template <>
193-
constexpr bool isInputType<today::SecondNestedInput>()
193+
constexpr bool isInputType<today::SecondNestedInput>() noexcept
194194
{
195195
return true;
196196
}
197197

198198
template <>
199-
constexpr bool isInputType<today::ForwardDeclaredInput>()
199+
constexpr bool isInputType<today::ForwardDeclaredInput>() noexcept
200200
{
201201
return true;
202202
}
203203

204204
template <>
205-
constexpr bool isInputType<today::FirstNestedInput>()
205+
constexpr bool isInputType<today::FirstNestedInput>() noexcept
206206
{
207207
return true;
208208
}

samples/validation/schema/ValidationSchema.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ std::shared_ptr<schema::Schema> GetSchema();
129129
namespace service {
130130

131131
template <>
132-
constexpr bool isInputType<validation::ComplexInput>()
132+
constexpr bool isInputType<validation::ComplexInput>() noexcept
133133
{
134134
return true;
135135
}

src/SchemaGenerator.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -545,7 +545,7 @@ GRAPHQLSERVICE_EXPORT )cpp" << _loader.getSchemaNamespace()
545545
headerFile << R"cpp(template <>
546546
constexpr bool isInputType<)cpp"
547547
<< _loader.getSchemaNamespace() << R"cpp(::)cpp" << inputType.cppType
548-
<< R"cpp(>()
548+
<< R"cpp(>() noexcept
549549
{
550550
return true;
551551
}

0 commit comments

Comments
 (0)