Summary: | check-webkit-style: "using namespace foo;" should be flagged as an error in headers | ||||||
---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | David Kilzer (:ddkilzer) <ddkilzer> | ||||
Component: | Tools / Tests | Assignee: | Nobody <webkit-unassigned> | ||||
Status: | RESOLVED FIXED | ||||||
Severity: | Normal | CC: | brian.holt, commit-queue, dpranke, glenn, levin, mrobinson, rniwa, skyul | ||||
Priority: | P2 | ||||||
Version: | 528+ (Nightly build) | ||||||
Hardware: | All | ||||||
OS: | All | ||||||
Attachments: |
|
Description
David Kilzer (:ddkilzer)
2011-03-28 09:38:45 PDT
fwiw, the code is here: http://trac.webkit.org/browser/trunk/Tools/Scripts/webkitpy/style/checkers/cpp.py And I'm willing to give pointers (and reviews) to anyone who wants to add checks. Created attachment 206762 [details]
Patch
Comment on attachment 206762 [details] Patch Clearing flags on attachment: 206762 Committed r152719: <http://trac.webkit.org/changeset/152719> All reviewed patches have been landed. Closing bug. This patch is buggy. It seems check-webkit-style checks "using namespace" statements not only in headers but also in cpp files too. See https://bugs.webkit.org/show_bug.cgi?id=110136#c14 Source/WebKit2/NetworkProcess/unix/NetworkProcessMainUnix.cpp:45: Do not use 'using namespace WebCore;'. [build/using_namespace] [4] (In reply to comment #5) > This patch is buggy. It seems check-webkit-style checks "using namespace" statements not only in headers but also in cpp files too. > > See https://bugs.webkit.org/show_bug.cgi?id=110136#c14 > Source/WebKit2/NetworkProcess/unix/NetworkProcessMainUnix.cpp:45: Do not use 'using namespace WebCore;'. [build/using_namespace] [4] I filed Bug 118755 to fix this. |