File tree Expand file tree Collapse file tree 1 file changed +12
-1
lines changed
Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -94,6 +94,16 @@ and leaves the diff uncommitted in the working tree.
9494used in an interactive rebase session. Both scripts require "clang-format" binary
9595present 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+
97107An 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
193203LLVM practises described `here
194204<https://llvm.org/docs/CodingStandards.html#doxygen-use-in-documentation-comments> `_.
195205Please 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
197208generate a Doxygen documentation page by configuring CMake with: `ENABLE_DOXYGEN=YES `
198209and then running::
199210
You can’t perform that action at this time.
0 commit comments