Indentation and tabbing policy:
references: New C++ casting style:
Portability:
Localization:
Configuration:
Use modelines: Ensure that every file has a complete set of modelines for common editors. VIM modelines should appear in every file. When we get a significant set of developers using EMACS, then appropriate modelines for EMACS should be added to each file
Modelines should be in the first or last 5 lines of the program text. Modelines in other locations are generally ignored by editors.
example emacs modeline:
/* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
example vim modeline:
// vim:expandtab:autoindent:tabstop=4:shiftwidth=4:filetype=txt:
Copyright: Each file should contain copyright attribution information.