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

S5408: Fix false-positives with global inline constexpr variables

    Details

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

      Description

      The rule should not raise on global constexpr variables, because they are not implicitly inline. Only class static variables are inline when constexpr.

       Reported by community.

       The RSPEC should be updated when the rule is corrected.

       

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                abbas.sabra Abbas Sabra
                Reporter:
                loic.joly Loïc Joly
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Due:
                  Created:
                  Updated:
                  Resolved: