Path: utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!usc!ucsd!ucsdhub!hp-sdd!hplabsy!hp-ses!hpcuhb!hpda!hpwala!hpavla!gary From: gary@hpavla.AVO.HP.COM (Gary Jackoway) Newsgroups: comp.lang.c Subject: Good C Beautifiers? Message-ID: <9130001@hpavla.AVO.HP.COM> Date: 22 Jan 90 17:33:38 GMT Organization: Hewlett-Packard Avondale Division Lines: 33 Does anybody have a GOOD c-beautify program? I tried using cb, and was disappointed for the following reasons: - cb does not handle long comments (> ~15 lines). It truncates them and eventually gives up altogether. - cb does not allow you to specify amount of indentation. I greatly prefer 4 characters. cb uses a tab and then the characters end up all the way over on the right hand side of the page. - Although cb allows you to specify a maximum line length, given the use of tab for indentation, this option is not very useful. - cb does not re-format the code in all cases. I had a line: if (pred) if (pred2) and it left it like this even though stylistically it never puts two if's on a line. - cb doesn't give you any control over the final style. I like the way it does some things, but not others. It would be great if there were a cb with templates. It would be nice to tell it: if (pred) { text; } OR if (pred) { text; } whatever you prefered. Any pointers to good beautifiers would be appreciated. Thanks, Gary Jackoway gary@hpavla