Teach getColumnNumber to use the line cache to get the start of the line if its on...
authorCraig Topper <craig.topper@gmail.com>
Fri, 19 Oct 2012 04:40:38 +0000 (04:40 +0000)
committerCraig Topper <craig.topper@gmail.com>
Fri, 19 Oct 2012 04:40:38 +0000 (04:40 +0000)
commit5e79ee087e9eacc311d4abca736c734fb1012f18
treed581f133d4d624bce7c757fdd4052432712f3f8e
parent4985ddc5e011a9ebde17788fb49d603dcc36aa19
Teach getColumnNumber to use the line cache to get the start of the line if its on the same line as the last call to getLineNumber. Prevents needing to scan backwards for the new line. Fixes PR14106.

llvm-svn: 166265
clang/lib/Basic/SourceManager.cpp