Skip to content

Commit 816edea

Browse files
committed
rst: documentation style update
1 parent 3009447 commit 816edea

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

doc/sphinx/source/development.rst

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,16 @@ and leaves the diff uncommitted in the working tree.
9494
used in an interactive rebase session. Both scripts require "clang-format" binary
9595
present in PATH.
9696

97+
.. note::
98+
If the format scripts return an error similar to:
99+
100+
"UnicodeDecodeError: 'utf-8' codec can't decode byte 0xb3 in position 173310:
101+
invalid start byte"
102+
103+
It is likely that the commit contains a binary file that is erroneously
104+
being parsed. One solution is to break out the binary file into a separate
105+
commit and later squash it once the formatting is done.
106+
97107
An example emacs configuration to help get the pocl code style correct::
98108

99109
(setq default-tab-width 2)
@@ -193,7 +203,8 @@ Code comments should be done C99 style (so "/\* ... \*/") in C files and C++ sty
193203
LLVM practises described `here
194204
<https://llvm.org/docs/CodingStandards.html#doxygen-use-in-documentation-comments>`_.
195205
Please keep in mind that for C files the Doxygen documentation should be created with "/\*\*"
196-
but use the "\\" prefix Doxygen commands, e.g. "\\param". It is also possible to
206+
but use the "\\" prefix Doxygen commands, e.g. "\\param". Preferably parameters
207+
are documented with "\\p" but "\\param" is also fine. It is also possible to
197208
generate a Doxygen documentation page by configuring CMake with: `ENABLE_DOXYGEN=YES`
198209
and then running::
199210

0 commit comments

Comments
 (0)