Conversation
…ll_register_loaderv and metacall_link_register_loader
…attribute_type' from shadowing the struct tag name
…prevent function 'loader_impl_type' from shadowing the struct tag name
|
One question, how is loader_impl_type duplicated? This definition appears in many places. |
The struct For reference, this was the warning that is resolved after making this change:
|
|
I prefer if you change the function name instead: We can use |
|
Also uncomment this: Line 53 in 148ef21 |
…erted loader_impl_s struct name back to loader_impl_type
Uncommented |
|
I will review it in detail, I'm leaving it as a draft untill then. |

Description
Resolved all -Wshadow warnings in MetaCall's own codebase by adding
-Wshadowin Warnings.cmake and making the following changes:scopetoscope_nameinconfiguration_create(configuration.c)loadertoloader_ptrinmetacall_handle_initialize,metacall_register_loaderv(metacall.c) andmetacall_link_register_loader(metacall_link.c)contexttoctxinfunction_mock_interface_await(mock_loader_impl.c)and related test files
strto avoid shadowing parameter invalue_from_string(reflect_value_type.c)attribute_typetoattribute_sto avoid shadowing byattribute_type()functionloader_impl_typetoloader_impl_sto avoid shadowing byloader_impl_type()functionRemaining -Wshadow warnings in third-party dependency rapidjson/document.h are out of scope.
Only changed parameter/variable names, so formatting is unchanged.
Fixes #561 (Partially)
All 39 tests in the core test suite passed in both Debug mode and with Address Sanitizer (ASan) enabled.
Type of change
Checklist: