llvm-project/clang/lib/AST
Kazu Hirata 35b4fbb559 [clang] Use std::nullopt instead of None in comments (NFC)
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-04 15:57:24 -08:00
..
Interp Revert "[clang][Interp] Use placement new to construct opcode args into vector" 2022-11-30 16:07:57 +01:00
APValue.cpp [clang] add APValue type check in `TryPrintAsStringLiteral` 2022-08-10 08:42:59 +08:00
ASTConcept.cpp Reapply "[Concepts] Recover properly from a RecoveryExpr in a concept" 2022-09-26 08:39:10 -07:00
ASTConsumer.cpp
ASTContext.cpp [AST] Use std::nullopt instead of None (NFC) 2022-12-03 11:13:41 -08:00
ASTDiagnostic.cpp Fix duplicate word typos; NFC 2022-11-08 07:21:23 -05:00
ASTDumper.cpp [clang]: Add DeclContext::dumpAsDecl(). 2022-10-03 17:25:44 -04:00
ASTImporter.cpp [AST] Use std::nullopt instead of None (NFC) 2022-12-03 11:13:41 -08:00
ASTImporterLookupTable.cpp [clang][ASTImporter] Update lookup table correctly at deduction guides. 2021-12-06 20:40:16 +01:00
ASTStructuralEquivalence.cpp [AST] Use std::nullopt instead of None (NFC) 2022-12-03 11:13:41 -08:00
ASTTypeTraits.cpp [clang] Add `ObjCProtocolLoc` to represent protocol references 2022-02-18 15:24:00 -05:00
AttrDocTable.cpp [clang] Use std::size instead of llvm::array_lengthof 2022-09-08 17:20:25 -06:00
AttrImpl.cpp [AST] Use std::nullopt instead of None (NFC) 2022-12-03 11:13:41 -08:00
CMakeLists.txt [ODRHash diagnostics] Move `ODRDiagsEmitter` to libAST in separate files. NFC. 2022-09-07 14:40:37 -07:00
CXXABI.h [clang] Remove unused forward declarations (NFC) 2022-01-08 11:56:40 -08:00
CXXInheritance.cpp [clang] Don't include SetVector.h (NFC) 2022-09-17 13:36:13 -07:00
Comment.cpp [AST] Use std::nullopt instead of None (NFC) 2022-12-03 11:13:41 -08:00
CommentBriefParser.cpp [AST] Remove an unnecessary continue (NFC) 2021-12-11 23:04:08 -08:00
CommentCommandTraits.cpp [clang] Use std::size instead of llvm::array_lengthof 2022-09-08 17:20:25 -06:00
CommentLexer.cpp [Clang][Comments] Parse `<img src=""/>` in doc comments correctly 2022-09-01 13:17:42 +01:00
CommentParser.cpp [AST] Use std::nullopt instead of None (NFC) 2022-12-03 11:13:41 -08:00
CommentSema.cpp Comment parsing: Allow inline commands to have 0 or more than 1 argument 2022-05-13 13:48:46 +02:00
ComparisonCategories.cpp [AST] Use std::nullopt instead of None (NFC) 2022-12-03 11:13:41 -08:00
ComputeDependence.cpp [clang] Improve error recovery for pack expansion of expressions 2022-10-31 17:57:13 +01:00
DataCollection.cpp
Decl.cpp [AST] Use std::nullopt instead of None (NFC) 2022-12-03 11:13:41 -08:00
DeclBase.cpp [clang-repl] Support statements on global scope in incremental mode. 2022-12-03 07:18:07 +00:00
DeclCXX.cpp [AST] Use std::nullopt instead of None (NFC) 2022-12-03 11:13:41 -08:00
DeclFriend.cpp
DeclGroup.cpp
DeclObjC.cpp [AST] Use std::nullopt instead of None (NFC) 2022-12-03 11:13:41 -08:00
DeclOpenMP.cpp [AST] Use std::nullopt instead of None (NFC) 2022-12-03 11:13:41 -08:00
DeclPrinter.cpp [clang-repl] Support statements on global scope in incremental mode. 2022-12-03 07:18:07 +00:00
DeclTemplate.cpp [AST] Use std::nullopt instead of None (NFC) 2022-12-03 11:13:41 -08:00
DeclarationName.cpp [NFC][AST] Return underlying strings directly instead of OS.str() 2021-12-09 16:05:46 -08:00
Expr.cpp [AST] Use std::nullopt instead of None (NFC) 2022-12-03 11:13:41 -08:00
ExprCXX.cpp Revert "Implement CWG2631" 2022-11-30 16:03:05 +01:00
ExprClassification.cpp [HLSL] Added HLSL this as a reference 2022-11-07 13:50:08 -08:00
ExprConcepts.cpp "Reapply "GH58368: Correct concept checking in a lambda defined in concept"" 2022-10-24 12:36:54 -07:00
ExprConstant.cpp [clang] Use std::nullopt instead of None in comments (NFC) 2022-12-04 15:57:24 -08:00
ExprObjC.cpp
ExternalASTMerger.cpp [clang] Use llvm::erase_if (NFC) 2021-10-17 13:50:29 -07:00
ExternalASTSource.cpp [AST] Use std::nullopt instead of None (NFC) 2022-12-03 11:13:41 -08:00
FormatString.cpp [AST] Use std::nullopt instead of None (NFC) 2022-12-03 11:13:41 -08:00
FormatStringParsing.h
InheritViz.cpp
ItaniumCXXABI.cpp [AST] Use std::nullopt instead of None (NFC) 2022-12-03 11:13:41 -08:00
ItaniumMangle.cpp [AST] Use std::nullopt instead of None (NFC) 2022-12-03 11:13:41 -08:00
JSONNodeDumper.cpp [clang] Add [is|set]Nested methods to NamespaceDecl 2022-11-24 12:44:35 +00:00
Linkage.h [AST] Use std::nullopt instead of None (NFC) 2022-12-03 11:13:41 -08:00
Mangle.cpp [clang][TargetInfo] Use LangAS for getPointer{Width,Align}() 2022-11-30 20:24:01 +00:00
MicrosoftCXXABI.cpp [clang][TargetInfo] Use LangAS for getPointer{Width,Align}() 2022-11-30 20:24:01 +00:00
MicrosoftMangle.cpp [AST] Use std::nullopt instead of None (NFC) 2022-12-03 11:13:41 -08:00
NSAPI.cpp [AST] Use std::nullopt instead of None (NFC) 2022-12-03 11:13:41 -08:00
NestedNameSpecifier.cpp Properly print unnamed TagDecl objects in diagnostics 2022-10-14 08:18:28 -04:00
ODRDiagsEmitter.cpp [ODRHash] Detect duplicate `ObjCProtocolDecl` ODR mismatches during parsing. 2022-11-17 18:31:32 -08:00
ODRHash.cpp [ODRHash] Hash `ObjCPropertyDecl` and diagnose discovered mismatches. 2022-11-17 17:22:03 -08:00
OSLog.cpp [Clang] Rename StringLiteral::isAscii() => isOrdinary() [NFC] 2022-06-29 18:28:51 +02:00
OpenMPClause.cpp [OPENMP5.1] Initial support for message clause. 2022-11-18 17:59:23 -08:00
ParentMap.cpp Don't revisit the subexpressions of PseudoObjectExpr when building a 2022-12-02 11:41:09 -08:00
ParentMapContext.cpp [AST] Use std::apply to pop front of tuples. NFCI. 2022-08-25 00:03:08 +02:00
PrintfFormatString.cpp [clang] LLVM_FALLTHROUGH => [[fallthrough]]. NFC 2022-08-08 09:12:46 -07:00
QualTypeNames.cpp NFC: [clang] Template argument cleanups. 2022-10-25 00:29:56 +02:00
Randstruct.cpp [randstruct] Randomize all elements of a record 2022-04-28 12:01:11 -07:00
RawCommentList.cpp [clang][extract-api] Add global record support 2022-03-16 15:13:55 -07:00
RecordLayout.cpp
RecordLayoutBuilder.cpp [clang][TargetInfo] Use LangAS for getPointer{Width,Align}() 2022-11-30 20:24:01 +00:00
ScanfFormatString.cpp [clang] LLVM_FALLTHROUGH => [[fallthrough]]. NFC 2022-08-08 09:12:46 -07:00
SelectorLocationsKind.cpp
Stmt.cpp [AST] Use std::nullopt instead of None (NFC) 2022-12-03 11:13:41 -08:00
StmtCXX.cpp [C++20] [Coroutines] Implement return value optimization for get_return_object 2022-02-16 13:38:00 +08:00
StmtIterator.cpp
StmtObjC.cpp [clang] Convert ObjCAtTryStmt to llvm::TrailingObjects 2021-10-27 08:57:05 -04:00
StmtOpenMP.cpp [AST] Use std::nullopt instead of None (NFC) 2022-12-03 11:13:41 -08:00
StmtPrinter.cpp [OPENMP]Initial support for error directive. 2022-11-02 14:25:28 -07:00
StmtProfile.cpp [OPENMP5.1] Initial support for message clause. 2022-11-18 17:59:23 -08:00
StmtViz.cpp
TemplateBase.cpp [AST] Use std::nullopt instead of None (NFC) 2022-12-03 11:13:41 -08:00
TemplateName.cpp [clang] Implement sugared substitution changes to infrastructure 2022-10-27 06:18:07 +02:00
TextNodeDumper.cpp [clang] Add [is|set]Nested methods to NamespaceDecl 2022-11-24 12:44:35 +00:00
Type.cpp [AST] Use std::nullopt instead of None (NFC) 2022-12-03 11:13:41 -08:00
TypeLoc.cpp NFC: [clang] Template argument cleanups. 2022-10-25 00:29:56 +02:00
TypePrinter.cpp Use CTAD on llvm::SaveAndRestore 2022-12-02 15:36:12 -08:00
VTTBuilder.cpp
VTableBuilder.cpp [clang][TargetInfo] Use LangAS for getPointer{Width,Align}() 2022-11-30 20:24:01 +00:00