diff options
author | Douglas Gregor <dgregor@apple.com> | 2010-03-16 05:20:39 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2010-03-16 05:20:39 +0000 |
commit | 50f6af7a6d6951a63f3da7d4c5a7d3965bf73b63 (patch) | |
tree | 28f78b0fe61c0b7a80cf3ccf0d1c39a884986120 /lib/Sema/SemaAccess.cpp | |
parent | 36c35ba0aca641e60e5dbee8efbc620c08b9bd61 (diff) |
Introduce optional "Invalid" parameters to routines that invoke the
SourceManager's getBuffer() and, therefore, could fail, along with
Preprocessor::getSpelling(). Use the Invalid parameters in the literal
parsers (string, floating point, integral, character) to make them
robust against errors that stem from, e.g., PCH files that are not
consistent with the underlying file system.
I still need to audit every use caller to all of these routines, to
determine which ones need specific handling of error conditions.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@98608 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Sema/SemaAccess.cpp')
0 files changed, 0 insertions, 0 deletions