RESOLVED FIXED Bug 46523
Use WTF::StringHasher in WTF::CaseFoldingHash
https://bugs.webkit.org/show_bug.cgi?id=46523
Summary Use WTF::StringHasher in WTF::CaseFoldingHash
Patrick R. Gansterer
Reported 2010-09-24 14:58:44 PDT
see patch
Attachments
Patch (4.55 KB, patch)
2010-09-24 15:01 PDT, Patrick R. Gansterer
no flags
Patch (4.56 KB, patch)
2010-10-06 12:16 PDT, Patrick R. Gansterer
no flags
Patrick R. Gansterer
Comment 1 2010-09-24 15:01:29 PDT
Early Warning System Bot
Comment 2 2010-09-24 16:15:03 PDT
Patrick R. Gansterer
Comment 3 2010-10-06 12:16:04 PDT
WebKit Commit Bot
Comment 4 2010-10-10 13:19:57 PDT
Comment on attachment 69977 [details] Patch Clearing flags on attachment: 69977 Committed r69472: <http://trac.webkit.org/changeset/69472>
WebKit Commit Bot
Comment 5 2010-10-10 13:20:02 PDT
All reviewed patches have been landed. Closing bug.
WebKit Review Bot
Comment 6 2010-10-10 14:35:34 PDT
http://trac.webkit.org/changeset/69472 might have broken Chromium Win Release
Evan Martin
Comment 7 2010-10-11 15:15:08 PDT
This fails on our Clang buildbots. CXX(target) out/Debug/obj.target/wtf/third_party/WebKit/JavaScriptCore/wtf/WTFThreadData.o In file included from third_party/WebKit/JavaScriptCore/wtf/text/AtomicString.cpp:25: third_party/WebKit/JavaScriptCore/wtf/text/StringHash.h:107:52:error: 'foldCase' is a private member of 'WTF::CaseFoldingHash' return StringHasher::createHash<UChar, foldCase<UChar> >(data, length); ^~~~~~~~~~~~~~~ In file included from third_party/WebKit/JavaScriptCore/wtf/text/AtomicString.cpp:23: In file included from third_party/WebKit/JavaScriptCore/wtf/text/AtomicString.h:24: In file included from third_party/WebKit/JavaScriptCore/wtf/text/AtomicStringImpl.h:24: In file included from third_party/WebKit/JavaScriptCore/wtf/text/StringImpl.h:32: third_party/WebKit/JavaScriptCore/wtf/StringHashFunctions.h:91:69: note: while substituting explicitly-specified template arguments into function template 'createHash' template<typename T, UChar Converter(T)> static inline unsigned createHash(const T* data, unsigned length) ^ Clang is much more picky about C++ language laws. I think since you really are using this function from outside of the class, the function should maybe be public.
Adam Barth
Comment 8 2010-10-11 15:19:32 PDT
> This fails on our Clang buildbots. How hard is it to set up a clank build of WebKit? We could either set up a buildbot or an EWS bot to catch these things automatically.
Nico Weber
Comment 9 2010-10-11 15:21:40 PDT
abarth: It's pretty easy, see http://code.google.com/p/chromium/wiki/Clang
Patrick R. Gansterer
Comment 10 2010-10-11 15:24:30 PDT
(In reply to comment #7) > Clang is much more picky about C++ language laws. I think since you really are using this function from outside of the class, the function should maybe be public. Does changing foldCase to public fix the problem? (In reply to comment #8) > How hard is it to set up a clank build of WebKit? We could either set up a buildbot or an EWS bot to catch these things automatically. +1
Nico Weber
Comment 11 2010-10-11 16:17:44 PDT
(In reply to comment #10) > (In reply to comment #7) > > Clang is much more picky about C++ language laws. I think since you really are using this function from outside of the class, the function should maybe be public. > > Does changing foldCase to public fix the problem? Yes.
Patrick R. Gansterer
Comment 12 2010-10-11 16:31:31 PDT
(In reply to comment #11) > (In reply to comment #10) > > (In reply to comment #7) > > > Clang is much more picky about C++ language laws. I think since you really are using this function from outside of the class, the function should maybe be public. > > > > Does changing foldCase to public fix the problem? > > Yes. Committed r69535: <http://trac.webkit.org/changeset/69535>
Note You need to log in before you can comment on or make changes to this bug.