llvm-project/clang/unittests/Lex
Duncan P. N. Exon Smith b5ce11fcc6 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
2016-02-23 00:48:16 +00:00
..
CMakeLists.txt Lex: Add some unit tests for corrupt header maps 2016-02-20 20:39:51 +00:00
HeaderMapTest.cpp Lex: Return "" when HeaderMap::lookupFilename fails 2016-02-23 00:48:16 +00:00
LexerTest.cpp Fix -Wextra-semi warnings. 2015-07-22 20:46:26 +00:00
PPCallbacksTest.cpp [VFS] Use VFS instead of virtual files in PPCallbacks test. 2015-10-08 14:20:14 +00:00
PPConditionalDirectiveRecordTest.cpp Fix -Wextra-semi warnings. 2015-07-22 20:46:26 +00:00