aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/FrontendTool
diff options
context:
space:
mode:
authorManuel Klimek <klimek@google.com>2013-01-05 22:56:06 +0000
committerManuel Klimek <klimek@google.com>2013-01-05 22:56:06 +0000
commit52d0fd8961ef4d03e042ac9eb1b30610518e3016 (patch)
tree66f1f3dd31828000ce6c155da69c284c020ced81 /clang/lib/FrontendTool
parentef2cfb110d776dd9fc34c4154a1e6d5f774df25f (diff)
downloadllvm-52d0fd8961ef4d03e042ac9eb1b30610518e3016.zip
llvm-52d0fd8961ef4d03e042ac9eb1b30610518e3016.tar.gz
llvm-52d0fd8961ef4d03e042ac9eb1b30610518e3016.tar.bz2
Fixes parsing of hash tokens in the middle of a line.
To parse # correctly, we need to know whether it is the first token in a line - we can deduct this either from the whitespace or seeing that the token is the first in the file - we already calculate this information. This patch moves the identification of the first token into the getNextToken method and stores it inside the FormatToken, so the UnwrappedLineParser can stay independent of the SourceManager. llvm-svn: 171640
Diffstat (limited to 'clang/lib/FrontendTool')
0 files changed, 0 insertions, 0 deletions