eolian: Remove the EOLIAN_PROPERTY_DOC_WARN envvar

This test is now always enabled, so ALL properties should have property-level
documentation. Setter and getter docs are optional.
This commit is contained in:
Xavi Artigas 2019-09-13 12:41:16 +02:00
parent 8c09c1cae8
commit 4c018509c5
1 changed files with 10 additions and 13 deletions

View File

@ -1217,19 +1217,16 @@ parse_accessor:
check_next(ls, '{'); check_next(ls, '{');
if ((ls->t.token == TOK_DOC) && !prop->impl->common_doc) if ((ls->t.token == TOK_DOC) && !prop->impl->common_doc)
{ {
if (getenv("EOLIAN_PROPERTY_DOC_WARN")) Eolian_Object tmp;
{ memset(&tmp, 0, sizeof(Eolian_Object));
Eolian_Object tmp; tmp.file = prop->base.file;
memset(&tmp, 0, sizeof(Eolian_Object)); tmp.line = line;
tmp.file = prop->base.file; tmp.column = col;
tmp.line = line; tmp.unit = ls->unit;
tmp.column = col; eolian_state_log_obj(ls->state, &tmp,
tmp.unit = ls->unit; "%s doc without property doc for '%s.%s'",
eolian_state_log_obj(ls->state, &tmp, is_get ? "getter" : "setter",
"%s doc without property doc for '%s.%s'", ls->klass->base.name, prop->base.name);
is_get ? "getter" : "setter",
ls->klass->base.name, prop->base.name);
}
} }
if (is_get) if (is_get)
{ {