[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
Thu Jul 14 06:16:30 PDT 2016
ericLemanissier added a comment.
After searching deeper into the C++ Core Guidelines, they are Ok with passing C strings to function without passing there size, but the types gsl::zstring and gsl::czstring have to be used : https://github.com/isocpp/CppCoreGuidelines/blob/master/CppCoreGuidelines.md#i13-do-not-pass-an-array-as-a-single-pointer
https://reviews.llvm.org/D22196
More information about the cfe-commits
mailing list