Skip to content

Commit 6cde86b

Browse files
committed
Cleanup trailing whitespace throughout project
1 parent 9914c36 commit 6cde86b

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

65 files changed

+418
-418
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ add_subdirectory(src)
8888

8989
if(GRAPHQL_BUILD_TESTS OR GRAPHQL_UPDATE_SAMPLES)
9090
add_subdirectory(samples)
91-
91+
9292
if(GRAPHQL_BUILD_TESTS)
9393
include(CTest)
9494
add_subdirectory(test)

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Introduction
1+
# Introduction
22

33
![Windows](https://github.com/microsoft/cppgraphqlgen/workflows/Windows/badge.svg)
44
![macOS](https://github.com/microsoft/cppgraphqlgen/workflows/macOS/badge.svg)

doc/awaitable.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ public:
170170
}
171171

172172
...
173-
173+
174174
void return_value(const T& value) noexcept(std::is_nothrow_copy_constructible_v<T>)
175175
{
176176
_promise.set_value(value);
@@ -226,7 +226,7 @@ public:
226226
}
227227

228228
...
229-
229+
230230
void return_value(const T& value) noexcept(std::is_nothrow_copy_constructible_v<T>)
231231
{
232232
_promise.set_value(value);

doc/resolvers.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ struct RequestResolveParams
5454
};
5555
```
5656

57-
The only parameter which cannot be default initialized is `query`.
57+
The only parameter which cannot be default initialized is `query`.
5858

5959
The `service::await_async` launch policy is described in [awaitable.md](./awaitable.md).
6060
By default, the resolvers will run on the same thread synchronously.
@@ -126,13 +126,13 @@ on whether or not `T` matches those concepts:
126126
namespace methods::AppointmentHas {
127127

128128
template <class TImpl>
129-
concept getIdWithParams = requires (TImpl impl, service::FieldParams params)
129+
concept getIdWithParams = requires (TImpl impl, service::FieldParams params)
130130
{
131131
{ service::AwaitableScalar<response::IdType> { impl.getId(std::move(params)) } };
132132
};
133133

134134
template <class TImpl>
135-
concept getId = requires (TImpl impl)
135+
concept getId = requires (TImpl impl)
136136
{
137137
{ service::AwaitableScalar<response::IdType> { impl.getId() } };
138138
};

samples/learn/schema/CharacterObject.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ class Character
2424
virtual service::ResolverMap getResolvers() const noexcept = 0;
2525

2626
virtual void beginSelectionSet(const service::SelectionSetParams& params) const = 0;
27-
virtual void endSelectionSet(const service::SelectionSetParams& params) const = 0;
27+
virtual void endSelectionSet(const service::SelectionSetParams& params) const = 0;
2828
};
2929

3030
template <class T>

samples/learn/schema/DroidObject.h

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -21,73 +21,73 @@ concept DroidIs = std::is_same_v<I, Character>;
2121
namespace methods::DroidHas {
2222

2323
template <class TImpl>
24-
concept getIdWithParams = requires (TImpl impl, service::FieldParams params)
24+
concept getIdWithParams = requires (TImpl impl, service::FieldParams params)
2525
{
2626
{ service::AwaitableScalar<std::string> { impl.getId(std::move(params)) } };
2727
};
2828

2929
template <class TImpl>
30-
concept getId = requires (TImpl impl)
30+
concept getId = requires (TImpl impl)
3131
{
3232
{ service::AwaitableScalar<std::string> { impl.getId() } };
3333
};
3434

3535
template <class TImpl>
36-
concept getNameWithParams = requires (TImpl impl, service::FieldParams params)
36+
concept getNameWithParams = requires (TImpl impl, service::FieldParams params)
3737
{
3838
{ service::AwaitableScalar<std::optional<std::string>> { impl.getName(std::move(params)) } };
3939
};
4040

4141
template <class TImpl>
42-
concept getName = requires (TImpl impl)
42+
concept getName = requires (TImpl impl)
4343
{
4444
{ service::AwaitableScalar<std::optional<std::string>> { impl.getName() } };
4545
};
4646

4747
template <class TImpl>
48-
concept getFriendsWithParams = requires (TImpl impl, service::FieldParams params)
48+
concept getFriendsWithParams = requires (TImpl impl, service::FieldParams params)
4949
{
5050
{ service::AwaitableObject<std::optional<std::vector<std::shared_ptr<Character>>>> { impl.getFriends(std::move(params)) } };
5151
};
5252

5353
template <class TImpl>
54-
concept getFriends = requires (TImpl impl)
54+
concept getFriends = requires (TImpl impl)
5555
{
5656
{ service::AwaitableObject<std::optional<std::vector<std::shared_ptr<Character>>>> { impl.getFriends() } };
5757
};
5858

5959
template <class TImpl>
60-
concept getAppearsInWithParams = requires (TImpl impl, service::FieldParams params)
60+
concept getAppearsInWithParams = requires (TImpl impl, service::FieldParams params)
6161
{
6262
{ service::AwaitableScalar<std::optional<std::vector<std::optional<Episode>>>> { impl.getAppearsIn(std::move(params)) } };
6363
};
6464

6565
template <class TImpl>
66-
concept getAppearsIn = requires (TImpl impl)
66+
concept getAppearsIn = requires (TImpl impl)
6767
{
6868
{ service::AwaitableScalar<std::optional<std::vector<std::optional<Episode>>>> { impl.getAppearsIn() } };
6969
};
7070

7171
template <class TImpl>
72-
concept getPrimaryFunctionWithParams = requires (TImpl impl, service::FieldParams params)
72+
concept getPrimaryFunctionWithParams = requires (TImpl impl, service::FieldParams params)
7373
{
7474
{ service::AwaitableScalar<std::optional<std::string>> { impl.getPrimaryFunction(std::move(params)) } };
7575
};
7676

7777
template <class TImpl>
78-
concept getPrimaryFunction = requires (TImpl impl)
78+
concept getPrimaryFunction = requires (TImpl impl)
7979
{
8080
{ service::AwaitableScalar<std::optional<std::string>> { impl.getPrimaryFunction() } };
8181
};
8282

8383
template <class TImpl>
84-
concept beginSelectionSet = requires (TImpl impl, const service::SelectionSetParams params)
84+
concept beginSelectionSet = requires (TImpl impl, const service::SelectionSetParams params)
8585
{
8686
{ impl.beginSelectionSet(params) };
8787
};
8888

8989
template <class TImpl>
90-
concept endSelectionSet = requires (TImpl impl, const service::SelectionSetParams params)
90+
concept endSelectionSet = requires (TImpl impl, const service::SelectionSetParams params)
9191
{
9292
{ impl.endSelectionSet(params) };
9393
};

samples/learn/schema/HumanObject.h

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -21,73 +21,73 @@ concept HumanIs = std::is_same_v<I, Character>;
2121
namespace methods::HumanHas {
2222

2323
template <class TImpl>
24-
concept getIdWithParams = requires (TImpl impl, service::FieldParams params)
24+
concept getIdWithParams = requires (TImpl impl, service::FieldParams params)
2525
{
2626
{ service::AwaitableScalar<std::string> { impl.getId(std::move(params)) } };
2727
};
2828

2929
template <class TImpl>
30-
concept getId = requires (TImpl impl)
30+
concept getId = requires (TImpl impl)
3131
{
3232
{ service::AwaitableScalar<std::string> { impl.getId() } };
3333
};
3434

3535
template <class TImpl>
36-
concept getNameWithParams = requires (TImpl impl, service::FieldParams params)
36+
concept getNameWithParams = requires (TImpl impl, service::FieldParams params)
3737
{
3838
{ service::AwaitableScalar<std::optional<std::string>> { impl.getName(std::move(params)) } };
3939
};
4040

4141
template <class TImpl>
42-
concept getName = requires (TImpl impl)
42+
concept getName = requires (TImpl impl)
4343
{
4444
{ service::AwaitableScalar<std::optional<std::string>> { impl.getName() } };
4545
};
4646

4747
template <class TImpl>
48-
concept getFriendsWithParams = requires (TImpl impl, service::FieldParams params)
48+
concept getFriendsWithParams = requires (TImpl impl, service::FieldParams params)
4949
{
5050
{ service::AwaitableObject<std::optional<std::vector<std::shared_ptr<Character>>>> { impl.getFriends(std::move(params)) } };
5151
};
5252

5353
template <class TImpl>
54-
concept getFriends = requires (TImpl impl)
54+
concept getFriends = requires (TImpl impl)
5555
{
5656
{ service::AwaitableObject<std::optional<std::vector<std::shared_ptr<Character>>>> { impl.getFriends() } };
5757
};
5858

5959
template <class TImpl>
60-
concept getAppearsInWithParams = requires (TImpl impl, service::FieldParams params)
60+
concept getAppearsInWithParams = requires (TImpl impl, service::FieldParams params)
6161
{
6262
{ service::AwaitableScalar<std::optional<std::vector<std::optional<Episode>>>> { impl.getAppearsIn(std::move(params)) } };
6363
};
6464

6565
template <class TImpl>
66-
concept getAppearsIn = requires (TImpl impl)
66+
concept getAppearsIn = requires (TImpl impl)
6767
{
6868
{ service::AwaitableScalar<std::optional<std::vector<std::optional<Episode>>>> { impl.getAppearsIn() } };
6969
};
7070

7171
template <class TImpl>
72-
concept getHomePlanetWithParams = requires (TImpl impl, service::FieldParams params)
72+
concept getHomePlanetWithParams = requires (TImpl impl, service::FieldParams params)
7373
{
7474
{ service::AwaitableScalar<std::optional<std::string>> { impl.getHomePlanet(std::move(params)) } };
7575
};
7676

7777
template <class TImpl>
78-
concept getHomePlanet = requires (TImpl impl)
78+
concept getHomePlanet = requires (TImpl impl)
7979
{
8080
{ service::AwaitableScalar<std::optional<std::string>> { impl.getHomePlanet() } };
8181
};
8282

8383
template <class TImpl>
84-
concept beginSelectionSet = requires (TImpl impl, const service::SelectionSetParams params)
84+
concept beginSelectionSet = requires (TImpl impl, const service::SelectionSetParams params)
8585
{
8686
{ impl.beginSelectionSet(params) };
8787
};
8888

8989
template <class TImpl>
90-
concept endSelectionSet = requires (TImpl impl, const service::SelectionSetParams params)
90+
concept endSelectionSet = requires (TImpl impl, const service::SelectionSetParams params)
9191
{
9292
{ impl.endSelectionSet(params) };
9393
};

samples/learn/schema/MutationObject.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,25 +14,25 @@ namespace graphql::learn::object {
1414
namespace methods::MutationHas {
1515

1616
template <class TImpl>
17-
concept applyCreateReviewWithParams = requires (TImpl impl, service::FieldParams params, Episode epArg, ReviewInput reviewArg)
17+
concept applyCreateReviewWithParams = requires (TImpl impl, service::FieldParams params, Episode epArg, ReviewInput reviewArg)
1818
{
1919
{ service::AwaitableObject<std::shared_ptr<Review>> { impl.applyCreateReview(std::move(params), std::move(epArg), std::move(reviewArg)) } };
2020
};
2121

2222
template <class TImpl>
23-
concept applyCreateReview = requires (TImpl impl, Episode epArg, ReviewInput reviewArg)
23+
concept applyCreateReview = requires (TImpl impl, Episode epArg, ReviewInput reviewArg)
2424
{
2525
{ service::AwaitableObject<std::shared_ptr<Review>> { impl.applyCreateReview(std::move(epArg), std::move(reviewArg)) } };
2626
};
2727

2828
template <class TImpl>
29-
concept beginSelectionSet = requires (TImpl impl, const service::SelectionSetParams params)
29+
concept beginSelectionSet = requires (TImpl impl, const service::SelectionSetParams params)
3030
{
3131
{ impl.beginSelectionSet(params) };
3232
};
3333

3434
template <class TImpl>
35-
concept endSelectionSet = requires (TImpl impl, const service::SelectionSetParams params)
35+
concept endSelectionSet = requires (TImpl impl, const service::SelectionSetParams params)
3636
{
3737
{ impl.endSelectionSet(params) };
3838
};

samples/learn/schema/QueryObject.h

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -14,49 +14,49 @@ namespace graphql::learn::object {
1414
namespace methods::QueryHas {
1515

1616
template <class TImpl>
17-
concept getHeroWithParams = requires (TImpl impl, service::FieldParams params, std::optional<Episode> episodeArg)
17+
concept getHeroWithParams = requires (TImpl impl, service::FieldParams params, std::optional<Episode> episodeArg)
1818
{
1919
{ service::AwaitableObject<std::shared_ptr<Character>> { impl.getHero(std::move(params), std::move(episodeArg)) } };
2020
};
2121

2222
template <class TImpl>
23-
concept getHero = requires (TImpl impl, std::optional<Episode> episodeArg)
23+
concept getHero = requires (TImpl impl, std::optional<Episode> episodeArg)
2424
{
2525
{ service::AwaitableObject<std::shared_ptr<Character>> { impl.getHero(std::move(episodeArg)) } };
2626
};
2727

2828
template <class TImpl>
29-
concept getHumanWithParams = requires (TImpl impl, service::FieldParams params, std::string idArg)
29+
concept getHumanWithParams = requires (TImpl impl, service::FieldParams params, std::string idArg)
3030
{
3131
{ service::AwaitableObject<std::shared_ptr<Human>> { impl.getHuman(std::move(params), std::move(idArg)) } };
3232
};
3333

3434
template <class TImpl>
35-
concept getHuman = requires (TImpl impl, std::string idArg)
35+
concept getHuman = requires (TImpl impl, std::string idArg)
3636
{
3737
{ service::AwaitableObject<std::shared_ptr<Human>> { impl.getHuman(std::move(idArg)) } };
3838
};
3939

4040
template <class TImpl>
41-
concept getDroidWithParams = requires (TImpl impl, service::FieldParams params, std::string idArg)
41+
concept getDroidWithParams = requires (TImpl impl, service::FieldParams params, std::string idArg)
4242
{
4343
{ service::AwaitableObject<std::shared_ptr<Droid>> { impl.getDroid(std::move(params), std::move(idArg)) } };
4444
};
4545

4646
template <class TImpl>
47-
concept getDroid = requires (TImpl impl, std::string idArg)
47+
concept getDroid = requires (TImpl impl, std::string idArg)
4848
{
4949
{ service::AwaitableObject<std::shared_ptr<Droid>> { impl.getDroid(std::move(idArg)) } };
5050
};
5151

5252
template <class TImpl>
53-
concept beginSelectionSet = requires (TImpl impl, const service::SelectionSetParams params)
53+
concept beginSelectionSet = requires (TImpl impl, const service::SelectionSetParams params)
5454
{
5555
{ impl.beginSelectionSet(params) };
5656
};
5757

5858
template <class TImpl>
59-
concept endSelectionSet = requires (TImpl impl, const service::SelectionSetParams params)
59+
concept endSelectionSet = requires (TImpl impl, const service::SelectionSetParams params)
6060
{
6161
{ impl.endSelectionSet(params) };
6262
};

samples/learn/schema/ReviewObject.h

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,37 +14,37 @@ namespace graphql::learn::object {
1414
namespace methods::ReviewHas {
1515

1616
template <class TImpl>
17-
concept getStarsWithParams = requires (TImpl impl, service::FieldParams params)
17+
concept getStarsWithParams = requires (TImpl impl, service::FieldParams params)
1818
{
1919
{ service::AwaitableScalar<int> { impl.getStars(std::move(params)) } };
2020
};
2121

2222
template <class TImpl>
23-
concept getStars = requires (TImpl impl)
23+
concept getStars = requires (TImpl impl)
2424
{
2525
{ service::AwaitableScalar<int> { impl.getStars() } };
2626
};
2727

2828
template <class TImpl>
29-
concept getCommentaryWithParams = requires (TImpl impl, service::FieldParams params)
29+
concept getCommentaryWithParams = requires (TImpl impl, service::FieldParams params)
3030
{
3131
{ service::AwaitableScalar<std::optional<std::string>> { impl.getCommentary(std::move(params)) } };
3232
};
3333

3434
template <class TImpl>
35-
concept getCommentary = requires (TImpl impl)
35+
concept getCommentary = requires (TImpl impl)
3636
{
3737
{ service::AwaitableScalar<std::optional<std::string>> { impl.getCommentary() } };
3838
};
3939

4040
template <class TImpl>
41-
concept beginSelectionSet = requires (TImpl impl, const service::SelectionSetParams params)
41+
concept beginSelectionSet = requires (TImpl impl, const service::SelectionSetParams params)
4242
{
4343
{ impl.beginSelectionSet(params) };
4444
};
4545

4646
template <class TImpl>
47-
concept endSelectionSet = requires (TImpl impl, const service::SelectionSetParams params)
47+
concept endSelectionSet = requires (TImpl impl, const service::SelectionSetParams params)
4848
{
4949
{ impl.endSelectionSet(params) };
5050
};

0 commit comments

Comments
 (0)