mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-09-30 00:31:14 +00:00
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:
parent
f5844b85ff
commit
3ca44e2258
Notes:
sideshowbarker
2024-07-17 06:22:02 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/3ca44e2258
|
@ -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('_');
|
||||
|
|
Loading…
Reference in a new issue