On Fri, 04 May 2018 13:41:57 +0200 Rene Hopf <[email protected]> wrote:
> There is a mix of tabs and spaces in the code, sometimes even mixed in the > same line, > and loads of bad indentation. Im not blaming anyone here, > that just happens with such an old codebase with so many contributors. Some editors like emacs or builtin Eclise may fix this automatically, select and press a button or two or menu item. Maybe there also is some kind of command line driven tool so several files could be scanned at once. As I understand you already discovered clang for formatting. > However, I could not even find coding style guidelines. > Imho the only way of fixing that is with some automatic formatter. > I think clang-format is the best: https://clang.llvm.org/docs/ClangFormat.html Eclipse have some kind of builtin gnu variant but insert tabs then lines get long enough even though the option to not have been marked. > I use a makefile taget like this: > https://github.com/rene-dev/stmbl/blob/master/Makefile#L347 > the style is in a separate file: > https://github.com/rene-dev/stmbl/blob/master/.clang-format > > Rene ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot _______________________________________________ Emc-developers mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/emc-developers
