llvm-project/clang/lib/Tooling
Kazu Hirata 34bcadc38c Use std::nullopt_t instead of NoneType (NFC)
This patch replaces those occurrences of NoneType that would trigger
an error if the definition of NoneType were missing in None.h.

To keep this patch focused, I am deliberately not replacing None with
std::nullopt in this patch or updating comments.  They will be
addressed in subsequent patches.

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

Differential Revision: https://reviews.llvm.org/D138539
2022-11-23 14:16:04 -08:00
..
ASTDiff [clang][NFC] Use c++17 style variable type traits 2022-11-07 18:25:48 +00:00
Core Fixed a number of typos 2022-08-01 13:13:18 -04:00
DependencyScanning [clang] Use InMemoryModuleCache for readASTFileControlBlock NFC 2022-11-17 13:47:46 -08:00
DumpTool [clang] Implement ElaboratedType sugaring for types written bare 2022-07-27 11:10:54 +02:00
Inclusions Move the isSelfContainedHeader function from clangd to libtooling. 2022-11-14 09:40:45 +01:00
Refactoring [clang] Convert for_each to range-based for loops (NFC) 2022-06-10 22:39:45 -07:00
Syntax [Syntax] Fix macro-arg handling in TokenBuffer::spelledForExpanded 2022-10-05 18:04:39 +02:00
Transformer Use std::nullopt_t instead of NoneType (NFC) 2022-11-23 14:16:04 -08:00
AllTUsExecution.cpp Fixed a number of typos 2022-08-01 13:13:18 -04:00
ArgumentsAdjusters.cpp [clang] Use llvm::find (NFC) 2022-10-16 12:33:47 -07:00
CMakeLists.txt [clang] Only use major version in resource dir 2022-11-10 15:02:03 +01:00
CommonOptionsParser.cpp CommandLine: add and use cl::SubCommand::get{All,TopLevel} 2022-08-02 23:49:16 +02:00
CompilationDatabase.cpp
EmptyNodeIntrospection.inc.in [AST] Add DeclarationNameInfo to node introspection 2021-04-25 12:12:03 +01:00
Execution.cpp
ExpandResponseFilesCompilationDatabase.cpp Handle errors in expansion of response files 2022-10-31 15:36:41 +07:00
FileMatchTrie.cpp
FixIt.cpp
GuessTargetAndModeCompilationDatabase.cpp
InterpolatingCompilationDatabase.cpp [clang] Don't include StringSwitch.h (NFC) 2022-09-18 22:21:32 -07:00
JSONCompilationDatabase.cpp [clang][Tooling] Make the filename behaviour consistent 2022-11-15 10:47:52 +01:00
NodeIntrospection.cpp [AST] Sort introspection results without instantiating other data 2021-04-23 16:21:01 +01:00
Refactoring.cpp
RefactoringCallbacks.cpp
StandaloneExecution.cpp
Tooling.cpp [clang] Qualify auto in range-based for loops (NFC) 2022-09-03 23:27:27 -07:00