Uploaded image for project: 'Thrift'
  1. Thrift
  2. THRIFT-5189

C++: Improve the namespace format of the code which generated by the thrift compiler

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: C++ - Compiler
    • Labels:
      None

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

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                zeshuai007 Zezeng Wang
                Reporter:
                zeshuai007 Zezeng Wang
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 40m
                  40m