llvm-project/clang/unittests/AST
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
..
ASTContextParentMapTest.cpp [clang][AST] RecursiveASTVisitor should visit owned TagDecl of friend type. 2022-08-23 09:15:55 +02:00
ASTImporterFixtures.cpp
ASTImporterFixtures.h [clang][NFC][AST] rename the ImportError to ASTImportError 2022-06-15 00:40:32 +05:30
ASTImporterGenericRedeclTest.cpp Bump googletest to 1.10.0 2021-05-14 19:16:31 +02:00
ASTImporterODRStrategiesTest.cpp [clang][NFC][AST] rename the ImportError to ASTImportError 2022-06-15 00:40:32 +05:30
ASTImporterObjCTest.cpp Bump googletest to 1.10.0 2021-05-14 19:16:31 +02:00
ASTImporterTest.cpp [clang/unittests] Use std::nullopt instead of None (NFC) 2022-12-03 12:14:19 -08:00
ASTImporterVisibilityTest.cpp Bump googletest to 1.10.0 2021-05-14 19:16:31 +02:00
ASTPrint.h [clang] Refactor AST printing tests to share more infrastructure 2021-07-14 19:44:18 -04:00
ASTTraverserTest.cpp Properly print unnamed TagDecl objects in diagnostics 2022-10-14 08:18:28 -04:00
ASTTypeTraitsTest.cpp [clang] Support `constexpr` for some `ASTNodeKind` member functions 2022-10-13 13:00:48 -04:00
ASTVectorTest.cpp Reland "[clang-repl] Implement partial translation units and error recovery." 2021-07-12 15:21:22 +00:00
AttrTest.cpp Fix signed/unsigned comparison warning 2022-06-15 11:53:08 +01:00
CMakeLists.txt [Testing] Drop clangTesting from clang's public library interface 2022-04-20 13:28:44 +02:00
CommentLexer.cpp [clang] Use std::size instead of llvm::array_lengthof 2022-09-08 17:20:25 -06:00
CommentParser.cpp [clang] Use std::size instead of llvm::array_lengthof 2022-09-08 17:20:25 -06:00
CommentTextTest.cpp [clang] NFC: test for undefined behaviour in RawComment::getFormattedText() 2021-06-07 03:05:00 -07:00
DataCollectionTest.cpp
DeclMatcher.h
DeclPrinterTest.cpp [clang] Use std::size instead of llvm::array_lengthof 2022-09-08 17:20:25 -06:00
DeclTest.cpp [C++20] [Modules] Attach implicitly declared allocation funcitons to 2022-11-15 17:21:48 +08:00
EvaluateAsRValueTest.cpp [clang] Perform implicit lvalue-to-rvalue cast with new interpreter 2022-09-08 07:31:07 +02:00
ExternalASTSourceTest.cpp
MatchVerifier.h [ASTStructuralEquivalence] Add support for comparing ObjCCategoryDecl. 2022-04-22 16:51:19 -07:00
NamedDeclPrinterTest.cpp [clang] Refactor AST printing tests to share more infrastructure 2021-07-14 19:44:18 -04:00
RandstructTest.cpp [randstruct] Automatically randomize a structure of function pointers 2022-04-29 11:05:09 -07:00
RecursiveASTVisitorTest.cpp [clang] Add `ObjCProtocolLoc` to represent protocol references 2022-02-18 15:24:00 -05:00
SizelessTypesTest.cpp
SourceLocationTest.cpp Change the behavior of implicit int diagnostics 2022-05-04 08:35:47 -04:00
StmtPrinterTest.cpp Disambiguate type names when printing NTTP types 2022-10-28 08:18:38 -04:00
StructuralEquivalenceTest.cpp Fixed a number of typos 2022-08-01 13:13:18 -04:00
TemplateNameTest.cpp [AST] Consider QualifiedTemplateName in TemplateName::getAsUsingDecl(). 2022-04-27 14:16:19 +02:00
TypePrinterTest.cpp Disambiguate type names when printing NTTP types 2022-10-28 08:18:38 -04:00