Commit a1d64f8
committed
issue doxygen#11708 [BUG] Variadic macro expansion doesn't work when the arguments contain comments starting with //
When having:
```
/**
* @brief My struct A.
*/
typedef PACK(struct {
int struct_a_1; ///< Description of struct_a_1
int struct_a_2; // This comment causes the problem
}) my_structA_t;
```
and
```
PREDEFINED = PACK(...)=__VA_ARGS__
```
this will translate during the preprocessing into:
```
/**
* @brief My struct A.
*/
typedef
// This comment causes the problem
struct { int struct_a_1; /**< Description of struct_a_1
*/ int struct_a_2; } my_structA_t;
```
Note the strange place of the `//` comment
The problem is that the `//` comment lands in the "catch all" rule:
```
<*>{CPPC}[/!]?
```
instead of having an own rule with the `FindDefineArgs` which retains the comment at the regular place.1 parent f1ec8b7 commit a1d64f8
1 file changed
+3
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
897 | 897 | | |
898 | 898 | | |
899 | 899 | | |
| 900 | + | |
| 901 | + | |
| 902 | + | |
900 | 903 | | |
901 | 904 | | |
902 | 905 | | |
| |||
0 commit comments