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

Richard Trieu rtrieu at google.com
Fri Feb 20 14:59:17 PST 2015


Extend the better error messages to more cases.
Centralize part of the const checking.
Update even more old test cases.


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/anonymous-struct-union.c
  test/Sema/assign.c
  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/err_typecheck_assign_const_filecheck.cpp
  test/SemaCXX/function-type-qual.cpp
  test/SemaObjC/arc.m
  test/SemaTemplate/dependent-type-identity.cpp

EMAIL PREFERENCES
  http://reviews.llvm.org/settings/panel/emailpreferences/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D4479.20440.patch
Type: text/x-patch
Size: 27699 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20150220/ceff15cb/attachment.bin>


More information about the cfe-commits mailing list