WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
Bug 27567
False positives in namespace indentation checks
https://bugs.webkit.org/show_bug.cgi?id=27567
Summary
False positives in namespace indentation checks
Jakob Petsovits
Reported
2009-07-22 15:00:22 PDT
Yong Li discovered a false positive for the namespace indentation check in implementation files, triggered by this piece of code: """ namespace WebCore { PlatformMenuDescriptionType::PlatformMenuDescriptionType() : hMenu(::CreatePopupMenu()) , itemCount(0) { } """ It turns out that the regular expression skipping goto labels was too permissive, and thus treated the line with the constructor's signature as label, skipping it and (then correctly) causing the error for the indented second line. Not cool, sorry for that bug. This patch improves on the concerned code, makes the unit tests more demanding, and fixes the bug. Please review!
Attachments
Fix false positives in namespace indentation checks
(3.08 KB, patch)
2009-07-22 15:02 PDT
,
Jakob Petsovits
manyoso
: review-
Details
Formatted Diff
Diff
Fix false positives in namespace indentation checks (try 2)
(3.46 KB, patch)
2009-07-22 15:20 PDT
,
Jakob Petsovits
manyoso
: review+
Details
Formatted Diff
Diff
Show Obsolete
(1)
View All
Add attachment
proposed patch, testcase, etc.
Jakob Petsovits
Comment 1
2009-07-22 15:02:12 PDT
Created
attachment 33298
[details]
Fix false positives in namespace indentation checks
Adam Treat
Comment 2
2009-07-22 15:09:59 PDT
Comment on
attachment 33298
[details]
Fix false positives in namespace indentation checks Next time put more detail in the ChangeLog as you did in the bug report. Also, I'd like a comment for the added regex.
Jakob Petsovits
Comment 3
2009-07-22 15:20:06 PDT
Created
attachment 33300
[details]
Fix false positives in namespace indentation checks (try 2) Better patch, more verbosely describing what is being done. (No changes in functionality, though.)
Adam Treat
Comment 4
2009-07-22 15:31:35 PDT
Landed with
r46248
.
Maxime Simon
Comment 5
2009-07-22 23:05:19 PDT
***
Bug 27559
has been marked as a duplicate of this bug. ***
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug