Bug 92214 - Remove anonymous namespace and make functions static.
Summary: Remove anonymous namespace and make functions static.
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: DOM (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Kwang Yul Seo
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-07-24 23:26 PDT by Kwang Yul Seo
Modified: 2012-07-24 23:53 PDT (History)
2 users (show)

See Also:


Attachments
Patch (17.25 KB, patch)
2012-07-24 23:28 PDT, Kwang Yul Seo
abarth: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Kwang Yul Seo 2012-07-24 23:26:45 PDT
Mark functions as static instead of enclosing them in anonymous namespaces. One exception to this rule is when a function is passed as a template argument. In this case, the function must have an external linkage.
Comment 1 Kwang Yul Seo 2012-07-24 23:28:50 PDT
Created attachment 154266 [details]
Patch
Comment 2 Kwang Yul Seo 2012-07-24 23:30:00 PDT
Adam mentioned this cleanup idea in https://bugs.webkit.org/show_bug.cgi?id=92079#c9
Comment 3 Adam Barth 2012-07-24 23:43:31 PDT
Comment on attachment 154266 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=154266&action=review

> Source/WebCore/html/parser/create-html-entity-table:-112
> -namespace {

I would actually leave this one.  There are a ton of symbols in here that would be good to hide from the linker.
Comment 4 Kwang Yul Seo 2012-07-24 23:45:34 PDT
(In reply to comment #3)
> (From update of attachment 154266 [details])
> View in context: https://bugs.webkit.org/attachment.cgi?id=154266&action=review
> 
> > Source/WebCore/html/parser/create-html-entity-table:-112
> > -namespace {
> 
> I would actually leave this one.  There are a ton of symbols in here that would be good to hide from the linker.

Okay. I will change it before I land the patch.
Comment 5 Kwang Yul Seo 2012-07-24 23:53:06 PDT
Committed r123581: <http://trac.webkit.org/changeset/123581>