Jelajahi Sumber

BindingsGenerator: Allow the word "inline" in IDL identifiers

This has to be treated carefully since it's a C++ keyword.
Andreas Kling 2 tahun lalu
induk
melakukan
3ca44e2258

+ 1 - 1
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('_');