[PATCH] D22196: Fix Bug "28480 - cppcoreguidelines-pro-bounds-array-to-pointer-decay handling __PRETTY_FUNCTION__"

Eric Lemanissier via cfe-commits cfe-commits at lists.llvm.org
Tue Jul 12 03:24:22 PDT 2016

ericLemanissier abandoned this revision.
ericLemanissier added a comment.

Well, C++ Core Guidelines advises in this case to correct function receiving __PRETTY_FUNCTION__: the parameter type should not be const char* ( https://github.com/isocpp/CppCoreGuidelines/issues/640 )
I'm not sure if it should be cstring_span, czstring_span, or czstring.
In case it is not possible to change this function, I guess the only solution is static_cast<const char*>(__PRETTY_FUNCTION)


More information about the cfe-commits mailing list