mirror-llvm-project/clang/lib/AST
Marlus Cadanus da Costa 68b7feaa62
[clang] Follow-up fixes for offsetof unsigned index change (#207808)
- Rename CastNoOverflow to CastAPToOffsetIndex for clarity
- Add parentheses in overflow guard condition in InterpBuiltin.cpp
- Improve comment explaining why 0x8000000000000000 is rejected

AI Tool Use: GitHub Copilot (Claude Sonnet 4.6) was used to assist in
identifying and drafting the fix. The fix was reviewed, tested, and
validated manually.

---------

Co-authored-by: Cadanus da Costa <maccosta@beenox.com>
2026-08-01 04:18:42 +08:00
..
ByteCode [clang] Follow-up fixes for offsetof unsigned index change (#207808) 2026-08-01 04:18:42 +08:00
APValue.cpp [clang][ExprConst] Support virtual bases in C++26 (#204289) 2026-07-15 15:08:31 +02:00
ASTConcept.cpp [Clang] Avoid building unnecessary expressions when checking satisfaction (#164611) 2025-10-22 18:11:56 +02:00
ASTConsumer.cpp
ASTContext.cpp [BoundsSafety] Introduce LateParsedAttrType AST placeholder type (#204125) 2026-07-23 11:44:49 -07:00
ASTDiagnostic.cpp [Clang] Reduce the number of ways we have to print a codepoint. (#206990) 2026-07-06 14:25:04 +00:00
ASTDumper.cpp Revert "[clang] Reland: fix getTemplateInstantiationArgs (#208285)" (#208426) 2026-07-09 12:11:45 +00:00
ASTImporter.cpp [BoundsSafety] Introduce LateParsedAttrType AST placeholder type (#204125) 2026-07-23 11:44:49 -07:00
ASTImporterLookupTable.cpp
ASTStructuralEquivalence.cpp [BoundsSafety] Introduce LateParsedAttrType AST placeholder type (#204125) 2026-07-23 11:44:49 -07:00
ASTTypeTraits.cpp [Clang][RAV] Visit components of __builtin_offsetof designators (#194122) 2026-04-27 17:50:22 +02:00
AttrDocTable.cpp
AttrImpl.cpp [clang][AST] Attributed Type Deduplication Logic Cleanup (#204263) 2026-06-17 08:42:40 -07:00
Availability.cpp [ExtractAPI] Add support for anyAppleOS (#197929) 2026-05-15 14:03:03 +00:00
CMakeLists.txt [cmake][NFC] Use EXTRA_INCLUDES in tablegen commands (#207514) 2026-07-04 14:29:57 +00:00
Comment.cpp Revert "[clang] Reland: fix getTemplateInstantiationArgs (#208285)" (#208426) 2026-07-09 12:11:45 +00:00
CommentBriefParser.cpp
CommentCommandTraits.cpp
CommentLexer.cpp [clangd] Fix unknown doxygen command parsing in parameter documentation (#202121) 2026-06-25 14:21:45 +02:00
CommentParser.cpp [clangd] Fix unknown doxygen command parsing in parameter documentation (#202121) 2026-06-25 14:21:45 +02:00
CommentSema.cpp [clangd] Fix unknown doxygen command parsing in parameter documentation (#202121) 2026-06-25 14:21:45 +02:00
ComparisonCategories.cpp [Clang] Fix crash on malformed std::partial_ordering static members (#172001) 2025-12-16 11:45:30 +00:00
ComputeDependence.cpp [Clang][Sema] Reland -Wstringop-overread with computeDependence fix (#208012) 2026-07-16 17:01:38 -04:00
CXXABI.h
CXXInheritance.cpp [clang][NFC] Compute current instantiation less frequently in lookupInBases (#208139) 2026-07-08 21:39:19 +03:00
DataCollection.cpp
Decl.cpp [Sema] Skip expansion statements when determing local extern context (#210512) (#211745) 2026-07-24 21:45:35 +00:00
DeclarationName.cpp [clang] NFC: rename TagType::getOriginalDecl back to getDecl (#163271) 2025-10-15 16:11:17 -03:00
DeclBase.cpp [Clang] [C++26] Expansion Statements (P1306R5) (#169680) 2026-07-11 00:01:08 +02:00
DeclCXX.cpp [clang][ExprConst] Support virtual bases in C++26 (#204289) 2026-07-15 15:08:31 +02:00
DeclFriend.cpp Revert "[Clang] support friend declarations with a dependent nested-name-specifier" (#208302) 2026-07-09 00:54:08 +03:00
DeclGroup.cpp
DeclObjC.cpp [clang] teach OpenCL to set the param addrspace before calling CG EmitParmDecl (#184264) 2026-04-30 15:26:43 -04:00
DeclOpenACC.cpp
DeclOpenMP.cpp
DeclPrinter.cpp [Clang] [C++26] Expansion Statements (P1306R5) (#169680) 2026-07-11 00:01:08 +02:00
DeclTemplate.cpp [Clang] [C++26] Expansion Statements (P1306R5) (#169680) 2026-07-11 00:01:08 +02:00
DynamicRecursiveASTVisitor.cpp [Clang][RAV] Visit components of __builtin_offsetof designators (#194122) 2026-04-27 17:50:22 +02:00
Expr.cpp [clang][Sema] Fix ObjC file-scope literal diagnostic (#209688) 2026-07-30 23:01:34 -07:00
ExprClassification.cpp [Clang] [C++26] Expansion Statements (P1306R5) (#169680) 2026-07-11 00:01:08 +02:00
ExprConcepts.cpp [Clang] Avoid crash when expression requirements are substitution failures (#176896) 2026-01-20 16:35:49 +00:00
ExprConstant.cpp [clang] Improve diagnostics around constexpr limits (#212091) 2026-07-29 09:03:09 +02:00
ExprConstShared.h [clang][NFC] fold ExpressionTraits and TypeTraits helpers into BuiltinTraits (#210838) 2026-07-28 20:45:00 +10:00
ExprCXX.cpp [Clang][Sema] Fix crash in UnresolvedMemberExpr check (#209792) 2026-07-17 18:28:21 +08:00
ExprObjC.cpp [ObjC] Emit number, array, and dictionary literals as constants (#185130) 2026-03-25 15:03:14 -07:00
ExternalASTMerger.cpp
ExternalASTSource.cpp
FormatString.cpp [Clang] add support for C23 'H', 'D', and 'DD' length modifiers (#201098) 2026-06-09 00:18:47 +03:00
FormatStringParsing.h [clang] clang-format functionality related to format string parsing (NFC) (#195644) 2026-05-04 18:11:33 +03:00
HLSLResource.cpp [HLSL] Add codegen for accessing resource members of a struct (2nd merge attempt) (#193584) 2026-04-23 09:20:36 -07:00
InferAlloc.cpp [AllocToken] Fix typeContainsPointer for references, PMFs, blocks, ObjC pointers (#211349) 2026-07-23 08:52:35 +02:00
InheritViz.cpp [clang] NFC: rename TagType::getOriginalDecl back to getDecl (#163271) 2025-10-15 16:11:17 -03:00
ItaniumCXXABI.cpp [clang][clang-tools-extra] Remove unused DenseMapInfo::getEmptyKey (#201987) 2026-06-06 13:38:23 -07:00
ItaniumMangle.cpp [BoundsSafety] Introduce LateParsedAttrType AST placeholder type (#204125) 2026-07-23 11:44:49 -07:00
JSONNodeDumper.cpp [clang][NFC] move traits to tablegen (#201491) 2026-07-20 06:50:22 -07:00
Linkage.h
Mangle.cpp [CIR] Skip trivially-recursive available_externally function bodies (#198363) 2026-06-24 13:31:20 -05:00
MicrosoftCXXABI.cpp [clang][NFC][diagnostics] Remove several uses of getCustomDiagID() (#172532) 2026-03-01 16:25:23 +00:00
MicrosoftMangle.cpp [LLVM][APFloat] Add APFloat support for 8-bit UE5M3 type (#210720) 2026-07-29 08:56:38 +05:30
NestedNameSpecifier.cpp [clang] [NFC] Improve move-assign and move-constructor for NestedNameSpecifierLocBuilder (#180484) 2026-02-25 17:29:18 +00:00
NSAPI.cpp
ODRDiagsEmitter.cpp
ODRHash.cpp Revert "[Clang] support friend declarations with a dependent nested-name-specifier" (#208302) 2026-07-09 00:54:08 +03:00
OpenACCClause.cpp [OpenACC][NFC] Simplify Reduction Recipe Storage (#163393) 2025-10-14 14:05:15 +00:00
OpenMPClause.cpp [OpenMP] Split UPDATE clause into two: for ATOMIC and for DEPOBJ (#212270) 2026-07-29 07:30:31 -05:00
OSLog.cpp
ParentMap.cpp
ParentMapContext.cpp [llvm] Fix C++23 error in ParentMapContext (#163553) 2025-10-15 17:25:46 +02:00
PrintfFormatString.cpp [Clang] add support for C23 'H', 'D', and 'DD' length modifiers (#201098) 2026-06-09 00:18:47 +03:00
QualTypeNames.cpp [clang-repl] Use canonical types in QualTypeToString (#190528) 2026-04-05 18:09:39 +02:00
Randstruct.cpp [clang] Turn misc copy-assign to move-assign (#184144) 2026-03-04 12:37:29 +00:00
RawCommentList.cpp [clang] Fix crash when @param is attached to invalid nodes (#183274) 2026-03-10 11:40:36 +00:00
RecordLayout.cpp [clang] Match MSVC ABI for over-aligned base tail padding on Arm64 (#210461) 2026-07-27 19:15:35 +00:00
RecordLayoutBuilder.cpp [clang] Fix record alignment lost via external layout on Arm64 (#212362) 2026-07-27 15:55:23 -07:00
ScanfFormatString.cpp [Clang] add support for C23 'H', 'D', and 'DD' length modifiers (#201098) 2026-06-09 00:18:47 +03:00
SelectorLocationsKind.cpp
Stmt.cpp Reapply "[clang] Fix some static initialization race-conditions" (#182020) 2026-02-18 18:36:47 +02:00
StmtCXX.cpp [Clang] [C++26] Expansion Statements (P1306R5) (#169680) 2026-07-11 00:01:08 +02:00
StmtIterator.cpp
StmtObjC.cpp
StmtOpenACC.cpp [NFC] Fix the unreachable 'return' in OpenACC Stmt handling (#181153) 2026-02-12 15:04:49 +00:00
StmtOpenMP.cpp Revert "[OpenMP] Restore loop variable values after loop-transformation constructs. (#212853)" (#213127) 2026-07-30 20:49:00 +00:00
StmtPrinter.cpp [clang][NFC] fold ExpressionTraits and TypeTraits helpers into BuiltinTraits (#210838) 2026-07-28 20:45:00 +10:00
StmtProfile.cpp [OpenMP] Split UPDATE clause into two: for ATOMIC and for DEPOBJ (#212270) 2026-07-29 07:30:31 -05:00
StmtViz.cpp
TemplateBase.cpp [Clang] Add NormalizedConstraint::dump() (#210498) 2026-07-21 17:18:37 +08:00
TemplateName.cpp
TextNodeDumper.cpp [OpenMP] Split UPDATE clause into two: for ATOMIC and for DEPOBJ (#212270) 2026-07-29 07:30:31 -05:00
Type.cpp [Clang] Fix missing vtable for dynamic_cast<FinalClass &>(*this) in a function template (#207349) 2026-07-08 12:30:55 +02:00
TypeLoc.cpp [clang] Add missing VisitAtomicTypeLoc to TypeLoc.cpp GetContainedAutoTypeLocVisitor (#211752) 2026-07-27 11:18:02 -07:00
TypePrinter.cpp [BoundsSafety] Introduce LateParsedAttrType AST placeholder type (#204125) 2026-07-23 11:44:49 -07:00
VTableBuilder.cpp [clang] Consolidate the relative vtable layout getters (#139315) 2026-04-02 10:33:05 -07:00
VTTBuilder.cpp