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

C++11 Rule: "static" should not be used in unnamed "namespaces"

    XMLWordPrintable

    Details

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

      Description

      namespace {
        static int x; // static is redundant here
      }
      

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              ann.campbell.2 Ann Campbell
              Reporter:
              evgeny.mandrikov Evgeny Mandrikov
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Due:
                Created:
                Updated:
                Resolved: