[PATCH] Add more information when displaying a "read-only variable is not assignable" error

Richard Trieu rtrieu at google.com
Fri Aug 1 17:43:03 PDT 2014


Improve the wording of the error message.  Make the error more informative by taking the information from the notes and moving it to the error message.

http://reviews.llvm.org/D4479

Files:
  include/clang/Basic/DiagnosticSemaKinds.td
  lib/Sema/SemaExpr.cpp
  test/CXX/temp/temp.decls/temp.mem/p5.cpp
  test/Sema/block-misc.c
  test/SemaCXX/anonymous-union.cpp
  test/SemaCXX/captured-statements.cpp
  test/SemaCXX/cxx0x-constexpr-const.cpp
  test/SemaCXX/err_typecheck_assign_const.cpp
  test/SemaCXX/function-type-qual.cpp
  test/SemaObjC/arc.m
  test/SemaTemplate/dependent-type-identity.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D4479.12132.patch
Type: text/x-patch
Size: 14151 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20140802/40cdd182/attachment.bin>


More information about the cfe-commits mailing list