summaryrefslogtreecommitdiff
path: root/src/lib/eolian
diff options
context:
space:
mode:
authorXavi Artigas <xavierartigas@yahoo.es>2019-09-13 12:41:16 +0200
committerXavi Artigas <xavierartigas@yahoo.es>2019-09-13 12:41:16 +0200
commit4c018509c5fe644bbfc38e9b2501ddfa8f62d978 (patch)
tree9999a364f96c7d6a1c75906f6d721f390271005e /src/lib/eolian
parent8c09c1cae8b4368b88ec0b296f124d35e735dc7e (diff)
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.
Diffstat (limited to 'src/lib/eolian')
-rw-r--r--src/lib/eolian/eo_parser.c23
1 files 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:
1217 check_next(ls, '{'); 1217 check_next(ls, '{');
1218 if ((ls->t.token == TOK_DOC) && !prop->impl->common_doc) 1218 if ((ls->t.token == TOK_DOC) && !prop->impl->common_doc)
1219 { 1219 {
1220 if (getenv("EOLIAN_PROPERTY_DOC_WARN")) 1220 Eolian_Object tmp;
1221 { 1221 memset(&tmp, 0, sizeof(Eolian_Object));
1222 Eolian_Object tmp; 1222 tmp.file = prop->base.file;
1223 memset(&tmp, 0, sizeof(Eolian_Object)); 1223 tmp.line = line;
1224 tmp.file = prop->base.file; 1224 tmp.column = col;
1225 tmp.line = line; 1225 tmp.unit = ls->unit;
1226 tmp.column = col; 1226 eolian_state_log_obj(ls->state, &tmp,
1227 tmp.unit = ls->unit; 1227 "%s doc without property doc for '%s.%s'",
1228 eolian_state_log_obj(ls->state, &tmp, 1228 is_get ? "getter" : "setter",
1229 "%s doc without property doc for '%s.%s'", 1229 ls->klass->base.name, prop->base.name);
1230 is_get ? "getter" : "setter",
1231 ls->klass->base.name, prop->base.name);
1232 }
1233 } 1230 }
1234 if (is_get) 1231 if (is_get)
1235 { 1232 {