diff options
author | Chris Lattner <sabre@nondot.org> | 2009-02-18 17:49:48 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2009-02-18 17:49:48 +0000 |
commit | a26fb347a05436bfef008bb62eb820ada9fdbc68 (patch) | |
tree | 8563fbc74b1b2ff27705fc3a91cfdb8a57dafe11 /clang/lib/CodeGen/CodeGenModule.cpp | |
parent | 6add6181c8f79389936a5a6e107d66ef4b06c7ab (diff) | |
download | bcm5719-llvm-a26fb347a05436bfef008bb62eb820ada9fdbc68.tar.gz bcm5719-llvm-a26fb347a05436bfef008bb62eb820ada9fdbc68.zip |
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}}
~~~^~~~~~~
There are several other related issues still to be done.
llvm-svn: 64924
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
0 files changed, 0 insertions, 0 deletions