mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-24 13:35:12 +00:00
IPCCompiler: Declare nested namespaces with a single "namespace"
This commit is contained in:
parent
148c4161d9
commit
f31ff86d14
Notes:
sideshowbarker
2024-07-19 02:01:49 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/f31ff86d147
1 changed files with 2 additions and 4 deletions
|
@ -215,8 +215,7 @@ int main(int argc, char** argv)
|
|||
out();
|
||||
|
||||
for (auto& endpoint : endpoints) {
|
||||
out() << "namespace Messages {";
|
||||
out() << "namespace " << endpoint.name << " {";
|
||||
out() << "namespace Messages::" << endpoint.name << " {";
|
||||
out();
|
||||
|
||||
HashMap<String, int> message_ids;
|
||||
|
@ -335,8 +334,7 @@ int main(int argc, char** argv)
|
|||
}
|
||||
do_message(message.name, message.inputs, response_name);
|
||||
}
|
||||
out() << "} // namespace " << endpoint.name;
|
||||
out() << "} // namespace Messages";
|
||||
out() << "}";
|
||||
out();
|
||||
|
||||
out() << "class " << endpoint.name << "Endpoint : public IPC::Endpoint {";
|
||||
|
|
Loading…
Add table
Reference in a new issue