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

Rule S6200: Detect 'volatile' used in structured bindings, return types and function parameters

    XMLWordPrintable

    Details

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

      Description

      Even if the deprecation is only in C++20, we should report that in C++17 already...
      I don't think the RSPEC needs to be updated for this change.

      After more discussion:

      • Remove volatile parameters from rule RSPEC-3687
      • Create a new rule about declaring volatile objects for which it does not really make sense

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              tomasz.kaminski Tomasz Kamiński
              Reporter:
              loic.joly Loïc Joly
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: