I'm trying to get the hang of CppHeaderParser before I start using it for a project. The files that I have to parse for the project has a lot of forward declarations. I get the following error when I try to parse the attached header file:
Traceback (most recent call last):
File "test.py", line 5, in <module>
cppHeader = CppHeaderParser.CppHeader("C:\Final\namespacetest2.h")
File "C:\Python27\lib\site-packages\CppHeaderParser\CppHeaderParser.py", line
2333, in init
% (self.headerFileName, tok.lineno, tok.value, " ".join(self.nameStack)))
CppHeaderParser.CppHeaderParser.CppParseError: Not able to parse C:\Final\namespacetest2.h on line 3 evaluating ";"
Error around: typedef struct _IO_FILE FILE
Hi,
my file has forward declarations like:
typedef struct IO_FILE FILE;
I keep getting an error when I try to parse the file with that line. Any way to get around it?
Thank you
Please attach a .h file that demonstrates the issue
I'm trying to get the hang of CppHeaderParser before I start using it for a project. The files that I have to parse for the project has a lot of forward declarations. I get the following error when I try to parse the attached header file:
Traceback (most recent call last):
File "test.py", line 5, in <module>
cppHeader = CppHeaderParser.CppHeader("C:\Final\namespacetest2.h")
File "C:\Python27\lib\site-packages\CppHeaderParser\CppHeaderParser.py", line
2333, in init
% (self.headerFileName, tok.lineno, tok.value, " ".join(self.nameStack)))
CppHeaderParser.CppHeaderParser.CppParseError: Not able to parse C:\Final\namespacetest2.h on line 3 evaluating ";"
Error around: typedef struct _IO_FILE FILE
Are you using 2.5.1?
Yes I am
Please try 139:231618db8dee. You should see it works
Thank you :)