llvm-project/clang/unittests/Lex
Jan Svoboda 105c913156 [clang][lex] NFC: Simplify calls to `LookupFile`
The `{HeaderSearch,Preprocessor}::LookupFile()` functions take an out-parameter `const DirectoryLookup *&`. Most callers end up creating a `const DirectoryLookup *` variable that's otherwise unused.

This patch changes the out-parameter from reference to a pointer, making it possible to simply pass `nullptr` to the function without the ceremony.

Reviewed By: ahoppen

Differential Revision: https://reviews.llvm.org/D117312
2022-01-18 16:02:18 +01:00
..
CMakeLists.txt [clang] Move `ApplyHeaderSearchOptions` from Frontend to Lex 2022-01-11 17:57:40 +01:00
DependencyDirectivesSourceMinimizerTest.cpp [clang][deps] Keep #pragma push_macro, pop_macro and include_alias when minimizing source code. 2021-11-01 16:04:52 -04:00
HeaderMapTest.cpp [clang] NFC: split HeaderMapTest to have re-usable header map implementation for testing 2021-05-31 01:57:36 -07:00
HeaderMapTestUtils.h [clang] NFC: split HeaderMapTest to have re-usable header map implementation for testing 2021-05-31 01:57:36 -07:00
HeaderSearchTest.cpp [clang][lex] NFC: Simplify calls to `LookupFile` 2022-01-18 16:02:18 +01:00
LexerTest.cpp [Lexer] Fix bug in `makeFileCharRange` called on split tokens. 2021-07-14 14:36:31 +00:00
PPCallbacksTest.cpp Reland "[clang-repl] Implement partial translation units and error recovery." 2021-07-12 15:21:22 +00:00
PPConditionalDirectiveRecordTest.cpp