Open vrabac6 opened 1 year ago
While generating documentation for project that I'm working on using PocoDoc I faced with this issue.
Application: [Error] Assertion violation: pos < name.length() in file "src/NameSpace.cpp", line 228 ... Application: [Information] 1 errors.
In the file that is analyzed by PocoDoc this line of code is forcing PocoDoc to fail with assertion error in splitName method.
unsigned char wd_ : 4;
After reviewing values right before assertion errors using Debugger
Previous line of code has been processed by CppParser and has become:
unsigned char wd_ :4;
Case when : is second to last character in the string will always cause assertion error in PocoDoc.
:
I propose this change in the method instead of: std::string::size_type pos = name.find(':'); into: std::string::size_type pos = name.find("::");
std::string::size_type pos = name.find(':');
std::string::size_type pos = name.find("::");
This issue is stale because it has been open for 365 days with no activity.
While generating documentation for project that I'm working on using PocoDoc I faced with this issue.
In the file that is analyzed by PocoDoc this line of code is forcing PocoDoc to fail with assertion error in splitName method.
After reviewing values right before assertion errors using Debugger
Previous line of code has been processed by CppParser and has become:
Case when
:
is second to last character in the string will always cause assertion error in PocoDoc.I propose this change in the method instead of:
std::string::size_type pos = name.find(':');
into:std::string::size_type pos = name.find("::");