Skip to content

Uncrustify 0.82 breaks when running on files longer than 10000 lines. #4645

Description

@danielgora

It looks like commit fdd6631 (pull request #4561 ) and/or commit 5148d4f (pull request #4564) breaks running uncrustify with C files which are longer than 10000 lines long:

CopyAndAdd(A): orig line is 10000, orig col is 65, Text() is '=', type is ASSIGN,
   @ after orig line is 10000, orig col is 39, Text() is 'ssh_ipm_xml_error_handler', type is WORD,
   stage is TOKENIZE [CallStack:]
tokenize(2904): orig line is 10000, orig col is 65, Text() '=', type is ASSIGN, orig col end is 66
log_rule(parse_next:2160): rule is 'disable_processing_nl_cont'
SetType(585): m_origLine is 10000, m_origCol is 66, Text() is <Newline>
   m_type is NONE, m_parentType is NONE => token is NEWLINE
CopyAndAdd(A): orig line is 10000, orig col is 66, <Newline>,
   @ after orig line is 10000, orig col is 65, Text() is '=', type is ASSIGN,
   stage is TOKENIZE [CallStack:]
tokenize(2893): orig line is 10000, orig col is 66, <Newline>, nl is 1
SetOrigLine(1266): the input parameter is too big 10001

I confirmed that commit 6f67982 works fine on this same file.

No activity

Activity on this issue will appear here.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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