mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 22:48:11 +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
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue