Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
dyitzchaki-roku opened this issue Sep 26, 2024 · 0 comments · Fixed by #106
Closed

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

dyitzchaki-roku opened this issue Sep 26, 2024 · 0 comments · Fixed by #106

Comments

@dyitzchaki-roku
Copy link

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;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant