Skip to main content
gamedev.net
🔒 Locked

Automatic Indention

Started by hydroo Jan 26, 2008 at 10:16 AM 0 replies 700+ views
Original Post
hydroo
hydroo
I am currently searching a way for automatically indenting C++-Code. The indent command line tool does almost what I want, but there are two things I couldn't achieve: I don't want it to align multiline-parameters to the brackets of its function

    callsomefunction (asdf, asdf, asdf, asdf, asdf, asdf, asdf, asdf, asdf,
                      asdf, asdf, asdf, asdf, asdf, asdf, asdf, asdf, asdf,
                      asdf, asdf, asdf);

And this is weird too

class A
{
  public:
    A ()
};

So does anyone know how to tell indent not to do this? And are there other indention tools for linux (preferably command line) available that are more powerful and suited for c++ (not only c like indent seems to be)?
SiCrane
SiCrane
You can try Universal Indent, though I don't know for sure if it'll do what you want. It's a front end for a lot of different source code beautifiers, so chances are good, but not guaranteed.

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.