qual_end:
check_next(ls, ';');
FILL_DOC(ls, fdef, doc);
+ if (def->doc && fdef->doc && def->doc->since && !fdef->doc->since)
+ fdef->doc->since = eina_stringshare_ref (def->doc->since);
}
check_match(ls, '}', '{', bline, bcolumn);
FILL_BASE(def->base, ls, line, column, TYPEDECL);
if (want_next)
eo_lexer_get(ls);
FILL_DOC(ls, fdef, doc);
+ if (def->doc && fdef->doc && def->doc->since && !fdef->doc->since)
+ fdef->doc->since = eina_stringshare_ref (def->doc->since);
if (!want_next || ls->t.token == '}')
break;
}
*/
typedef struct _Foo
{
- int field1; /**< Field documentation. */
+ int field1; /**< Field documentation.
+ *
+ * @since 1.66 */
float field2;
- short field3; /**< Another field documentation. */
+ short field3; /**< Another field documentation.
+ *
+ * @since 1.66 */
} Foo;
/** Docs for enum Bar.
*
+ * @since 1.55
+ *
* @ingroup Bar
*/
typedef enum
{
BAR_BLAH = 0,
- BAR_FOO = 1, /**< Docs for foo. */
- BAR_BAR = 2 /**< Docs for bar. */
+ BAR_FOO = 1, /**< Docs for foo.
+ *
+ * @since 1.55 */
+ BAR_BAR = 2 /**< Docs for bar.
+ *
+ * @since 1.55 */
} Bar;
/**
}
enum Bar {
- [[Docs for enum Bar.]]
+ [[Docs for enum Bar.
+ @since 1.55
+ ]]
blah = 0,
foo = 1, [[Docs for foo.]]
bar = 2 [[Docs for bar.]]
fail_if(strcmp(eolian_documentation_summary_get(doc),
"Docs for enum Bar."));
fail_if(eolian_documentation_description_get(doc));
- fail_if(eolian_documentation_since_get(doc));
+ fail_if(strcmp(eolian_documentation_since_get(doc),
+ "1.55"));
fail_if(!(efl = eolian_typedecl_enum_field_get(tdl, "blah")));
fail_if(eolian_typedecl_enum_field_documentation_get(efl));
doc = field_iter->documentation;
ck_assert_str_eq(doc.summary.c_str(), "Field documentation.");
ck_assert_str_eq(doc.description.c_str(), "");
- ck_assert_str_eq(doc.since.c_str(), "");
+ ck_assert_str_eq(doc.since.c_str(), "1.66");
field_iter++;
doc = field_iter->documentation;
ck_assert_str_eq(doc.summary.c_str(), "Another field documentation.");
ck_assert_str_eq(doc.description.c_str(), "");
- ck_assert_str_eq(doc.since.c_str(), "");
+ ck_assert_str_eq(doc.since.c_str(), "1.66");
}
EFL_END_TEST