]> granicus.if.org Git - clang/commit
Grab-bag of bit-field fixes:
authorJohn McCall <rjmccall@apple.com>
Mon, 6 May 2013 21:39:12 +0000 (21:39 +0000)
committerJohn McCall <rjmccall@apple.com>
Mon, 6 May 2013 21:39:12 +0000 (21:39 +0000)
commit993f43f24d7a45a5cd4678a3316b0852261fc5d4
treebf54fbd0ff497973e08eb9c0667daaaa43804fb0
parent009735db957ac4bcca8f5ad1a5c01354b1b57fbd
Grab-bag of bit-field fixes:

  - References to ObjC bit-field ivars are bit-field lvalues;
    fixes rdar://13794269, which got me started down this.
  - Introduce Expr::refersToBitField, switch a couple users to
    it where semantically important, and comment the difference
    between this and the existing API.
  - Discourage Expr::getBitField by making it a bit longer and
    less general-sounding.
  - Lock down on const_casts of bit-field gl-values until we
    hear back from the committee as to whether they're allowed.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@181252 91177308-0d34-0410-b5e6-96231b3b80d8
15 files changed:
include/clang/AST/Expr.h
include/clang/AST/ExprObjC.h
include/clang/Basic/DiagnosticSemaKinds.td
lib/AST/ASTContext.cpp
lib/AST/Expr.cpp
lib/Sema/SemaCast.cpp
lib/Sema/SemaChecking.cpp
lib/Sema/SemaExpr.cpp
lib/Sema/SemaInit.cpp
lib/Sema/SemaOverload.cpp
test/CXX/dcl.decl/dcl.init/dcl.init.ref/p5.cpp
test/CXX/expr/expr.post/expr.const.cast/p1-0x.cpp
test/CXX/expr/expr.unary/expr.sizeof/p1.cpp [new file with mode: 0644]
test/Sema/bitfield.c
test/SemaObjCXX/references.mm