|
From: Tony R. <tb...@gm...> - 2008-09-28 16:51:53
|
> > - Use tabs for indentation. > - I've seen in some editors that there are "different > tab sizes" (on Delphi for example you can choose the > tab size equivalent to spaces); I'm not sure how that > works but just in case, lets say we'll use a tab size > of 4 spaces. > - variables, intances start lower case. > - primitive types start lower case. > - Object, structs, enum types and the like, > capitalized. > - Method names capitalized (maybe its better to change this one to lower case first). > - spaces between most operators and operands (no > things like a+b=c). Exceptions could be the > parenthesis and semicolon. > - Word sepparation capitalizing (not using > underscore; or is it better the other way around?). > > > ------------------------------ > I think with AStyle you can specify a formatting file. Can you build one that we can just add to SVN? This way, the developer can just run AStyle using that formatting file definition. Also, can you add these suggestions to the wiki page under the AStyle section? Thanks. -Tony |