STT/native_client/CODINGSTYLE.md
Reuben Morais ae0cf8db6a Revert "Merge branch 'rename-real'"
This reverts commit ae9fdb183e, reversing
changes made to 2eb75b6206.
2020-08-26 11:46:09 +02:00

948 B

This file contains some notes on coding style within the C++ portion of the DeepSpeech project. It is very much a work in progress and incomplete.

General

The code has been imported from various places. Please try and blend in your code with the surrounding code.

If you are coding from scratch, please follow Google coding guidelines for C++.

Variable naming

  • class/struct member variables which are private should follow lowercase with a final underscore, e.g. unsigned int beam_width_; in modelstate.h.

File naming

  • Source code files should have a .cc prefix and headers a .h prefix, excluding code important from elsewhere, which should follow local conventions, e.g. .cpp and .h in ctcdecode/.

Doubts

If in doubt, please ask on our Matrix chat channel: https://chat.mozilla.org/#/room/#machinelearning:mozilla.org