From 3ca44e2258f60be1d43aa0a9b4f3ee0a2de9c833 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Tue, 4 Oct 2022 19:49:02 +0200 Subject: [PATCH] BindingsGenerator: Allow the word "inline" in IDL identifiers This has to be treated carefully since it's a C++ keyword. --- .../CodeGenerators/LibWeb/BindingsGenerator/IDLGenerators.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Meta/Lagom/Tools/CodeGenerators/LibWeb/BindingsGenerator/IDLGenerators.cpp b/Meta/Lagom/Tools/CodeGenerators/LibWeb/BindingsGenerator/IDLGenerators.cpp index 9dce0197b8..e17ebad6a7 100644 --- a/Meta/Lagom/Tools/CodeGenerators/LibWeb/BindingsGenerator/IDLGenerators.cpp +++ b/Meta/Lagom/Tools/CodeGenerators/LibWeb/BindingsGenerator/IDLGenerators.cpp @@ -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('_');