Skip to content

[PARSE BUG]: deleted function fails to parse #105

@dyitzchaki-roku

Description

@dyitzchaki-roku

Problem description

void trim(std::string&&) = delete;

results in

Exception:
Traceback (most recent call last):

  File "/home/pyodide/cxxheaderparser/parser.py", line 351, in parse
    self._parse_declarations(tok, doxygen)

  File "/home/pyodide/cxxheaderparser/parser.py", line 2682, in _parse_declarations
    tok = self._next_token_must_be(",", ";")
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

  File "/home/pyodide/cxxheaderparser/parser.py", line 170, in _next_token_must_be
    raise self._parse_error(tok, "' or '".join(tokenTypes))

cxxheaderparser.errors.CxxParseError: unexpected '=', expected ',' or ';'

C++ code that can't be parsed correctly (please double-check that https://robotpy.github.io/cxxheaderparser/ has the same error)

void trim(std::string&&) = delete;

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