Skip to content

Commit

Permalink
fix: add schemagen --prefix-headers option
Browse files Browse the repository at this point in the history
  • Loading branch information
wravery committed Oct 26, 2024
1 parent 8d328c9 commit 11426ca
Show file tree
Hide file tree
Showing 116 changed files with 293 additions and 263 deletions.
1 change: 1 addition & 0 deletions include/SchemaGenerator.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ struct [[nodiscard("unnecessary construction")]] GeneratorOptions
const bool verbose = false;
const bool stubs = false;
const bool noIntrospection = false;
const bool prefixedHeaders = false;
};

class [[nodiscard("unnecessary construction")]] Generator
Expand Down
14 changes: 7 additions & 7 deletions samples/today/TodayMock.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@

#include "TodayMock.h"

#include "AppointmentConnectionObject.h"
#include "CompleteTaskPayloadObject.h"
#include "ExpensiveObject.h"
#include "FolderConnectionObject.h"
#include "NestedTypeObject.h"
#include "TaskConnectionObject.h"
#include "UnionTypeObject.h"
#include "TodayAppointmentConnectionObject.h"
#include "TodayCompleteTaskPayloadObject.h"
#include "TodayExpensiveObject.h"
#include "TodayFolderConnectionObject.h"
#include "TodayNestedTypeObject.h"
#include "TodayTaskConnectionObject.h"
#include "TodayUnionTypeObject.h"

#include <algorithm>
#include <chrono>
Expand Down
22 changes: 11 additions & 11 deletions samples/today/TodayMock.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,17 +8,17 @@

#include "TodaySchema.h"

#include "AppointmentEdgeObject.h"
#include "AppointmentObject.h"
#include "FolderEdgeObject.h"
#include "FolderObject.h"
#include "MutationObject.h"
#include "NodeObject.h"
#include "PageInfoObject.h"
#include "QueryObject.h"
#include "SubscriptionObject.h"
#include "TaskEdgeObject.h"
#include "TaskObject.h"
#include "TodayAppointmentEdgeObject.h"
#include "TodayAppointmentObject.h"
#include "TodayFolderEdgeObject.h"
#include "TodayFolderObject.h"
#include "TodayMutationObject.h"
#include "TodayNodeObject.h"
#include "TodayPageInfoObject.h"
#include "TodayQueryObject.h"
#include "TodaySubscriptionObject.h"
#include "TodayTaskEdgeObject.h"
#include "TodayTaskObject.h"

#include <atomic>
#include <memory>
Expand Down
6 changes: 3 additions & 3 deletions samples/today/nointrospection/AppointmentConnectionObject.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@

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

#include "AppointmentConnectionObject.h"
#include "PageInfoObject.h"
#include "AppointmentEdgeObject.h"
#include "TodayAppointmentConnectionObject.h"
#include "TodayPageInfoObject.h"
#include "TodayAppointmentEdgeObject.h"

#include "graphqlservice/internal/Schema.h"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

module;

#include "AppointmentConnectionObject.h"
#include "TodayAppointmentConnectionObject.h"

export module GraphQL.Today.AppointmentConnectionObject;

Expand Down
4 changes: 2 additions & 2 deletions samples/today/nointrospection/AppointmentEdgeObject.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@

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

#include "AppointmentEdgeObject.h"
#include "AppointmentObject.h"
#include "TodayAppointmentEdgeObject.h"
#include "TodayAppointmentObject.h"

#include "graphqlservice/internal/Schema.h"

Expand Down
2 changes: 1 addition & 1 deletion samples/today/nointrospection/AppointmentEdgeObject.ixx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

module;

#include "AppointmentEdgeObject.h"
#include "TodayAppointmentEdgeObject.h"

export module GraphQL.Today.AppointmentEdgeObject;

Expand Down
2 changes: 1 addition & 1 deletion samples/today/nointrospection/AppointmentObject.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

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

#include "AppointmentObject.h"
#include "TodayAppointmentObject.h"

#include "graphqlservice/internal/Schema.h"

Expand Down
2 changes: 1 addition & 1 deletion samples/today/nointrospection/AppointmentObject.ixx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

module;

#include "AppointmentObject.h"
#include "TodayAppointmentObject.h"

export module GraphQL.Today.AppointmentObject;

