[PATCH] C++11: Reject string literal to non-const char * conversion
Ismail Pazarbasi
ismail.pazarbasi at gmail.com
Wed Nov 13 17:34:43 PST 2013
Added new test for user defined conversion sequence.
User defined conversions were handled incorrectly in previous revision.
Added DeprecatedStringLiteralToCharPtr initializations, so that we don't have to check standard conversion sequence has Array to pointer->identity->qualification conversions (previously needed for checking DeprecatedStringLiteralToCharPtr).
Added checks to ensure we pick the correct overloads.
Hi rsmith,
http://llvm-reviews.chandlerc.com/D1965
CHANGE SINCE LAST DIFF
http://llvm-reviews.chandlerc.com/D1965?vs=5351&id=5530#toc
Files:
include/clang/Basic/DiagnosticSemaKinds.td
lib/Sema/SemaExprCXX.cpp
lib/Sema/SemaOverload.cpp
test/SemaCXX/cxx0x-type-convert-construct.cpp
test/SemaCXX/deprecated.cpp
test/SemaCXX/overload-0x.cpp
unittests/ASTMatchers/ASTMatchersTest.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D1965.4.patch
Type: text/x-patch
Size: 15927 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20131113/92b2346e/attachment.bin>
More information about the cfe-commits
mailing list