doc: guidelines: add an item about avoiding binary literals

Add an item to the coding style list asking to avoid using binary
literals.

Link: https://github.com/zephyrproject-rtos/zephyr/issues/61798
Signed-off-by: Fabio Baltieri <fabiobaltieri@google.com>
This commit is contained in:
Fabio Baltieri 2023-08-23 14:24:26 +00:00 committed by Carles Cufí
commit bef540b178

View file

@ -458,6 +458,7 @@ exceptions:
* Use C89-style single line comments, ``/* */``. The C99-style single line
comment, ``//``, is not allowed.
* Use ``/** */`` for doxygen comments that need to appear in the documentation.
* Avoid using binary literals (constants starting with ``0b``).
When there are differences between the guidelines above and the formatting
generated by code formatting tools, the guidelines above take precedence.