WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
232073
Coding style for inner namespaces is should be simplified to not indented
https://bugs.webkit.org/show_bug.cgi?id=232073
Summary
Coding style for inner namespaces is should be simplified to not indented
Kimmo Kinnunen
Reported
2021-10-21 03:08:51 PDT
Coding style for inner namespaces is should be simplified to not indented
https://webkit.org/code-style-guidelines/
says code in inner namespaces should be indented. Code in inner namespaces are not indented by large. It is mostly simpler to not indent them. Poor-mans check: git grep -3 "namespace [^W].* {" -- "Source/WebKit/*.cpp"
Attachments
Patch
(2.74 KB, patch)
2021-10-21 03:15 PDT
,
Kimmo Kinnunen
no flags
Details
Formatted Diff
Diff
Patch
(15.49 KB, patch)
2021-11-09 23:52 PST
,
Kimmo Kinnunen
no flags
Details
Formatted Diff
Diff
Patch
(2.90 KB, patch)
2021-11-10 06:12 PST
,
Kimmo Kinnunen
no flags
Details
Formatted Diff
Diff
Show Obsolete
(2)
View All
Add attachment
proposed patch, testcase, etc.
Kimmo Kinnunen
Comment 1
2021-10-21 03:15:56 PDT
Created
attachment 442004
[details]
Patch
Alexey Proskuryakov
Comment 2
2021-10-21 14:52:20 PDT
Comment on
attachment 442004
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=442004&action=review
> Websites/webkit.org/ChangeLog:3 > + Coding style for inner namespaces is should be simplified to not indented
We normally discuss coding style changes on WebKit-dev mailing list, would you mind sending the proposal there?
Antti Koivisto
Comment 3
2021-10-22 00:01:14 PDT
This seemed more like a documentation bug fix to match the actual coding style but it is true that it appears to not have been discussed on webkit-dev.
Alex Christensen
Comment 4
2021-10-22 11:26:05 PDT
It might be worth adding an example with C++17 nested namespace syntax, like in
https://bugs.webkit.org/show_bug.cgi?id=232162
Radar WebKit Bug Importer
Comment 5
2021-10-28 03:09:18 PDT
<
rdar://problem/84749550
>
Kimmo Kinnunen
Comment 6
2021-11-09 23:52:53 PST
Created
attachment 443779
[details]
Patch
Kimmo Kinnunen
Comment 7
2021-11-10 06:12:26 PST
Created
attachment 443807
[details]
Patch
EWS
Comment 8
2021-11-10 11:37:43 PST
Committed
r285601
(
244105@main
): <
https://commits.webkit.org/244105@main
> All reviewed patches have been landed. Closing bug and clearing flags on
attachment 443807
[details]
.
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