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 | 60800081361b0ffc114877b8abbc81cb57b4edf6 (patch) | |
tree | 52a43ffdd8bcf654b76f84aa38ce5d50f18d6fa1 /lib/Sema/SemaType.cpp | |
parent | 809070a886684cb5b92eb0e00a6581ab1fa6b17a (diff) |
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.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@64924 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Sema/SemaType.cpp')
0 files changed, 0 insertions, 0 deletions