Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • C coccinelle
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 21
    • Issues 21
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 1
    • Merge requests 1
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • coccinellecoccinelle
  • coccinelle
  • Merge requests
  • !239

Distinguish script-based fresh ids with differing args

  • Review changes

  • Download
  • Email patches
  • Plain diff
Open LAWALL Julia requested to merge memofresh into master Nov 20, 2022
  • Overview 0
  • Commits 1
  • Pipelines 3
  • Changes 4

f4db03ee started memoizing the fresh identifiers generated by scripts to keep them consistent across different rules. But it did not account for the script producing a different result depending on the values of inherited metavariables passed to it as explicit arguments.

Let’s memoize the script results in a hash map, one fresh name per each different argument list.

Fixes: https://github.com/coccinelle/coccinelle/issues/283

Signed-off-by: Jan Tojnar jtojnar@gmail.com

Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: memofresh