Bug 282509

Summary: [WTF] BoundsCheckedIterator wants begin()/end() functions for ASCIILiteral, CString, StringTypeAdapter<>, HashTranslatorCharBuffer<>
Product: WebKit Reporter: David Kilzer (:ddkilzer) <ddkilzer>
Component: Web Template FrameworkAssignee: Nobody <webkit-unassigned>
Status: RESOLVED DUPLICATE    
Severity: Normal CC: ggaren, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: Other   
Hardware: Unspecified   
OS: Unspecified   
Bug Depends on: 282493    
Bug Blocks:    

David Kilzer (:ddkilzer)
Reported 2024-11-03 09:29:01 PST
WTF::BoundsCheckedIterator needs begin()/end() functions for WTF::ASCIILiteral, WTF::CString, WTF::StringTypeAdapter<>, WTF::HashTranslatorCharBuffer<>. Commit 286059@main for Bug 282493 broke the build for upstream clang: ``` /usr/local/include/wtf/IndexedRange.h:76:66: error: no member named 'begin' in 'WTF::ASCIILiteral' 76 | return BoundsCheckedIterator<Collection, decltype(collection.begin())>::begin(collection); | ~~~~~~~~~~ ^ /usr/local/include/wtf/IndexedRange.h:76:66: error: no member named 'begin' in 'WTF::CString' 76 | return BoundsCheckedIterator<Collection, decltype(collection.begin())>::begin(collection); | ~~~~~~~~~~ ^ /usr/local/include/wtf/IndexedRange.h:76:66: error: no member named 'begin' in 'WTF::StringTypeAdapter<std::span<const unsigned char>>' 76 | return BoundsCheckedIterator<Collection, decltype(collection.begin())>::begin(collection); | ~~~~~~~~~~ ^ /usr/local/include/wtf/IndexedRange.h:76:66: error: no member named 'begin' in 'WTF::HashTranslatorCharBuffer<unsigned char>' 76 | return BoundsCheckedIterator<Collection, decltype(collection.begin())>::begin(collection); | ~~~~~~~~~~ ^ /usr/local/include/wtf/IndexedRange.h:76:66: error: no member named 'begin' in 'WTF::HashTranslatorCharBuffer<char16_t>' 76 | return BoundsCheckedIterator<Collection, decltype(collection.begin())>::begin(collection); | ~~~~~~~~~~ ^ ```
Attachments
Radar WebKit Bug Importer
Comment 1 2024-11-03 09:29:21 PST
David Kilzer (:ddkilzer)
Comment 2 2024-11-03 13:25:51 PST
Dupe: Bug 282513 *** This bug has been marked as a duplicate of bug 282513 ***
Note You need to log in before you can comment on or make changes to this bug.