Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[monodroid] C++ tweaks and legacy code cleanup (#8638)
Remove old and unused code originally written for: * Classic Xamarin.Android * [Xamarin.Android Designer][0] on Windows * Xamarin.Android Designer on macOS Remove a collection of platform and compiler compatibility macros, typedefs and wrapper functions. Migrate from `char` arrays to `std::string_view` for more strongly typed code. Move `-fstack-clash-protection` from `LOCAL_COMMON_COMPILER_ARGS` to `LOCAL_COMMON_LINKER_ARGS`; it's a linker flag. Use `#pragma clang diagnostic ignored "-Warray-bounds"` around certain "MonoVM-isms" in the GC bridge to silence array bounds checking warnings. Refactor to use new(er) C++ types such as `std::span`, `std::array`, and `std::string_view`. This helps reduce memory allocations in some scenarios, allows usage of the newer `for (e : collection)` syntax, and increases type safety. [0]: https://github.com/MicrosoftDocs/xamarin-docs/blob/ff833dc5af413e10802afca108212c0a7b2d6fa2/docs/android/user-interface/android-designer/designer-basics.md
- Loading branch information