Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Another regression in 4.0.0 #43

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

Closed
tpaviot opened this issue Mar 4, 2020 · 1 comment · Fixed by #44
Closed

Another regression in 4.0.0 #43

tpaviot opened this issue Mar 4, 2020 · 1 comment · Fixed by #44

Comments

@tpaviot
Copy link

tpaviot commented Mar 4, 2020

Following example fails using 4.0.0 and newer (but not with 3.3.0 and older):

import CppHeaderParser

h = """
typedef C A;

class B
{
public:
   A aMethod();
}
"""
CppHeaderParser.CppHeader(h, "string")

Following exception is raised:

Traceback (most recent call last):
  File "ess.py", line 12, in <module>
    CppHeaderParser.CppHeader(h, "string")
  File "/home/thomas/miniconda3/envs/bindgen/lib/python3.7/site-packages/CppHeaderParser/CppHeaderParser.py", line 2981, in __init__
    self.finalize()
  File "/home/thomas/miniconda3/envs/bindgen/lib/python3.7/site-packages/CppHeaderParser/CppHeaderParser.py", line 1936, in finalize
    self.resolve_type(meth["rtnType"], rtnType)
  File "/home/thomas/miniconda3/envs/bindgen/lib/python3.7/site-packages/CppHeaderParser/CppHeaderParser.py", line 1551, in resolve_type
    result["typedefs"] += 1
KeyError: 'typedefs'
virtuald added a commit that referenced this issue Mar 4, 2020
@virtuald virtuald mentioned this issue Mar 4, 2020
@virtuald
Copy link
Member

virtuald commented Mar 4, 2020

#44

virtuald added a commit that referenced this issue Mar 4, 2020
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.

2 participants