diff options
author | Duncan P. N. Exon Smith <dexonsmith@apple.com> | 2016-02-23 00:48:16 +0000 |
---|---|---|
committer | Duncan P. N. Exon Smith <dexonsmith@apple.com> | 2016-02-23 00:48:16 +0000 |
commit | b5ce11fcc6b4706a56b5169acd23e47746e8b1bd (patch) | |
tree | 2213720a9885bdadf0d6a2b15492b43e80e0cad6 /lldb/packages/Python/lldbsuite/test/lang/mixed/foo.cpp | |
parent | de19ed1eb1aca8493abb5168d46b7f6f3cf9e770 (diff) | |
download | bcm5719-llvm-b5ce11fcc6b4706a56b5169acd23e47746e8b1bd.tar.gz bcm5719-llvm-b5ce11fcc6b4706a56b5169acd23e47746e8b1bd.zip |
Lex: Return "" when HeaderMap::lookupFilename fails
Change getString() to return Optional<StringRef>, and change
lookupFilename() to return an empty string if either one of the prefix
and suffix can't be found.
This is a more robust follow-up to r261461, but it's still not entirely
satisfactory. Ideally we'd report that the header map is corrupt;
perhaps something for a follow-up.
llvm-svn: 261596
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/lang/mixed/foo.cpp')
0 files changed, 0 insertions, 0 deletions