Next: , Previous: , Up: Contributing   [Contents][Index]


7.3 Coding Guidelines

MicroBenchmark follows to GNU Coding Standards (see GNU Coding Standards) for its source code and build process. The command make indent-code can be used to format the source code the script build-aux/indent-code.sh6.

In addition to them, these are some common ideas of the code base:


Footnotes

(6)

indent outputs an undesired format on certain C constructions such as guard macros. The problematic source lines have comments /* *INDENT-ON* */ and /* *INDENT-OFF* */ surrounding them to avoid its modification. Patches for indent-code.sh to instruct indent about these cases are very welcome.