Skip to content
This repository has been archived by the owner on Jan 6, 2024. It is now read-only.

Coding style

Nuno Fachada edited this page May 8, 2019 · 5 revisions
  • Encoding: UTF-8
  • Indentation: 4 spaces (no tabs)
  • Line size limit: 80 chars
  • Newlines: Unix style, i.e. LF or \n
  • Code documentation: Doxygen style with @ for tags
  • Naming and case:
    • Functions and function-like macros: ccl_lower_case_with_underscores, begin with the cf4ocl namespace ccl_
    • Variables and structs: lower_case_with_underscores
    • Classes (typedef'd structs): CCLCamelCase, begin with the cf4ocl namespace CCL
    • Define constants: UPPER_CASE_WITH_UNDERSCORES
Clone this wiki locally