]> granicus.if.org Git - clang/commit
Robustify SourceManager::getLocation(), so that it returns an
authorDouglas Gregor <dgregor@apple.com>
Sat, 27 Feb 2010 02:42:25 +0000 (02:42 +0000)
committerDouglas Gregor <dgregor@apple.com>
Sat, 27 Feb 2010 02:42:25 +0000 (02:42 +0000)
commitd1eabfb15c87837c57d1eb658d75a1f48d6fd5ed
tree1674794461bdb4baf33f78c7357f7d149707ac35
parentde431c2dc7ec3592327ab23ae315fc915c549f05
Robustify SourceManager::getLocation(), so that it returns an
end-of-line source location when given a column number beyond the
length of the line, or an end-of-file source location when given a
line number beyond the length of the file. Previously, we would return
an invalid location.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@97299 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Basic/SourceManager.cpp
test/Index/annotate-tokens.c