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

S3923: Improve code equivalence checking in case of macro expansion

    Details

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

      Description

      Currently we compare at the AST level, after preprocessor has been applied. Other options might involve working at the raw token level, or hybrid approaches.
      This issue could have impact on all rules that rely on equivalence checking.

      Beware: The ideal behaviour is probably not the same for all rules, some depend on the code being ultimately the same, not caring about how it is written, some care more about how the code is written.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                abbas.sabra Abbas Sabra
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated: