IDLGenerators: Add register
to the list of C++ keywords
This ensures that a generated C++ method called `register` will have an underscore appended to it, avoiding a compile error.
This commit is contained in:
parent
d3e076f963
commit
70fdf7affb
Notes:
github-actions[bot]
2024-08-25 10:54:17 +00:00
Author: https://github.com/tcl3 Commit: https://github.com/LadybirdBrowser/ladybird/commit/70fdf7affb9 Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/1173
1 changed files with 1 additions and 1 deletions
|
@ -262,7 +262,7 @@ CppType idl_type_name_to_cpp_type(Type const& type, Interface const& interface)
|
|||
|
||||
static ByteString make_input_acceptable_cpp(ByteString const& input)
|
||||
{
|
||||
if (input.is_one_of("class", "template", "for", "default", "char", "namespace", "delete", "inline")) {
|
||||
if (input.is_one_of("class", "template", "for", "default", "char", "namespace", "delete", "inline", "register")) {
|
||||
StringBuilder builder;
|
||||
builder.append(input);
|
||||
builder.append('_');
|
||||
|
|
Loading…
Add table
Reference in a new issue