Indentation
Forum rules
This forum houses many years of development, tracing back to some of the earliest posts that exist on the board.
Its current use is for the continued development of the server and game it has always served: TMW Classic.
Indentation
For all, I found that this is a good group of options for TMW indentation.
indent -npsl -bad -bap -fc1 -sc -br -ce -cdw -cli4 -cbi0 -npcs -di16 -nbc -brs -lp -ip4 -ppi3 -l79 -lc79 -nbbo -hnl -ts4 -nut CODENAME.cpp
Please do it before CVS upload. And review your code after this.
(comments to my options and enhancements are WELCOME)
indent -npsl -bad -bap -fc1 -sc -br -ce -cdw -cli4 -cbi0 -npcs -di16 -nbc -brs -lp -ip4 -ppi3 -l79 -lc79 -nbbo -hnl -ts4 -nut CODENAME.cpp
Please do it before CVS upload. And review your code after this.
(comments to my options and enhancements are WELCOME)
- Bjørn
- Manasource
- Posts: 1438
- Joined: 09 Dec 2004, 18:50
- Location: North Rhine-Westphalia, Germany
- Contact:
Code: Select all
extern unsigned char screen_mode;
int fps = 0, frame = 0, current_npc = 0;
bool displayPathToMouse = false;
OkDialog *deathNotice = NULL;
#define MAX_TIME 10000
class DeatchNoticeListener:public gcn::ActionListener {
public:
We are flexible in our placement of the "{" after the if statement, while your command above seems to force them to be on the same line.
I don't like the "-ppi3".
I haven't looked through everything yet, and I think it still needs some changes, but here's a slightly improved paramter list that matches better the current TMW code:
indent -npsl -bad -bap -fc1 -sc -bl -nce -ncdw -cli4 -cbi0 -bli0 -npcs -nbc -brs -lp -ip4 -l79 -lc79 -nbbo -hnl -i4 -ts8 -nut file.cpp
Still, this tool doesn't use common sense, so I still don't agree to use it.