Skip to contentSkip to conversation

doc: apply one comment to all members of a group

PATCH In review Thomas Monjalon 1 participant 2 messages Sep 17, 2014 – Sep 29, 2014 1 message not in the archive

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 doc: apply one comment to all members of a group

A doxygen group begins with /**@{*/ and ends with /**@}*/. By enabling DISTRIBUTE_GROUP_DOC, the first comment is applied to each undocumented member of the group.

---
 doc/doxy-api.conf          | 1 +
 lib/librte_port/rte_port.h | 3 ++-
 2 files changed, 3 insertions(+), 1 deletion(-)
doc/doxy-api.conf +1 -0
index 63dc64d..124fc68 100644
@@ -63,6 +63,7 @@ ENABLE_PREPROCESSING    = YES
 MACRO_EXPANSION         = YES
 EXPAND_ONLY_PREDEF      = YES
 EXTRACT_STATIC          = YES
+DISTRIBUTE_GROUP_DOC    = YES
 HIDE_UNDOC_MEMBERS      = YES
 HIDE_UNDOC_CLASSES      = YES
 HIDE_SCOPE_NAMES        = YES
lib/librte_port/rte_port.h +2 -1
index 6bd5039..d84e5a1 100644
@@ -50,7 +50,7 @@ extern "C" {
 #include <stdint.h>
 #include <rte_mbuf.h>
 
-/**
+/**@{
  * Macros to allow accessing metadata stored in the mbuf headroom
  * just beyond the end of the mbuf data structure returned by a port
  */
@@ -71,6 +71,7 @@ extern "C" {
 	(&RTE_MBUF_METADATA_UINT32(mbuf, offset))
 #define RTE_MBUF_METADATA_UINT64_PTR(mbuf, offset)         \
 	(&RTE_MBUF_METADATA_UINT64(mbuf, offset))
+/**@}*/
 
 /*
  * Port IN
Signature · 1 line
2.0.4

A message that is not in the archive (sent off-list or not yet received): 1410974481-609-1-git-send-email-thomas.monjalon-pdR9zngts4EAvxtiuMwx3w@public.gmane.org

author Applied
#2 lore raw
Quoted 5 lines

A doxygen group begins with /**@{*/ and ends with /**@}*/. By enabling DISTRIBUTE_GROUP_DOC, the first comment is applied to each undocumented member of the group.

Applied

Signature · 1 line
Thomas