BindingsGenerator: Allow the word "inline" in IDL identifiers

This has to be treated carefully since it's a C++ keyword.
This commit is contained in:
Andreas Kling 2022-10-04 19:49:02 +02:00
parent f5844b85ff
commit 3ca44e2258
Notes: sideshowbarker 2024-07-17 06:22:02 +09:00

View File

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