Fix a bug of C++ Generator 39/297139/2
authorHwankyu Jhun <h.jhun@samsung.com>
Fri, 11 Aug 2023 01:04:20 +0000 (10:04 +0900)
committerHwanKyu Jhun <h.jhun@samsung.com>
Fri, 11 Aug 2023 02:15:59 +0000 (02:15 +0000)
The type name should use the underbar instead of dot.
e.g. map<int, peer_info.channel_type>
=> map_int_peer_info_channel_type

Change-Id: I2fc9566483b8f2433a9611cff3830fb38c523f79
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
idlc/gen/version2/cpp_generator_base.cc

index f463197..cb32a8a 100644 (file)
@@ -647,7 +647,8 @@ std::string CppGeneratorBase::GetFullNameFromType(const BaseType& type) {
       type.ToString().find("::CallbackBase") != std::string::npos)
     return "delegate";
 
-  return type.GetFullName(true);
+  std::string name = type.GetFullName(true);
+  return GetEnumTypeString(name, true);
 }
 
 std::string CppGeneratorBase::GenUnitMapReadWrite() {