You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@thrift.apache.org by "Zezeng Wang (Jira)" <ji...@apache.org> on 2020/04/28 11:46:00 UTC

[jira] [Created] (THRIFT-5189) C++: Improve the namespace format of the code which generated by the thrift compiler

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)