Skip to contentSkip to conversation

doc: fix doxygen parsing of __attribute__

PATCH In review Thomas Monjalon 2 participants 4 messages Nov 5, 2013 – Nov 7, 2013 2 messages not in the archive

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 doc: fix doxygen parsing of __attribute__

Ignore __attribute__ because it was wrongly parsed as an identifier.

---
 doc/doxy-api.conf |    4 ++++
 1 file changed, 4 insertions(+)
doc/doxy-api.conf +4 -0
index 7ea692a..749db78 100644
@@ -47,9 +47,13 @@ INPUT                   = doc/doxy-api-index.md \
 FILE_PATTERNS           = rte_*.h \
                           cmdline.h
 PREDEFINED              = __DOXYGEN__ \
+                          __attribute__(x)= \
                           RTE_MBUF_SCATTER_GATHER
 
 OPTIMIZE_OUTPUT_FOR_C   = YES
+ENABLE_PREPROCESSING    = YES
+MACRO_EXPANSION         = YES
+EXPAND_ONLY_PREDEF      = YES
 EXTRACT_STATIC          = YES
 HIDE_UNDOC_MEMBERS      = YES
 HIDE_UNDOC_CLASSES      = YES
Signature · 1 line
1.7.10.4

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

#2 lore raw

Hi Thomas,

Quoted 3 lines

Ignore __attribute__ because it was wrongly parsed as an identifier.

What about prefixing the title by "doc: " and remove the dot at the end of the line ?

Quoted 6 lines
doc/doxy-api.conf +0 -0
@@ -47,9 +47,13 @@ INPUT                   = doc/doxy-api-index.md \
  FILE_PATTERNS           = rte_*.h \
                            cmdline.h
  PREDEFINED              = __DOXYGEN__ \

doc/doxy-api.conf INPUT = doc/doxy-api-index.md \ · line 59

Quoted 10 lines
doc/doxy-api.conf +4 -0
+                          __attribute__(x)= \
                            RTE_MBUF_SCATTER_GATHER
 
  OPTIMIZE_OUTPUT_FOR_C   = YES
+ENABLE_PREPROCESSING    = YES
+MACRO_EXPANSION         = YES
+EXPAND_ONLY_PREDEF      = YES
  EXTRACT_STATIC          = YES
  HIDE_UNDOC_MEMBERS      = YES
  HIDE_UNDOC_CLASSES      = YES

I think you should provide a pointer to the doxygen documentation in the commit log to explain the modification. Maybe this one is appropriate:
http://www.stack.nl/~dimitri/doxygen/manual/preprocessing.html

About the patch itself, it looks good to me.

Olivier

A message that is not in the archive (sent off-list or not yet received): [email protected]

#4 lore raw
Quoted 5 lines
Quoted 2 lines

Ignore __attribute__ because it was wrongly parsed as an identifier.

What about prefixing the title by "doc: " and remove the dot at the end of the line ?

Sorry, please ignore my first comment, it was not the title...