From 4c018509c5fe644bbfc38e9b2501ddfa8f62d978 Mon Sep 17 00:00:00 2001 From: Xavi Artigas Date: Fri, 13 Sep 2019 12:41:16 +0200 Subject: [PATCH] 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. --- src/lib/eolian/eo_parser.c | 23 ++++++++++------------- 1 file changed, 10 insertions(+), 13 deletions(-) diff --git a/src/lib/eolian/eo_parser.c b/src/lib/eolian/eo_parser.c index 3786dcc198..1631082081 100644 --- a/src/lib/eolian/eo_parser.c +++ b/src/lib/eolian/eo_parser.c @@ -1217,19 +1217,16 @@ parse_accessor: check_next(ls, '{'); 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)); - tmp.file = prop->base.file; - tmp.line = line; - tmp.column = col; - tmp.unit = ls->unit; - eolian_state_log_obj(ls->state, &tmp, - "%s doc without property doc for '%s.%s'", - is_get ? "getter" : "setter", - ls->klass->base.name, prop->base.name); - } + Eolian_Object tmp; + memset(&tmp, 0, sizeof(Eolian_Object)); + tmp.file = prop->base.file; + tmp.line = line; + tmp.column = col; + tmp.unit = ls->unit; + eolian_state_log_obj(ls->state, &tmp, + "%s doc without property doc for '%s.%s'", + is_get ? "getter" : "setter", + ls->klass->base.name, prop->base.name); } if (is_get) {