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

S1481: Fix false-positives for RAII

    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-1481

      class Guard {
      public:
        Guard1() {
          // lock
        }
        ~Guard1() {
          // unlock
        }
      };
      void fp() {
        Guard g; // false-positives
        // ...
      }
      

      See also CPP-1198

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              massimo.paladin Massimo PALADIN
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: