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)`)
This commit is contained in:
Jaeden Amero 2019-07-12 14:27:26 +01:00
parent 45ea37a5d2
commit 8177d8e40a

View file

@ -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