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

Fix false-positive in S1235

    XMLWordPrintable

    Details

    • Type: False-Positive
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 6.0
    • Component/s: C++, Rules
    • Labels:
      None

      Description

      RSPEC-1235

      class Type {};
      template <typename T>
      class ComplexBase: public T
      {
      public:
         virtual ~ComplexBase() = default;
      };
      
      class ClassA : public ComplexBase< Type >
      {
      };
      
      class ClassB: public ClassA
      {
      public:
          ~ClassB() override = default; // false positive
      };
      

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              loic.joly Loïc Joly
              Reporter:
              massimo.paladin Massimo PALADIN
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: