]> granicus.if.org Git - clang/commit
PTH: When emitting tokens for literals with cached spellings, change the token
authorTed Kremenek <kremenek@apple.com>
Tue, 24 Feb 2009 00:30:21 +0000 (00:30 +0000)
committerTed Kremenek <kremenek@apple.com>
Tue, 24 Feb 2009 00:30:21 +0000 (00:30 +0000)
commit25cbd9ffd59ce575761295f094031daf1afda881
tree567c68eabbfa36d7161df72fab06aa8ea8f508b9
parentb76fe917c2c6bb320ff6832ec77c88c9d898d6d7
PTH: When emitting tokens for literals with cached spellings, change the token
size to that of the *cleaned* spelling. This way 'getSpelling()' for literals in
the Preprocessor just works and doesn't read beyond the bounds of the cached
spelling buffer.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@65354 91177308-0d34-0410-b5e6-96231b3b80d8
Driver/CacheTokens.cpp