mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 19:47:44 +00:00
IPCCompiler: Declare nested namespaces with a single "namespace"
This commit is contained in:
parent
148c4161d9
commit
f31ff86d14
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
Add a link
Reference in a new issue