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:50:00 UTC
[jira] [Updated] (THRIFT-5189) C++: Improve the namespace format of
the code which generated by the thrift compiler
[ 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)