https://bugs.webkit.org/show_bug.cgi?id=232073
Patch by Kimmo Kinnunen <kkinnunen@apple.com> on 2021-11-10
Reviewed by Antti Koivisto.
.:
* .clang-format:
Do not indent contents of inner namespaces, match current code.
Websites/webkit.org:
* code-style.md:
Simplify coding style to match the existing code: contents of inner namespaces
should not be indented.
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@285601
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
MacroBlockBegin: ''
MacroBlockEnd: ''
MaxEmptyLinesToKeep: 1
-NamespaceIndentation: Inner
+NamespaceIndentation: None
ObjCBlockIndentWidth: 4
ObjCSpaceAfterProperty: true
ObjCSpaceBeforeProtocolList: true
+2021-11-10 Kimmo Kinnunen <kkinnunen@apple.com>
+
+ Coding style for inner namespaces is should be simplified to not indented
+ https://bugs.webkit.org/show_bug.cgi?id=232073
+
+ Reviewed by Antti Koivisto.
+
+ * .clang-format:
+ Do not indent contents of inner namespaces, match current code.
+
2021-11-09 J Pascoe <j_pascoe@apple.com>
Add j_pascoe to contributors.json
+2021-11-10 Kimmo Kinnunen <kkinnunen@apple.com>
+
+ Coding style for inner namespaces is should be simplified to not indented
+ https://bugs.webkit.org/show_bug.cgi?id=232073
+
+ Reviewed by Antti Koivisto.
+
+ * code-style.md:
+ Simplify coding style to match the existing code: contents of inner namespaces
+ should not be indented.
+
2021-11-04 Ryan Haddad <ryanhaddad@apple.com>
Add Monterey to WebKit Build Archives page
}
```
-[](#indentation-namespace) The contents of an outermost `namespace` block (and any nested namespaces with the same scope) should not be indented. The contents of other nested namespaces should be indented.
+[](#indentation-namespace) The contents of namespaces should not be indented.
###### Right:
};
namespace NestedNamespace {
+
+class OtherDocument {
+ OtherDocument();
...
+};
+
}
} // namespace WebCore
...
}
+namespace NestedNamespace {
+
+OtherDocument::OtherDocument()
+{
+ ...
+}
+
+} // namespace NestedNamespace
+
} // namespace WebCore
```
+###### Right:
+
+```cpp
+// PrivateClickMeasurementDatabase.h
+namespace WebKit::PCM {
+
+class Database {
+ ...
+};
+
+} // namespace WebKit::PCM
+```
+
###### Wrong:
```cpp