diff options
author | Douglas Gregor <dgregor@apple.com> | 2010-02-27 02:42:25 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2010-02-27 02:42:25 +0000 |
commit | d1eabfb15c87837c57d1eb658d75a1f48d6fd5ed (patch) | |
tree | 1674794461bdb4baf33f78c7357f7d149707ac35 /lib/Lex/Preprocessor.cpp | |
parent | de431c2dc7ec3592327ab23ae315fc915c549f05 (diff) |
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
Diffstat (limited to 'lib/Lex/Preprocessor.cpp')
0 files changed, 0 insertions, 0 deletions