Skip to content
This repository has been archived by the owner on Dec 19, 2023. It is now read-only.

Fix regression in semgrep on disabling naming of OT_Expr #154

Merged
merged 1 commit into from
Jun 9, 2020
Merged

Conversation

aryx
Copy link
Collaborator

@aryx aryx commented Jun 9, 2020

This is related to semgrep/semgrep#923

In my previous fix I've disabled the recursion on OtherType to avoid
creating cycles in the AST but doing so I've introduced some regressions
in semgrep (in tests/python/misc_regression1.py) because we were not
resolving correctly aliases anymore.

This fixes the fix.

Test plan:

  • /home/pad/pfff/pfff -dump_ast -naming_generic python/misc_regression1.py
    now shows the right id_resolved

and we still do not go into infinite loop

This is related to semgrep/semgrep#923

In my previous fix I've disabled the recursion on OtherType to avoid
creating cycles in the AST but doing so I've introduced some regressions
in semgrep (in tests/python/misc_regression1.py) because we were not
resolving correctly aliases anymore.

This fixes the fix.

Test plan:
+ /home/pad/pfff/pfff -dump_ast -naming_generic python/misc_regression1.py
now shows the right id_resolved

and we still do not go into infinite loop
@aryx aryx requested a review from emjin June 9, 2020 21:44
@aryx aryx merged commit 396bd8a into master Jun 9, 2020
@aryx aryx deleted the fix_fix branch June 9, 2020 21:54
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant