[PATCH] D14938: Fix implicit conversion from _Nullable to _Nonnull warnings in C++
George Burgess IV via cfe-commits
cfe-commits at lists.llvm.org
Mon Nov 23 14:51:17 PST 2015
george.burgess.iv created this revision.
george.burgess.iv added a reviewer: doug.gregor.
george.burgess.iv added subscribers: cfe-commits, doug.gregor.
Currently, code like this compiles cleanly in C++, but with warnings (as it should) in C:
```
int foo() {
void *_Nullable p;
void *_Nonnull n = p;
}
```
This patch makes us emit the appropriate warnings in C++.
@doug.gregor: `arc` said you would be best to review this; if you're unable to, I'm happy to ping others. :)
http://reviews.llvm.org/D14938
Files:
include/clang/Sema/Sema.h
lib/Sema/Sema.cpp
lib/Sema/SemaExpr.cpp
lib/Sema/SemaExprCXX.cpp
test/SemaCXX/nullability.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D14938.40987.patch
Type: text/x-patch
Size: 6848 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20151123/7d6b5ad9/attachment.bin>
More information about the cfe-commits
mailing list