]> granicus.if.org Git - clang/commit
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)
commitd9cad403c0f76cbbcc53efbfeee3d59f9f0b6e09
treee2d6d0ccb0b0c83c5e08ac25ada0576a716a8063
parent25030c46223f117f5d77936d3e5d0502a5c42e63
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.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@166265 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Basic/SourceManager.cpp