summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUwe Hermann <uwe@hermann-uwe.de>2013-02-09 21:43:46 +0100
committerUwe Hermann <uwe@hermann-uwe.de>2013-02-09 22:11:26 +0100
commit31e615a50b34f67bdf5562ad887415b2ec8796c8 (patch)
tree40a600664dcccaa9100245cc8349ea0ee6bb9291
parentd7dae84b94b597458f1dce0c126e31d5697234e6 (diff)
downloadlibsigrokdecode-31e615a50b34f67bdf5562ad887415b2ec8796c8.tar.gz
libsigrokdecode-31e615a50b34f67bdf5562ad887415b2ec8796c8.zip
Doxygen: Document how to mark private stuff.
-rw-r--r--HACKING12
1 files changed, 12 insertions, 0 deletions
diff --git a/HACKING b/HACKING
index 922415f..dc4d53d 100644
--- a/HACKING
+++ b/HACKING
@@ -74,10 +74,22 @@ Random notes
should end with "_all", e.g. "_remove_all", "_get_all", and so on.
Use "_remove_all" in favor of "_clear" for consistency.
+
+Doxygen
+-------
+
- In Doxygen comments, put an empty line between the block of @param lines
and the final @return line. The @param lines themselves (if there is more
than one) are not separated by empty lines.
+ - Mark private functions (SRD_PRIV) with /** @private */, so that Doxygen
+ doesn't include them in the output. Functions that are "static" anyway
+ don't need to be marked like this.
+
+ - Mark private variables/#defines with /** @cond PRIVATE */ and
+ /** @endcond */, so that Doxygen doesn't include them in the output.
+ Variables that are "static" don't need to be marked like this.
+
Protocol decoder guidelines
---------------------------