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:
parent
988e6670cb
commit
bef540b178
1 changed files with 1 additions and 0 deletions
|
@ -458,6 +458,7 @@ exceptions:
|
||||||
* Use C89-style single line comments, ``/* */``. The C99-style single line
|
* Use C89-style single line comments, ``/* */``. The C99-style single line
|
||||||
comment, ``//``, is not allowed.
|
comment, ``//``, is not allowed.
|
||||||
* Use ``/** */`` for doxygen comments that need to appear in the documentation.
|
* 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
|
When there are differences between the guidelines above and the formatting
|
||||||
generated by code formatting tools, the guidelines above take precedence.
|
generated by code formatting tools, the guidelines above take precedence.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue