llvm-project/clang/unittests/Lex
Kazu Hirata a41fbb1fc2 [clang/unittests] Use std::nullopt instead of None (NFC)
This patch mechanically replaces None with std::nullopt where the
compiler would warn if None were deprecated.  The intent is to reduce
the amount of manual work required in migrating from Optional to
std::optional.

This is part of an effort to migrate from llvm::Optional to
std::optional:

https://discourse.llvm.org/t/deprecating-llvm-optional-x-hasvalue-getvalue-getvalueor/63716
2022-12-03 12:14:19 -08:00
..
CMakeLists.txt Fix build of Lex unit test with CLANG_DYLIB 2022-09-12 13:49:57 +02:00
DependencyDirectivesScannerTest.cpp [Lex/DependencyDirectivesScanner] Handle the case where the source line starts with a `tok::hashhash` 2022-09-13 15:48:50 -07:00
HeaderMapTest.cpp [clang][NFC] Use c++17 style variable type traits 2022-11-07 18:25:48 +00:00
HeaderMapTestUtils.h
HeaderSearchTest.cpp [clang/unittests] Use std::nullopt instead of None (NFC) 2022-12-03 12:14:19 -08:00
LexerTest.cpp Revert "Revert "[clang][Lex] Fix a crash on malformed string literals"" 2022-10-06 11:41:18 +02:00
PPCallbacksTest.cpp [clang][lex] NFCI: Use FileEntryRef in PPCallbacks::InclusionDirective() 2022-04-14 10:46:12 +02:00
PPConditionalDirectiveRecordTest.cpp
PPDependencyDirectivesTest.cpp [Lex/DependencyDirectivesScanner] Keep track of the presence of tokens between the last scanned directive and EOF 2022-09-07 10:31:29 -07:00
PPMemoryAllocationsTest.cpp [Preprocessor] Reduce the memory overhead of `#define` directives (Recommit) 2022-02-14 09:27:44 -08:00