thrift-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Zezeng Wang (Jira)" <j...@apache.org>
Subject [jira] [Created] (THRIFT-5189) C++: Improve the namespace format of the code which generated by the thrift compiler
Date Tue, 28 Apr 2020 11:46:00 GMT
Zezeng Wang created THRIFT-5189:
-----------------------------------

             Summary: C++: Improve the namespace format of the code which generated by the
thrift compiler
                 Key: THRIFT-5189
                 URL: https://issues.apache.org/jira/browse/THRIFT-5189
             Project: Thrift
          Issue Type: Improvement
          Components: C++ - Compiler
            Reporter: Zezeng Wang


test.thrift as below:
namespace   cpp   AAAAAA.BBBBBB.CCCCCC.DDDDDD.EEEEEE.FFFFFF

struct a {
  1: i32 id,
  2: string message
}

the compiler will generate cpp namespace code(in test_types.h) as:
namespace AAAAAA { namespace BBBBBB { namespace CCCCCC { namespace DDDDDD { namespace EEEEEE
{ namespace FFFFFF {

expected:
Maybe we can let the compiler has the option to choose which format of namespace to use,
not only the current one.

one possible option maybe :
namespace AAAAAA { 
namespace BBBBBB { 
namespace CCCCCC { 
namespace DDDDDD { 
namespace EEEEEE { 
namespace FFFFFF {
......




--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Mime
View raw message