+
+ /* check deprecated */
+ if(expression->base.kind == EXPR_REFERENCE) {
+ const reference_expression_t *ref = (reference_expression_t *)expression;
+ const declaration_t *declaration = ref->declaration;
+ if(declaration->modifiers & DM_DEPRECATED) {
+ if (declaration->deprecated_string != NULL) {
+ warningf(result->base.source_position,
+ "function '%Y' was declared 'deprecated(%s)'", declaration->symbol,
+ declaration->deprecated_string);
+ } else {
+ warningf(result->base.source_position,
+ "function '%Y' was declared 'deprecated'", declaration->symbol);
+ }
+ }
+ }