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

S1172: Raise an issue for template specializations and virtual functions

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 6.15
    • Fix Version/s: None
    • Component/s: Rules
    • Labels:
      None

      Description

      The ticket CPP-2778 excluded from the rule template specializations. Previously, virtual functions were excluded too.

      In both cases, it's very easy if a parameter is meant not to be used to have it unnamed. We believe it is a better design than having it named, because it is explicit to the reader of the code that this is a conscious decision.

      Therefore, the rule does not need to exclude those cases.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              loic.joly Loïc Joly
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated: