mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2024-11-22 23:05:41 +01:00
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:
parent
45ea37a5d2
commit
8177d8e40a
@ -41,7 +41,7 @@ rm -f identifiers
|
|||||||
|
|
||||||
grep '^[^ /#{]' $HEADERS | \
|
grep '^[^ /#{]' $HEADERS | \
|
||||||
sed -e 's/^[^:]*://' | \
|
sed -e 's/^[^:]*://' | \
|
||||||
egrep -v '^(extern "C"|(typedef )?(struct|enum)( {)?$|};?$)' \
|
egrep -v '^(extern "C"|(typedef )?(struct|enum|MBEDTLS_DEPRECATED)( {)?$|};?$)' \
|
||||||
> _decls
|
> _decls
|
||||||
|
|
||||||
if true; then
|
if true; then
|
||||||
|
Loading…
Reference in New Issue
Block a user