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

S1749: Update the documentation after changes in implementation

    XMLWordPrintable

    Details

    • Type: Documentation
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 5.1
    • Fix Version/s: 6.0
    • Component/s: C, C++, Rules
    • Labels:
      None

      Description

      The description of RSPEC-1749 currently specifies the place of the const keyword. However, the new implementation of this rule does not check this keyword, because:

      • It is controversial:
        • some people prefer to place it before the type, which is similar to the English language: const int
        • some people prefer to place it after the type, which is more consistent with the rule for positionning const in complex types: int const * const
      • Implementation difficulties

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                Due:
                Created:
                Updated:
                Resolved: