aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--OWNERS2
-rw-r--r--README.md2
-rw-r--r--style-guide.md16
3 files changed, 20 insertions, 0 deletions
diff --git a/OWNERS b/OWNERS
index 6e35adfc8a..8cc9d358a9 100644
--- a/OWNERS
+++ b/OWNERS
@@ -12,3 +12,5 @@ per-file BUILD.gn=kjellander@webrtc.org
per-file DEPS=*
per-file pylintrc=kjellander@webrtc.org
per-file WATCHLISTS=*
+per-file style-guide.md=danilchap@webrtc.org
+per-file style-guide.md=kwiberg@webrtc.org
diff --git a/README.md b/README.md
index eeabfc6a87..5c9ea2324a 100644
--- a/README.md
+++ b/README.md
@@ -21,3 +21,5 @@ started developing with the native code.
* Samples and reference apps: https://github.com/webrtc
* Mailing list: http://groups.google.com/group/discuss-webrtc
* Continuous build: http://build.chromium.org/p/client.webrtc
+ * [Coding style guide](style-guide.md)
+ * [Code of conduct](CODE_OF_CONDUCT.md)
diff --git a/style-guide.md b/style-guide.md
new file mode 100644
index 0000000000..6cf5f4589b
--- /dev/null
+++ b/style-guide.md
@@ -0,0 +1,16 @@
+# WebRTC coding style guide
+
+## C++
+
+WebRTC follows the [Chromium][chr-style] and [Google][goog-style] C++
+style guides, unless an exception is listed below. In cases where they
+conflict, the Chromium style guide trumps the Google style guide, and
+the exceptions in this file trump them both.
+
+[chr-style]: https://chromium.googlesource.com/chromium/src/+/master/styleguide/c++/c++.md
+[goog-style]: https://google.github.io/styleguide/cppguide.html
+
+### Exceptions
+
+There are no exceptions yet. If and when exceptions are adopted,
+they'll be listed here.