diff options
author | Chris Lattner <sabre@nondot.org> | 2009-02-18 18:34:12 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2009-02-18 18:34:12 +0000 |
commit | f638b97fe06a36e3b6de5ce1705ac4181cbf6f9b (patch) | |
tree | a9d8bb2756d003a572a2fb119ebe6371e25c53a7 /clang/lib/CodeGen/CodeGenModule.cpp | |
parent | df18c6a9af34550404058f80f9d2e74b42bb4a74 (diff) | |
download | bcm5719-llvm-f638b97fe06a36e3b6de5ce1705ac4181cbf6f9b.tar.gz bcm5719-llvm-f638b97fe06a36e3b6de5ce1705ac4181cbf6f9b.zip |
use the full spelling of a string literal token so that trigraphs
and escaped newlines don't throw off the offset computation.
On this testcase:
printf("abc\
def"
"%*d", (unsigned) 1, 1);
Before:
t.m:5:5: warning: field width should have type 'int', but argument has type 'unsigned int'
def"
^
after:
t.m:6:12: warning: field width should have type 'int', but argument has type 'unsigned int'
"%*d", (unsigned) 1, 1);
^ ~~~~~~~~~~~~
llvm-svn: 64930
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
0 files changed, 0 insertions, 0 deletions