Menu

#32 Configurable comment after class ending brace

open
nobody
5
2008-09-03
2008-09-03
C Rule
No

I would like to have the ability to have a separate configuration for the closing brace of each class. I imagine this would be similar to the ClosingComments tag that currently exist but a separate tag for classes. Maybe ClosingClassComments as a tag name?

Discussion

  • C Rule

    C Rule - 2008-09-03

    Logged In: YES
    user_id=2202623
    Originator: YES

    Here's code that implements a configurable comment after the end tag for both namespaces and classes.
    The configuration for these features uses the tags "ClosingClassComments" and "ClosingNamespaceComments" in the formatting section of the configuration file:

    <Formatting>
    <ClosingClassComments Enabled="true" Format="class $(Name)" />
    <ClosingNamespaceComments Enabled="true" Format="namespace $(Name)"/>

    I've enclosed the diff file for the changes based on subversion revision 156.

    The same code is also in Bug 2090066.

    File Added: config_comment.diff

     
  • C Rule

    C Rule - 2008-09-03

    Code for configurable comment after class and namespace end brace

     

Log in to post a comment.

MongoDB Logo MongoDB