aboutsummaryrefslogtreecommitdiff
path: root/style-guide.md
diff options
context:
space:
mode:
authorKarl Wiberg <kwiberg@webrtc.org>2017-09-03 05:02:12 +0200
committerCommit Bot <commit-bot@chromium.org>2017-09-03 16:43:41 +0000
commitbb821e28b12544832d6198c853c1641b962e542e (patch)
tree4856d6087e79097be6ee31a92062b4cb71515ee7 /style-guide.md
parentbf94fda1e4b3bff094906d8c581c62d221fc0a5e (diff)
downloadwebrtc-bb821e28b12544832d6198c853c1641b962e542e.tar.gz
Add a bare-bones C++ style guide
BUG=none NOTRY=true Change-Id: I4488aff47db2b9220985156c5112db6d5a79a18e Reviewed-on: https://chromium-review.googlesource.com/641872 Commit-Queue: Karl Wiberg <kwiberg@webrtc.org> Reviewed-by: Niels Moller <nisse@webrtc.org> Reviewed-by: Danil Chapovalov <danilchap@webrtc.org> Cr-Commit-Position: refs/heads/master@{#19645}
Diffstat (limited to 'style-guide.md')
-rw-r--r--style-guide.md16
1 files changed, 16 insertions, 0 deletions
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.