#229 Preprocessor directives are unindented

closed-fixed
2015-01-03
2013-07-06
No

I noticed AStyle makes all preprocessor #keyword aligned to the left, even if they were indented in initial code.

--> see joined picture for more details

I found code less readable when all is aligned to the left.
Is is possible to add an option to indent (or not) preprocessor keywords?

Thanks,
SMarmotte

1 Attachments

Discussion

  • kostya

    kostya - 2013-07-09

    the property --indent-macro is very necessary.
    Also this option must preserve already exist indentation:

     
  • kostya

    kostya - 2013-07-09

    Also, please, fix this bug in 2.x version.

     
  • ■ SMarmotte

    ■ SMarmotte - 2013-07-30

    I'm using AStyle version 2.03.

    I didn't found the option --indent-macro in the online help and AStyle raises error when I use it.
    Is this a new option for future version?

    By the way, can you change this ticket to 2.x version?
    I don't have rights to move it.

    Thanks for your help.

     
  • Jim Pattee

    Jim Pattee - 2014-09-14
    • status: open --> open-fixed
    • Priority: 4 --> 7
     
  • Jim Pattee

    Jim Pattee - 2014-11-20
    • Status: open-fixed --> closed-fixed
     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks