[umbrello] [Bug 413991] New: When creating code for attribute access, the C++ code generator produces unexpected code

Ralf Habacker bugzilla_noreply at kde.org
Sun Nov 10 00:15:16 GMT 2019


https://bugs.kde.org/show_bug.cgi?id=413991

            Bug ID: 413991
           Summary: When creating code for attribute access, the C++ code
                    generator produces unexpected code
           Product: umbrello
           Version: 2.29.3 (KDE Applications 19.08.3)
          Platform: Other
                OS: All
            Status: REPORTED
          Severity: wishlist
          Priority: NOR
         Component: exporter
          Assignee: umbrello-devel at kde.org
          Reporter: ralf.habacker at freenet.de
  Target Milestone: ---

Creating code for attribute accessors the c++ code generator generates 
unexpected code.

STEPS TO REPRODUCE
1. start umbrello
2. create class
   class Test {
     private:
     int m_attribute;
   };

3. generate code
4. inspect generated code

OBSERVED RESULT

class Test {
  void setM_attribute(...);
  int getM_attribute();
};

EXPECTED RESULT

class Test {
  void setAttribute(...);
  int attribute();
};

ADDITIONAL INFORMATION
To support the expected code style the following code policies need to be
implemented:

  - Getters with/without 'get' prefix
  - Remove prefix '[a-zA-Z]_' from attributed on generating accessor methods
  - Accessor methods start with/without capital letters

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the umbrello-devel mailing list