]> granicus.if.org Git - clang/commit
Next step toward making string diagnostics correct: handle
authorChris Lattner <sabre@nondot.org>
Wed, 18 Feb 2009 19:21:10 +0000 (19:21 +0000)
committerChris Lattner <sabre@nondot.org>
Wed, 18 Feb 2009 19:21:10 +0000 (19:21 +0000)
commit719e61573f27c11057ecfe0dd8f141621602c571
treeaaaa50387e651a10f865c907286f61b21ad3a70f
parent6dcf63e920e003ea73cff332492dc11690b100a6
Next step toward making string diagnostics correct: handle
escapes in the string for subtoken positioning.  This gives
us working examples like:

t.m:5:16: warning: field width should have type 'int', but argument has type 'unsigned int'
  printf("\n\n%*d", (unsigned) 1, 1);
               ^    ~~~~~~~~~~~~

where before the caret pointed two spaces to the left.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@64940 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Lex/LiteralSupport.h
lib/Lex/LiteralSupport.cpp
lib/Sema/SemaChecking.cpp