Summary: | [testcase]Cannot import class which ends with a comment | ||
---|---|---|---|
Product: | [Applications] umbrello | Reporter: | Martin Koller <kollix> |
Component: | general | Assignee: | Oliver Kellogg <okellogg> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | roberto |
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | unspecified | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: |
Description
Martin Koller
2004-06-07 10:01:26 UTC
Confirmed, how peculiar. I've fixed it for the common case of a trailing comment on a member variable: class TEST { int x; // just a comment }; Roberto, I think this could be a candidate for backporting to kdevelop (?) See kdesdk/umbrello/umbrello/classparser/parser.h rev. 1.2 kdesdk/umbrello/umbrello/classparser/parser.cpp rev. 1.4 *** Bug has been marked as fixed ***. I find that it still doesn't work for enums: enum MyEnumType { zero, // ouch, this comment throws us off the handle one }; As soon as there's a comment at the end of an enum literal the class import for the enum, including any surrounding scope such as class or namespace, fails. I have the fix for this ready - should I commit? fixed by parser.cpp:1.6 |