Meta/IDL: Add continue as a cpp keyword

This commit is contained in:
stelar7 2025-04-29 17:42:29 +02:00 committed by Jelle Raaijmakers
commit f5eb7928d9
Notes: github-actions[bot] 2025-05-06 09:17:45 +00:00

View file

@ -320,7 +320,7 @@ CppType idl_type_name_to_cpp_type(Type const& type, Interface const& interface)
static ByteString make_input_acceptable_cpp(ByteString const& input)
{
if (input.is_one_of("class", "template", "for", "default", "char", "namespace", "delete", "inline", "register", "switch", "mutable")) {
if (input.is_one_of("class", "template", "for", "default", "char", "namespace", "delete", "inline", "register", "switch", "mutable", "continue")) {
StringBuilder builder;
builder.append(input);
builder.append('_');