Skip to content

Backport compatible changes from v4.0.0 to v3.7.0 #190

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 26 commits into from
Dec 17, 2021
Merged
Changes from 1 commit
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
dae73e5
Implement block quote whitespace normalization
wravery Dec 10, 2021
8d1889f
Export a type erased JSON writer object
wravery Dec 13, 2021
7fbcab6
Only install new CMake files for install configs
wravery Dec 15, 2021
541c944
Update JSON documentation to describe response::Writer
wravery Dec 16, 2021
111c301
Minor correction to comment about parseSchema
wravery Dec 16, 2021
5f5934b
Default initialize input type struct members
wravery Dec 16, 2021
98afa30
Re-use the same Library.rc.in and Generator.rc.in files across targets
wravery Dec 17, 2021
deb31f1
Get latest release of PEGTL
wravery Oct 27, 2021
c627ba7
Bump minor version for v3.7.0 release
wravery Dec 17, 2021
f72e955
Fix double std::move(variables) in tests
wravery Nov 1, 2021
db39c99
Encapsulate code gen in reusable cmake functions
wravery Dec 3, 2021
20aa7b1
Put back older command line args for schemagen
wravery Dec 17, 2021
435b48e
Extract clientgen cmake functions as well
wravery Dec 3, 2021
c4dd72a
Disambiguate copy_sample_dlls target names
wravery Dec 3, 2021
a689906
Remove out-of-date WORKING_DIRECTORY
wravery Dec 3, 2021
d48d1d6
Install update-client-files script
wravery Dec 3, 2021
acdcbae
Add comments indicating not to copy include statements
wravery Dec 3, 2021
9422dc3
Fix mismatch in sentinel file names and cleanup targets
wravery Dec 6, 2021
9873870
Codegen targets should depend on the generators
wravery Dec 7, 2021
44a6261
Use R"gql(...)gql"sv for names in getTypeNames
wravery Dec 8, 2021
09ab2b5
Update files with latest schemagen
wravery Dec 17, 2021
6ae3790
Escape string literals with GraphQL tokens
wravery Dec 8, 2021
0062814
Include fewer headers and rely on forward declaration in ...Schema.h
wravery Dec 9, 2021
31eb925
Fix #156
wravery Dec 9, 2021
bbb959a
StarWarsData.cpp doesn't need the convenience header
wravery Dec 9, 2021
02403ff
Block reserved names in non-Introspection schemas
wravery Dec 10, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Use R"gql(...)gql"sv for names in getTypeNames
  • Loading branch information
wravery committed Dec 17, 2021
commit 44a6261a3f7d4035ca64193d7c8d450058b9530c
6 changes: 3 additions & 3 deletions src/SchemaGenerator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1376,17 +1376,17 @@ void Generator::outputObjectImplementation(

for (const auto& interfaceName : objectType.interfaces)
{
sourceFile << R"cpp( ")cpp" << interfaceName << R"cpp(",
sourceFile << R"cpp( R"gql()cpp" << interfaceName << R"cpp()gql"sv,
)cpp";
}

for (const auto& unionName : objectType.unions)
{
sourceFile << R"cpp( ")cpp" << unionName << R"cpp(",
sourceFile << R"cpp( R"gql()cpp" << unionName << R"cpp()gql"sv,
)cpp";
}

sourceFile << R"cpp( ")cpp" << objectType.type << R"cpp("
sourceFile << R"cpp( R"gql()cpp" << objectType.type << R"cpp()gql"sv,
}, {
)cpp";

Expand Down