[Webkit-unassigned] [Bug 232226] [WebCore] Remove unneeded WTF:: namespace prefix

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Sun Oct 24 21:39:30 PDT 2021


https://bugs.webkit.org/show_bug.cgi?id=232226

--- Comment #1 from Fujii Hironori <Hironori.Fujii at sony.com> ---
# There are Observer classes in WebCore
# There are a lot of declarations of WTF::TextStream in WebCore
git ls-files Source/WTF | grep \.h$ | xargs grep -h "using WTF:" | sort | uniq | grep -v WTF::Observer | grep -v WTF::TextStream > u.txt
perl -pe '$_ = "s/$&\\b/$2/g\n"  if ~/WTF(::\w+)?::(\w+)/' u.txt > u.sed
git ls-files Source/WebCore | grep -E '.(h|cpp|pl)'$ | xargs grep -l WTF:: | xargs sed -Ei -f u.sed

# Use WTF::append 
git co Source/WebCore/editing/TextIterator.cpp

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20211025/a54dde8e/attachment.htm>


More information about the webkit-unassigned mailing list