Nice. I'm a bit surprised file_name() returns a char* rather than a std::filesystem::path, but it'll do. It's also nice to see source_location has a function_name() that can finally unify the disparate ways of getting that information.
The advantages are for instance that file_name() does even work on tiny bare metal targets without heap. It can be processed in constexpr at compile-time. const char* gives the user a lot of freedom to decide what to pay for.
_______________________________________________ Development mailing list Development@qt-project.org https://lists.qt-project.org/listinfo/development