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 | d0d082f2eba4e3ed4eb467d76fd227c6dcd6cce7 (patch) | |
tree | ea0e36306ec2e9ed40cc6675204d738076914864 /lib/Lex/Preprocessor.cpp | |
parent | 07f192e1d7af64d63fd80eafd724b70a18ebfbd9 (diff) |
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);
^ ~~~~~~~~~~~~
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@64930 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Lex/Preprocessor.cpp')
0 files changed, 0 insertions, 0 deletions