Expand Down
2 changes: 1 addition & 1 deletion samples/today/nointrospection/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ cmake_minimum_required(VERSION 3.28)
include(${CMAKE_CURRENT_SOURCE_DIR}/../../../cmake/cppgraphqlgen-functions.cmake)

if(GRAPHQL_UPDATE_SAMPLES)
update_graphql_schema_files(today_nointrospection ../schema.today.graphql Today today --stubs --no-introspection)
update_graphql_schema_files(today_nointrospection ../schema.today.graphql Today today --stubs --no-introspection --prefix-headers)
endif()

add_graphql_schema_target(today_nointrospection)
4 changes: 2 additions & 2 deletions samples/today/nointrospection/CompleteTaskPayloadObject.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@

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

#include "CompleteTaskPayloadObject.h"
#include "TaskObject.h"
#include "TodayCompleteTaskPayloadObject.h"
#include "TodayTaskObject.h"

#include "graphqlservice/internal/Schema.h"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

module;

#include "CompleteTaskPayloadObject.h"
#include "TodayCompleteTaskPayloadObject.h"

export module GraphQL.Today.CompleteTaskPayloadObject;

Expand Down
2 changes: 1 addition & 1 deletion samples/today/nointrospection/ExpensiveObject.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

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

#include "ExpensiveObject.h"
#include "TodayExpensiveObject.h"

#include "graphqlservice/internal/Schema.h"

Expand Down
2 changes: 1 addition & 1 deletion samples/today/nointrospection/ExpensiveObject.ixx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

module;

#include "ExpensiveObject.h"
#include "TodayExpensiveObject.h"

export module GraphQL.Today.ExpensiveObject;

Expand Down
6 changes: 3 additions & 3 deletions samples/today/nointrospection/FolderConnectionObject.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@

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

#include "FolderConnectionObject.h"
#include "PageInfoObject.h"
#include "FolderEdgeObject.h"
#include "TodayFolderConnectionObject.h"
#include "TodayPageInfoObject.h"
#include "TodayFolderEdgeObject.h"

#include "graphqlservice/internal/Schema.h"

Expand Down
2 changes: 1 addition & 1 deletion samples/today/nointrospection/FolderConnectionObject.ixx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

module;

#include "FolderConnectionObject.h"
#include "TodayFolderConnectionObject.h"

export module GraphQL.Today.FolderConnectionObject;

Expand Down
4 changes: 2 additions & 2 deletions samples/today/nointrospection/FolderEdgeObject.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@

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

#include "FolderEdgeObject.h"
#include "FolderObject.h"
#include "TodayFolderEdgeObject.h"
#include "TodayFolderObject.h"

#include "graphqlservice/internal/Schema.h"

Expand Down
2 changes: 1 addition & 1 deletion samples/today/nointrospection/FolderEdgeObject.ixx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

module;

#include "FolderEdgeObject.h"
#include "TodayFolderEdgeObject.h"

export module GraphQL.Today.FolderEdgeObject;

Expand Down
2 changes: 1 addition & 1 deletion samples/today/nointrospection/FolderObject.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

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

#include "FolderObject.h"
#include "TodayFolderObject.h"

#include "graphqlservice/internal/Schema.h"

Expand Down
2 changes: 1 addition & 1 deletion samples/today/nointrospection/FolderObject.ixx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

module;

#include "FolderObject.h"
#include "TodayFolderObject.h"

export module GraphQL.Today.FolderObject;

Expand Down
4 changes: 2 additions & 2 deletions samples/today/nointrospection/MutationObject.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@

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

#include "MutationObject.h"
#include "CompleteTaskPayloadObject.h"
#include "TodayMutationObject.h"
#include "TodayCompleteTaskPayloadObject.h"

#include "graphqlservice/internal/Schema.h"

Expand Down
2 changes: 1 addition & 1 deletion samples/today/nointrospection/MutationObject.ixx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

module;

#include "MutationObject.h"
#include "TodayMutationObject.h"

export module GraphQL.Today.MutationObject;

Expand Down
4 changes: 2 additions & 2 deletions samples/today/nointrospection/NestedTypeObject.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@

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

#include "NestedTypeObject.h"
#include "NestedTypeObject.h"
#include "TodayNestedTypeObject.h"
#include "TodayNestedTypeObject.h"

#include "graphqlservice/internal/Schema.h"

