Opened 12 years ago

Last modified 8 years ago

#127 assigned new-feature

pretty printing -- cpp parser and reformatter needed

Reported by: Fred T. Hamster Owned by: bugdock
Priority: minor Milestone:
Component: feistymeow-nucleus Version:
Keywords: Cc:

Description

isn't there a quick way to resurrect the old pretty printing
stuff?

maybe the old version was for basic or something? or was there
one for c, possibly done for a course?

it would be really nice to have a very configurable pretty printer
that could be used to reformat and fix code.

now comments are even easier to handle thanks to doxygen; doxygen
gives us the directional association to the actual object being
documented!
sweet... so now it's no question whether the thing goes above or below,
as long as its got doxygen.

for comments that are "loose", those should be their own block of stuff.
they should flow with the last indentation level in a nice way.
loose means that they are not adjacent to another code construct or
another comment. a group of comments with no spacing between, but spacings
outside, should form a block.
when code is present next to the comment, then doxygen rules need
to be applied.

Change History (2)

comment:1 by Fred T. Hamster, 12 years ago

hmmm, seems like eclipse does completely answer the need for reformatting.
it's not absolutely perfect, but it does a good enough job?
hmmm.... not for comments that follow their commented item though.
that's actually one way that eclipse botches the indentations.
if eclipse could read the doxygen notations, it could figure out where the comments
actually belong, and get this right.
perhaps needs to move to being an eclipse bug report and suggested implementation?

comment:2 by Fred T. Hamster, 8 years ago

Owner: changed from Fred T. Hamster to bugdock
Status: newassigned
Note: See TracTickets for help on using tickets.