From 8177d8e40a78b2182a65eb8f3db4498012256683 Mon Sep 17 00:00:00 2001 From: Jaeden Amero Date: Fri, 12 Jul 2019 14:27:26 +0100 Subject: [PATCH] check-names: Update for deprecation tags Make list-identifiers deal with deprecation tags by treating the `MBEDTLS_DEPRECATED` attribute as an identifier. Treat `MBEDTLS_DEPRECATED` the same as one would `struct` on a function that returned a `struct` (e.g. `struct something do_action(int param)`) --- tests/scripts/list-identifiers.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/scripts/list-identifiers.sh b/tests/scripts/list-identifiers.sh index 0d63284cd8..fc41e61d04 100755 --- a/tests/scripts/list-identifiers.sh +++ b/tests/scripts/list-identifiers.sh @@ -41,7 +41,7 @@ rm -f identifiers grep '^[^ /#{]' $HEADERS | \ sed -e 's/^[^:]*://' | \ - egrep -v '^(extern "C"|(typedef )?(struct|enum)( {)?$|};?$)' \ + egrep -v '^(extern "C"|(typedef )?(struct|enum|MBEDTLS_DEPRECATED)( {)?$|};?$)' \ > _decls if true; then