Skip to content
Lilian Anatolie Moraru edited this page Mar 1, 2017 · 4 revisions

Style guidelines:

  • Cached variables must start with CXXBASICS_ prefix
  • CMake messages must start with [cxxbasics]
  • Modules that define functions must start with Fn, ex: FnMktemp.cmake
  • Modules that define macros must start with Macro, ex: MacroMktemp.cmake
  • Modules that help finding something in the system(ex: a binary), must start with Search, ex: SearchClangTidy.cmake - currently, Find prefix is intentionally not used because the user might get confused and naming conflicts might appear.
  • Modules that activate a feature must start with Use, ex: UseClangTidy.cmake
  • 2 spaces indentation
  • Use cbmessage(simple message), cbok(ex: successful setup), cbnok(ex: failed to set up desired feature but it is not critical), cberror(ex: user logic error, application cannot continue, an issue the user should solve...).
Clone this wiki locally