Uploaded image for project: 'WiredTiger'
  1. WiredTiger
  2. WT-10780

The C++ access modifies should not be indented

    • Type: Icon: Technical Debt Technical Debt
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • WT11.2.0, 7.0.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None

      WiredTiger uses a different convention for C++ access modifiers (public/protected/private) from the rest of MongoDB. For example, we have:

       

      class component {
          public:
          component(const std::string &name, configuration *config);
          virtual ~component();
          ...
      

      MongoDB uses the much more common C++ convention, which does not have them indented. For example, this code should be:

      class component {
      public:
          component(const std::string &name, configuration *config);
          virtual ~component();
          ...

      We too should adopt this convention.

            Assignee:
            peter.macko@mongodb.com Peter Macko
            Reporter:
            peter.macko@mongodb.com Peter Macko
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: