Add concept, consteval, constinit, co_await, co_return, co_yield, requires, module, and import to the _CPP_KEYWORDS allow-list in contrib/schemagen/weaseljson_schemagen.py.
Property names that collide with these C++20 keywords are now sanitized with a trailing underscore (concept_), so the generated structs compile under C++20.
A regression test is added to verify all listed keywords are suffixed.
Add `concept`, `consteval`, `constinit`, `co_await`, `co_return`, `co_yield`, `requires`, `module`, and `import` to the `_CPP_KEYWORDS` allow-list in `contrib/schemagen/weaseljson_schemagen.py`.
Property names that collide with these C++20 keywords are now sanitized with a trailing underscore (`concept_`), so the generated structs compile under C++20.
A regression test is added to verify all listed keywords are suffixed.
Closes #18
Add concept, consteval, constinit, co_await, co_return, co_yield,
requires, module, and import to _CPP_KEYWORDS so property names that
happen to be C++20 keywords get sanitized with a trailing underscore.
Closes#18
andrew
merged commit 5e18347e35 into main2026-06-22 00:54:26 +00:00
andrew
deleted branch weaselbot/issue-182026-06-22 00:54:30 +00:00
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Add
concept,consteval,constinit,co_await,co_return,co_yield,requires,module, andimportto the_CPP_KEYWORDSallow-list incontrib/schemagen/weaseljson_schemagen.py.Property names that collide with these C++20 keywords are now sanitized with a trailing underscore (
concept_), so the generated structs compile under C++20.A regression test is added to verify all listed keywords are suffixed.
Closes #18