llvm-project/clang/lib/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
DependencyDirectivesSourceMinimizer.cpp [clang][deps] Keep #pragma push_macro, pop_macro and include_alias when minimizing source code. 2021-11-01 16:04:52 -04:00
HeaderMap.cpp [clang][lex] Remark on search path usage 2021-10-12 12:20:55 +02:00
HeaderSearch.cpp [clang][lex] NFC: Simplify calls to `LookupFile` 2022-01-18 16:02:18 +01:00
InitHeaderSearch.cpp [clang] Move `ApplyHeaderSearchOptions` from Frontend to Lex 2022-01-11 17:57:40 +01:00
Lexer.cpp [clang] Use nullptr instead of 0 or NULL (NFC) 2021-12-29 08:34:20 -08:00
LiteralSupport.cpp LiteralSupport: Don't assert() on invalid input 2021-11-17 23:51:30 +00:00
MacroArgs.cpp
MacroInfo.cpp
ModuleMap.cpp [C++20] [Module] Support extern C/C++ semantics 2021-12-08 13:29:16 +08:00
PPCaching.cpp [clang] Introduce SourceLocation::[U]IntTy typedefs. 2021-07-21 10:45:46 +01:00
PPCallbacks.cpp Avoid including FileManager.h from SourceManager.h 2020-03-11 13:53:12 -07:00
PPConditionalDirectiveRecord.cpp Add support for #elifdef and #elifndef 2021-05-27 08:57:47 -04:00
PPDirectives.cpp [clang][lex] NFC: Simplify calls to `LookupFile` 2022-01-18 16:02:18 +01:00
PPExpressions.cpp Fixed warnings in target/parser codes produced by -Wbitwise-instead-of-logicala 2021-10-03 15:04:01 +02:00
PPLexerChange.cpp [clang][lex] Refactor check for the first file include 2021-11-18 13:01:07 +01:00
PPMacroExpansion.cpp [clang][lex] NFC: Simplify calls to `LookupFile` 2022-01-18 16:02:18 +01:00
Pragma.cpp [clang][lex] NFC: Simplify calls to `LookupFile` 2022-01-18 16:02:18 +01:00
PreprocessingRecord.cpp Add support for #elifdef and #elifndef 2021-05-27 08:57:47 -04:00
Preprocessor.cpp [clang][lex] NFC: Simplify calls to `LookupFile` 2022-01-18 16:02:18 +01:00
PreprocessorLexer.cpp
ScratchBuffer.cpp SourceManager: Make LastLineNoContentCache and ContentCache::SourceLineCache mutable, NFC 2020-10-23 13:22:47 -04:00
TokenConcatenation.cpp C++2a -> C++20 in some identifiers; NFC. 2020-04-21 15:37:19 -04:00
TokenLexer.cpp [clang] Use llvm::reverse (NFC) 2021-12-17 16:51:42 -08:00
UnicodeCharSets.h Support Unicode 14 identifiers 2021-09-16 13:21:27 -04:00