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] [Updated] (THRIFT-5189) C++: Improve the namespace format of the code which generated by the thrift compiler
Date Tue, 28 Apr 2020 11:50:00 GMT

     [ https://issues.apache.org/jira/browse/THRIFT-5189?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Zezeng Wang updated THRIFT-5189:
--------------------------------
    Description: 
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) in one line 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 {
......


  was:
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 {
......



> 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
>            Assignee: Zezeng Wang
>            Priority: Minor
>
> 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) in one line 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