[cfe-commits] r64924 - in /cfe/trunk: include/clang/AST/Expr.h lib/Sema/Sema.h lib/Sema/SemaChecking.cpp test/SemaObjC/exprs.m
Douglas Gregor
dgregor at apple.com
Wed Feb 18 09:53:30 PST 2009
On Feb 18, 2009, at 9:49 AM, Chris Lattner wrote:
> Author: lattner
> Date: Wed Feb 18 11:49:48 2009
> New Revision: 64924
>
> URL: http://llvm.org/viewvc/llvm-project?rev=64924&view=rev
> Log:
> Start improving diagnostics that relate to subcharacters of string
> literals.
> First step, handle diagnostics in StringLiteral's that are due to
> token pasting.
>
> For example, we now handle:
> id str2 = @"foo"
> "bar"
> @"baz"
> " b\0larg"; // expected-warning {{literal contains NUL
> character}}
>
> Correctly:
>
> test/SemaObjC/exprs.m:17:15: warning: CFString literal contains NUL
> character
> " b\0larg"; // expected-warning {{literal contains NUL
> character}}
> ~~~^~~~~~~
Nice!
- Doug
More information about the cfe-commits
mailing list