Uploaded image for project: 'SonarCFamily'
  1. SonarCFamily
  2. CPP-1391

C++ Rule: redundant base class access specifier

    XMLWordPrintable

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.11
    • Component/s: C++, Rules
    • Labels:
      None

      Description

      struct B {
      };
      
      struct S : public B { // "struct" has public access for its base classes by default
      };
      
      class C : private B { // "class" has private access for its base classes by default
      };
      

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              alban.auzeill Alban Auzeill
              Reporter:
              evgeny.mandrikov Evgeny Mandrikov
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Due:
                Created:
                Updated:
                Resolved: