tarantool / checkpatch

Checkpatch for Tarantool
GNU General Public License v2.0
2 stars 2 forks source link

Allow to add new typedefs in module API #27

Closed Totktonada closed 2 years ago

Totktonada commented 2 years ago

We expose our types using typedefs in the module API.

Recently I got the following on PR https://github.com/tarantool/tarantool/pull/7428:

ERROR: do not add new typedefs
#170: FILE: src/lib/core/decimal.h:97:
+typedef STRUCT_DECIMAL decimal_t;
locker commented 2 years ago

Module API typedefs should start with box_ or tt_ so this was fixed by commit 63cc5125f82641dfd2a15c75faac81d516586faa.

Totktonada commented 2 years ago

Thank you! It works for me.