Expand Down
2 changes: 1 addition & 1 deletion samples/today/nointrospection/NestedTypeObject.ixx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

module;

#include "NestedTypeObject.h"
#include "TodayNestedTypeObject.h"

export module GraphQL.Today.NestedTypeObject;

Expand Down
2 changes: 1 addition & 1 deletion samples/today/nointrospection/NodeObject.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

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

#include "NodeObject.h"
#include "TodayNodeObject.h"

#include "graphqlservice/internal/Schema.h"

Expand Down
2 changes: 1 addition & 1 deletion samples/today/nointrospection/NodeObject.ixx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

module;

#include "NodeObject.h"
#include "TodayNodeObject.h"

export module GraphQL.Today.NodeObject;

Expand Down
2 changes: 1 addition & 1 deletion samples/today/nointrospection/PageInfoObject.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

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

#include "PageInfoObject.h"
#include "TodayPageInfoObject.h"

#include "graphqlservice/internal/Schema.h"

Expand Down
2 changes: 1 addition & 1 deletion samples/today/nointrospection/PageInfoObject.ixx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

module;

#include "PageInfoObject.h"
#include "TodayPageInfoObject.h"

export module GraphQL.Today.PageInfoObject;

Expand Down
22 changes: 11 additions & 11 deletions samples/today/nointrospection/QueryObject.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,17 @@

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

#include "QueryObject.h"
#include "NodeObject.h"
#include "AppointmentConnectionObject.h"
#include "TaskConnectionObject.h"
#include "FolderConnectionObject.h"
#include "AppointmentObject.h"
#include "TaskObject.h"
#include "FolderObject.h"
#include "NestedTypeObject.h"
#include "ExpensiveObject.h"
#include "UnionTypeObject.h"
#include "TodayQueryObject.h"
#include "TodayNodeObject.h"
#include "TodayAppointmentConnectionObject.h"
#include "TodayTaskConnectionObject.h"
#include "TodayFolderConnectionObject.h"
#include "TodayAppointmentObject.h"
#include "TodayTaskObject.h"
#include "TodayFolderObject.h"
#include "TodayNestedTypeObject.h"
#include "TodayExpensiveObject.h"
#include "TodayUnionTypeObject.h"

#include "graphqlservice/internal/Schema.h"

Expand Down
2 changes: 1 addition & 1 deletion samples/today/nointrospection/QueryObject.ixx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

module;

#include "QueryObject.h"
#include "TodayQueryObject.h"

export module GraphQL.Today.QueryObject;

Expand Down
6 changes: 3 additions & 3 deletions samples/today/nointrospection/SubscriptionObject.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@

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

#include "SubscriptionObject.h"
#include "AppointmentObject.h"
#include "NodeObject.h"
#include "TodaySubscriptionObject.h"
#include "TodayAppointmentObject.h"
#include "TodayNodeObject.h"

#include "graphqlservice/internal/Schema.h"

Expand Down
2 changes: 1 addition & 1 deletion samples/today/nointrospection/SubscriptionObject.ixx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

module;

#include "SubscriptionObject.h"
#include "TodaySubscriptionObject.h"

export module GraphQL.Today.SubscriptionObject;

Expand Down
6 changes: 3 additions & 3 deletions samples/today/nointrospection/TaskConnectionObject.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@

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

#include "TaskConnectionObject.h"
#include "PageInfoObject.h"
#include "TaskEdgeObject.h"
#include "TodayTaskConnectionObject.h"
#include "TodayPageInfoObject.h"
#include "TodayTaskEdgeObject.h"

#include "graphqlservice/internal/Schema.h"

Expand Down
2 changes: 1 addition & 1 deletion samples/today/nointrospection/TaskConnectionObject.ixx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

module;

#include "TaskConnectionObject.h"
#include "TodayTaskConnectionObject.h"

export module GraphQL.Today.TaskConnectionObject;

Expand Down
4 changes: 2 additions & 2 deletions samples/today/nointrospection/TaskEdgeObject.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@

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

#include "TaskEdgeObject.h"
#include "TaskObject.h"
#include "TodayTaskEdgeObject.h"
#include "TodayTaskObject.h"

#include "graphqlservice/internal/Schema.h"

Expand Down
Loading

0 comments on commit 11426ca

Please sign in to comment.