llvm-project/clang-tools-extra/clang-tidy/modernize
Kazu Hirata cd8702efe7 [clang-tidy] 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 11:54:48 -08:00
..
AvoidBindCheck.cpp LLVM_FALLTHROUGH => [[fallthrough]]. NFC 2022-08-09 04:06:52 +00:00
AvoidBindCheck.h [clang-tidy] Organize check doc files into subdirectories (NFC) 2022-06-16 16:06:20 -06:00
AvoidCArraysCheck.cpp [clang-tidy][NFC] Tweak some generation of diag messages 2021-02-26 19:10:25 +00:00
AvoidCArraysCheck.h [clang-tidy] Organize check doc files into subdirectories (NFC) 2022-06-16 16:06:20 -06:00
CMakeLists.txt [clang-tidy] Support expressions of literals in modernize-macro-to-enum 2022-05-13 18:45:54 -06:00
ConcatNestedNamespacesCheck.cpp [clang-tidy] Enable modernize-concat-nested-namespaces also on headers 2021-03-15 07:32:45 -07:00
ConcatNestedNamespacesCheck.h
DeprecatedHeadersCheck.cpp [clang-tidy] modernize-deprecated-headers should ignore system headers 2022-05-20 21:41:25 +02:00
DeprecatedHeadersCheck.h [clang-tidy] Organize check doc files into subdirectories (NFC) 2022-06-16 16:06:20 -06:00
DeprecatedIosBaseAliasesCheck.cpp [clang-tidy] Use std::nullopt instead of None (NFC) 2022-12-03 11:54:48 -08:00
DeprecatedIosBaseAliasesCheck.h [clang-tidy] Organize check doc files into subdirectories (NFC) 2022-06-16 16:06:20 -06:00
IntegralLiteralExpressionMatcher.cpp [clang-tidy] Reject invalid enum initializers in C files 2022-06-01 22:25:39 -06:00
IntegralLiteralExpressionMatcher.h [clang-tidy] Reject invalid enum initializers in C files 2022-06-01 22:25:39 -06:00
LoopConvertCheck.cpp [clang] Implement ElaboratedType sugaring for types written bare 2022-07-27 11:10:54 +02:00
LoopConvertCheck.h
LoopConvertUtils.cpp [Clang][C++20] Support capturing structured bindings in lambdas 2022-08-04 10:12:53 +02:00
LoopConvertUtils.h [clang-tidy][NFC] Replace many instances of std::string where a StringRef would suffice. 2022-05-09 12:01:46 +01:00
MacroToEnumCheck.cpp [clang-tidy] Reject invalid enum initializers in C files 2022-06-01 22:25:39 -06:00
MacroToEnumCheck.h [clang-tidy] Organize check doc files into subdirectories (NFC) 2022-06-16 16:06:20 -06:00
MakeSharedCheck.cpp
MakeSharedCheck.h [clang-tidy] Organize check doc files into subdirectories (NFC) 2022-06-16 16:06:20 -06:00
MakeSmartPtrCheck.cpp Use llvm::any_of (NFC) 2022-07-31 15:17:08 -07:00
MakeSmartPtrCheck.h [clang-tidy][NFC] Replace many instances of std::string where a StringRef would suffice. 2022-05-09 12:01:46 +01:00
MakeUniqueCheck.cpp
MakeUniqueCheck.h
ModernizeTidyModule.cpp [clang-tidy] Add modernize-macro-to-enum check 2022-04-01 15:24:21 -06:00
PassByValueCheck.cpp [clang-tools-extra] Fixed a number of typos 2022-08-01 15:32:25 +02:00
PassByValueCheck.h
RawStringLiteralCheck.cpp [Clang] Rename StringLiteral::isAscii() => isOrdinary() [NFC] 2022-06-29 18:28:51 +02:00
RawStringLiteralCheck.h [clang-tidy] Organize check doc files into subdirectories (NFC) 2022-06-16 16:06:20 -06:00
RedundantVoidArgCheck.cpp [clang-tidy] Improve modernize-redundant-void-arg to recognize macro uses 2022-01-12 13:51:50 -07:00
RedundantVoidArgCheck.h
ReplaceAutoPtrCheck.cpp [clang-tidy] Add a Standalone diagnostics mode to clang-tidy 2022-04-16 09:53:35 +01:00
ReplaceAutoPtrCheck.h [clang-tidy] Fix lint warnings in clang-tidy source code (NFC) 2021-11-02 20:14:25 +13:00
ReplaceDisallowCopyAndAssignMacroCheck.cpp [clang-tidy] Fix lint warnings in clang-tidy source code (NFC) 2021-11-02 20:14:25 +13:00
ReplaceDisallowCopyAndAssignMacroCheck.h [clang-tidy] Organize check doc files into subdirectories (NFC) 2022-06-16 16:06:20 -06:00
ReplaceRandomShuffleCheck.cpp [clang-tidy] Add a Standalone diagnostics mode to clang-tidy 2022-04-16 09:53:35 +01:00
ReplaceRandomShuffleCheck.h [clang-tidy] Organize check doc files into subdirectories (NFC) 2022-06-16 16:06:20 -06:00
ReturnBracedInitListCheck.cpp [clang-tidy] Simplify braced init check 2021-02-20 20:09:13 +00:00
ReturnBracedInitListCheck.h [clang-tidy] Organize check doc files into subdirectories (NFC) 2022-06-16 16:06:20 -06:00
ShrinkToFitCheck.cpp [clang-tidy] Simplify shrink to fit check 2021-02-27 12:11:42 +00:00
ShrinkToFitCheck.h [clang-tidy] Simplify shrink to fit check 2021-02-27 12:11:42 +00:00
UnaryStaticAssertCheck.cpp
UnaryStaticAssertCheck.h [clang-tidy] Organize check doc files into subdirectories (NFC) 2022-06-16 16:06:20 -06:00
UseAutoCheck.cpp [clang-tidy] Applied clang-tidy fixes. NFC 2021-01-29 01:01:19 +01:00
UseAutoCheck.h
UseBoolLiteralsCheck.cpp Remove references to the ast_type_traits namespace 2020-12-11 00:58:46 +01:00
UseBoolLiteralsCheck.h [clang-tidy] Organize check doc files into subdirectories (NFC) 2022-06-16 16:06:20 -06:00
UseDefaultMemberInitCheck.cpp [clang-tidy] UseDefaultMemberInitCheck::checkDefaultInit - Use cast<> instead of dyn_cast<> to avoid dereference of nullptr 2022-01-12 15:35:37 +00:00
UseDefaultMemberInitCheck.h [clang-tidy] Organize check doc files into subdirectories (NFC) 2022-06-16 16:06:20 -06:00
UseEmplaceCheck.cpp [clang-tidy] Fix modernize-use-emplace to support alias cases 2022-08-31 10:21:10 +01:00
UseEmplaceCheck.h [clang-tidy] Improve modernize-use-emplace check 2022-08-19 07:57:42 +01:00
UseEqualsDefaultCheck.cpp [clang-tidy] Skip template ctors in modernize-use-equals-default 2022-10-28 05:30:19 +00:00
UseEqualsDefaultCheck.h [clang-tidy] Restrict use-equals-default to c++11-or-later 2022-09-02 22:19:11 +00:00
UseEqualsDeleteCheck.cpp
UseEqualsDeleteCheck.h [clang-tidy] Organize check doc files into subdirectories (NFC) 2022-06-16 16:06:20 -06:00
UseNodiscardCheck.cpp [clang-tidy][NFC] Replace many instances of std::string where a StringRef would suffice. 2022-05-09 12:01:46 +01:00
UseNodiscardCheck.h [clang-tidy] Organize check doc files into subdirectories (NFC) 2022-06-16 16:06:20 -06:00
UseNoexceptCheck.cpp [clang-tidy][NFC] Replace many instances of std::string where a StringRef would suffice. 2022-05-09 12:01:46 +01:00
UseNoexceptCheck.h [clang-tidy] Organize check doc files into subdirectories (NFC) 2022-06-16 16:06:20 -06:00
UseNullptrCheck.cpp [clang-tidy] Ignore cxxRewrittenBinaryOperator in defaulted function decls in modernize-use-nullptr 2022-11-25 15:45:37 +01:00
UseNullptrCheck.h [clang-tidy][NFC] Replace many instances of std::string where a StringRef would suffice. 2022-05-09 12:01:46 +01:00
UseOverrideCheck.cpp [clang-tidy][NFC] Replace many instances of std::string where a StringRef would suffice. 2022-05-09 12:01:46 +01:00
UseOverrideCheck.h [clang-tidy][NFC] Replace many instances of std::string where a StringRef would suffice. 2022-05-09 12:01:46 +01:00
UseTrailingReturnTypeCheck.cpp [clang-tidy] Use std::nullopt instead of None (NFC) 2022-12-03 11:54:48 -08:00
UseTrailingReturnTypeCheck.h [clang-tidy] Organize check doc files into subdirectories (NFC) 2022-06-16 16:06:20 -06:00
UseTransparentFunctorsCheck.cpp NFC: [clang] Template argument cleanups. 2022-10-25 00:29:56 +02:00
UseTransparentFunctorsCheck.h [clang-tidy] Organize check doc files into subdirectories (NFC) 2022-06-16 16:06:20 -06:00
UseUncaughtExceptionsCheck.cpp
UseUncaughtExceptionsCheck.h [clang-tidy] Organize check doc files into subdirectories (NFC) 2022-06-16 16:06:20 -06:00
UseUsingCheck.cpp [clang-tidy] Fix behavior of `modernize-use-using` with nested structs/unions 2022-04-21 15:18:31 +02:00
UseUsingCheck.h [clang-tidy] Organize check doc files into subdirectories (NFC) 2022-06-16 16:06:20 -06:00