Skip to content

Commit 11426ca

Browse files
committed
fix: add schemagen --prefix-headers option
1 parent 8d328c9 commit 11426ca

File tree

116 files changed

+293
-263
lines changed

Some content is hidden

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

116 files changed

+293
-263
lines changed

include/SchemaGenerator.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ struct [[nodiscard("unnecessary construction")]] GeneratorOptions
2424
const bool verbose = false;
2525
const bool stubs = false;
2626
const bool noIntrospection = false;
27+
const bool prefixedHeaders = false;
2728
};
2829

2930
class [[nodiscard("unnecessary construction")]] Generator

samples/today/TodayMock.cpp

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,13 @@
33

44
#include "TodayMock.h"
55

6-
#include "AppointmentConnectionObject.h"
7-
#include "CompleteTaskPayloadObject.h"
8-
#include "ExpensiveObject.h"
9-
#include "FolderConnectionObject.h"
10-
#include "NestedTypeObject.h"
11-
#include "TaskConnectionObject.h"
12-
#include "UnionTypeObject.h"
6+
#include "TodayAppointmentConnectionObject.h"
7+
#include "TodayCompleteTaskPayloadObject.h"
8+
#include "TodayExpensiveObject.h"
9+
#include "TodayFolderConnectionObject.h"
10+
#include "TodayNestedTypeObject.h"
11+
#include "TodayTaskConnectionObject.h"
12+
#include "TodayUnionTypeObject.h"
1313

1414
#include <algorithm>
1515
#include <chrono>

samples/today/TodayMock.h

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -8,17 +8,17 @@
88

99
#include "TodaySchema.h"
1010

11-
#include "AppointmentEdgeObject.h"
12-
#include "AppointmentObject.h"
13-
#include "FolderEdgeObject.h"
14-
#include "FolderObject.h"
15-
#include "MutationObject.h"
16-
#include "NodeObject.h"
17-
#include "PageInfoObject.h"
18-
#include "QueryObject.h"
19-
#include "SubscriptionObject.h"
20-
#include "TaskEdgeObject.h"
21-
#include "TaskObject.h"
11+
#include "TodayAppointmentEdgeObject.h"
12+
#include "TodayAppointmentObject.h"
13+
#include "TodayFolderEdgeObject.h"
14+
#include "TodayFolderObject.h"
15+
#include "TodayMutationObject.h"
16+
#include "TodayNodeObject.h"
17+
#include "TodayPageInfoObject.h"
18+
#include "TodayQueryObject.h"
19+
#include "TodaySubscriptionObject.h"
20+
#include "TodayTaskEdgeObject.h"
21+
#include "TodayTaskObject.h"
2222

2323
#include <atomic>
2424
#include <memory>

samples/today/nointrospection/AppointmentConnectionObject.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33

44
// WARNING! Do not edit this file manually, your changes will be overwritten.
55

6-
#include "AppointmentConnectionObject.h"
7-
#include "PageInfoObject.h"
8-
#include "AppointmentEdgeObject.h"
6+
#include "TodayAppointmentConnectionObject.h"
7+
#include "TodayPageInfoObject.h"
8+
#include "TodayAppointmentEdgeObject.h"
99

1010
#include "graphqlservice/internal/Schema.h"
1111

samples/today/nointrospection/AppointmentConnectionObject.ixx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
module;
77

8-
#include "AppointmentConnectionObject.h"
8+
#include "TodayAppointmentConnectionObject.h"
99

1010
export module GraphQL.Today.AppointmentConnectionObject;
1111

samples/today/nointrospection/AppointmentEdgeObject.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33

44
// WARNING! Do not edit this file manually, your changes will be overwritten.
55

6-
#include "AppointmentEdgeObject.h"
7-
#include "AppointmentObject.h"
6+
#include "TodayAppointmentEdgeObject.h"
7+
#include "TodayAppointmentObject.h"
88

99
#include "graphqlservice/internal/Schema.h"
1010

samples/today/nointrospection/AppointmentEdgeObject.ixx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
module;
77

8-
#include "AppointmentEdgeObject.h"
8+
#include "TodayAppointmentEdgeObject.h"
99

1010
export module GraphQL.Today.AppointmentEdgeObject;
1111

samples/today/nointrospection/AppointmentObject.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
// WARNING! Do not edit this file manually, your changes will be overwritten.
55

6-
#include "AppointmentObject.h"
6+
#include "TodayAppointmentObject.h"
77

88
#include "graphqlservice/internal/Schema.h"
99

samples/today/nointrospection/AppointmentObject.ixx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
module;
77

8-
#include "AppointmentObject.h"
8+
#include "TodayAppointmentObject.h"
99

1010
export module GraphQL.Today.AppointmentObject;
1111

samples/today/nointrospection/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ cmake_minimum_required(VERSION 3.28)
77
include(${CMAKE_CURRENT_SOURCE_DIR}/../../../cmake/cppgraphqlgen-functions.cmake)
88

99
if(GRAPHQL_UPDATE_SAMPLES)
10-
update_graphql_schema_files(today_nointrospection ../schema.today.graphql Today today --stubs --no-introspection)
10+
update_graphql_schema_files(today_nointrospection ../schema.today.graphql Today today --stubs --no-introspection --prefix-headers)
1111
endif()
1212

1313
add_graphql_schema_target(today_nointrospection)

0 commit comments

Comments
 (0)