Skip to content

Commit 8bd97b6

Browse files
committed
fix(fmt): cleanup extra blank line in client module interfaces
1 parent b57272f commit 8bd97b6

File tree

8 files changed

+6
-17
lines changed

8 files changed

+6
-17
lines changed

samples/client/benchmark/BenchmarkClient.ixx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ export module GraphQL.Benchmark.BenchmarkClient;
1111

1212
export namespace graphql::client {
1313

14-
1514
namespace benchmark {
1615

1716
using benchmark::GetRequestText;

samples/client/multiple/MultipleQueriesClient.ixx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ export module GraphQL.MultipleQueries.MultipleQueriesClient;
1111

1212
export namespace graphql::client {
1313

14-
1514
namespace multiple {
1615

1716
using multiple::GetRequestText;

samples/client/mutate/MutateClient.ixx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ export module GraphQL.Mutate.MutateClient;
1111

1212
export namespace graphql::client {
1313

14-
1514
namespace mutate {
1615

1716
using mutate::GetRequestText;

samples/client/nestedinput/NestedInputClient.ixx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ export module GraphQL.NestedInput.NestedInputClient;
1111

1212
export namespace graphql::client {
1313

14-
1514
namespace nestedinput {
1615

1716
using nestedinput::GetRequestText;

samples/client/query/QueryClient.ixx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ export module GraphQL.Query.QueryClient;
1111

1212
export namespace graphql::client {
1313

14-
1514
namespace query {
1615

1716
using query::GetRequestText;

samples/client/subscribe/SubscribeClient.ixx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ export module GraphQL.Subscribe.SubscribeClient;
1111

1212
export namespace graphql::client {
1313

14-
1514
namespace subscribe {
1615

1716
using subscribe::GetRequestText;

samples/proxy/query/ProxyClient.ixx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ export module GraphQL.Proxy.ProxyClient;
1111

1212
export namespace graphql::client {
1313

14-
1514
namespace proxy {
1615

1716
using proxy::GetRequestText;

src/ClientGenerator.cpp

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -643,20 +643,15 @@ export )cpp";
643643

644644
moduleFile << std::endl;
645645

646-
NamespaceScope schemaNamespace { moduleFile, _schemaLoader.getSchemaNamespace(), true };
646+
NamespaceScope schemaNamespace { moduleFile, _schemaLoader.getSchemaNamespace() };
647647
PendingBlankLine pendingSeparator { moduleFile };
648648

649-
pendingSeparator.reset();
650-
if (schemaNamespace.enter())
651-
{
652-
moduleFile << R"cpp(
649+
moduleFile << R"cpp(
653650
using )cpp" << _schemaLoader.getSchemaNamespace()
654-
<< R"cpp(::GetRequestText;
651+
<< R"cpp(::GetRequestText;
655652
using )cpp" << _schemaLoader.getSchemaNamespace()
656-
<< R"cpp(::GetRequestObject;
653+
<< R"cpp(::GetRequestObject;
657654
)cpp";
658-
pendingSeparator.add();
659-
}
660655

661656
const auto& operations = _requestLoader.getOperations();
662657
std::unordered_set<std::string_view> declaredEnum;
@@ -1065,7 +1060,8 @@ response::Value Variable<)cpp"
10651060

10661061
sourceFile << R"cpp(template <>
10671062
response::Value Variable<)cpp"
1068-
<< cppType << R"cpp(>::serialize()cpp" << cppType << R"cpp(&& inputValue)
1063+
<< cppType << R"cpp(>::serialize()cpp" << cppType
1064+
<< R"cpp(&& inputValue)
10691065
{
10701066
response::Value result { response::Type::Map };
10711067

0 commit comments

Comments
 (0)