Skip to content

Norminette hangs on macro function not followed by semicolon #551

@MFelida

Description

@MFelida

Bug

Found bug when running norminette on file containing the following line:

DEFINE_TYPED_DYNARR(t_intarr, int, intarr)

norminette doesn't hang if the line is followed by a semicolon

Erroneous code

Line 131 in IsFunctionCall doesn't break out of loop if token in None

Version

norminette 3.3.58, Python 3.10.12, Linux-6.12.10-76061203-generic-x86_64-with-
glibc2.35

The macro function DEFINE_TYPED_DYNARR ends with a closing curly brace so it doesn't need to be followed by a semicolon, the code compiles just fine.
I know this code doesn't follow the norm, but norminette should never hang.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions