summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHwankyu Jhun <h.jhun@samsung.com>2018-05-02 17:19:52 +0900
committerHwankyu Jhun <h.jhun@samsung.com>2018-05-02 17:23:06 +0900
commit5f32a0ecb8849d273b70068c6582bb1932cf5f71 (patch)
treea4ec00ff8b6c046dc8fa8fbb020aa83fe054ac92
parent1ec627b406435f61829f91a709ccad89b31b7e88 (diff)
downloadtidl-5f32a0ecb8849d273b70068c6582bb1932cf5f71.tar.gz
tidl-5f32a0ecb8849d273b70068c6582bb1932cf5f71.tar.bz2
tidl-5f32a0ecb8849d273b70068c6582bb1932cf5f71.zip
Add annotations about namespace
Change-Id: I17f5a1cf961d31ac7cfec19574f9d57c77c6c7ab Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
-rw-r--r--idlc/cpp_gen/cpp_proxy_body_gen.cc9
-rw-r--r--idlc/cpp_gen/cpp_proxy_header_gen.cc9
-rw-r--r--idlc/cpp_gen/cpp_stub_body_gen.cc9
-rw-r--r--idlc/cpp_gen/cpp_stub_header_gen.cc9
4 files changed, 24 insertions, 12 deletions
diff --git a/idlc/cpp_gen/cpp_proxy_body_gen.cc b/idlc/cpp_gen/cpp_proxy_body_gen.cc
index 4c689a9..8226991 100644
--- a/idlc/cpp_gen/cpp_proxy_body_gen.cc
+++ b/idlc/cpp_gen/cpp_proxy_body_gen.cc
@@ -59,9 +59,12 @@ void CppProxyBodyGen::GenNamespace(std::ofstream& stream) {
GenDeSerializer(stream);
GenListSerializer(stream);
GenInterfaces(stream);
- }, false);
- }, false);
- }, false);
+ }, false, false);
+ stream << " // namespace proxy" + NLine(1);
+ }, false, false);
+ stream << " // namespace " + GetFileNamespace() + NLine(1);
+ }, false, false);
+ stream << " // namespace rpc_port" + NLine(1);
}
void CppProxyBodyGen::GenInterfaces(std::ofstream& stream) {
diff --git a/idlc/cpp_gen/cpp_proxy_header_gen.cc b/idlc/cpp_gen/cpp_proxy_header_gen.cc
index 001e93b..91a2b18 100644
--- a/idlc/cpp_gen/cpp_proxy_header_gen.cc
+++ b/idlc/cpp_gen/cpp_proxy_header_gen.cc
@@ -45,9 +45,12 @@ void CppProxyHeaderGen::GenNamespace(std::ofstream& stream) {
GenBrace(stream, 0, [&]() {
GenExceptions(stream);
GenInterfaces(stream);
- }, false);
- }, false);
- }, false);
+ }, false, false);
+ stream << " // namespace proxy" + NLine(1);
+ }, false, false);
+ stream << " // namespace " + GetFileNamespace() + NLine(1);
+ }, false, false);
+ stream << " // namespace rpc_port" + NLine(1);
}
void CppProxyHeaderGen::GenExceptions(std::ofstream& stream) {
diff --git a/idlc/cpp_gen/cpp_stub_body_gen.cc b/idlc/cpp_gen/cpp_stub_body_gen.cc
index 7d4ca48..e5b428b 100644
--- a/idlc/cpp_gen/cpp_stub_body_gen.cc
+++ b/idlc/cpp_gen/cpp_stub_body_gen.cc
@@ -58,9 +58,12 @@ void CppStubBodyGen::GenNamespace(std::ofstream& stream) {
GenDeSerializer(stream);
GenListSerializer(stream);
GenInterfaces(stream);
- }, false);
- }, false);
- }, false);
+ }, false, false);
+ stream << " // namespace stub" + NLine(1);
+ }, false, false);
+ stream << " // namespace " + GetFileNamespace() + NLine(1);
+ }, false, false);
+ stream << " // namespace rpc_port" + NLine(1);
}
void CppStubBodyGen::GenInterfaces(std::ofstream& stream) {
diff --git a/idlc/cpp_gen/cpp_stub_header_gen.cc b/idlc/cpp_gen/cpp_stub_header_gen.cc
index f451631..c2d4d4f 100644
--- a/idlc/cpp_gen/cpp_stub_header_gen.cc
+++ b/idlc/cpp_gen/cpp_stub_header_gen.cc
@@ -45,9 +45,12 @@ void CppStubHeaderGen::GenNamespace(std::ofstream& stream) {
GenBrace(stream, 0, [&]() {
GenExceptions(stream);
GenInterfaces(stream);
- }, false);
- }, false);
- }, false);
+ }, false, false);
+ stream << " // namespace stub" + NLine(1);
+ }, false, false);
+ stream << " // namespace " + GetFileNamespace() + NLine(1);
+ }, false, false);
+ stream << " // namespace rpc_port" + NLine(1);
}
void CppStubHeaderGen::GenExceptions(std::ofstream& stream) {