aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKarl Wiberg <kwiberg@webrtc.org>2020-06-03 10:33:25 +0200
committerCommit Bot <commit-bot@chromium.org>2020-06-03 09:11:09 +0000
commit878808892da4915dc646a0a193f9ee5ba3bd6764 (patch)
tree3dbf551289b307ed93dcd657f267344d2bc61721
parente2e8c17cbff03a3113ffe0f3c44f8f2b7eb58eb4 (diff)
downloadwebrtc-878808892da4915dc646a0a193f9ee5ba3bd6764.tar.gz
C++ style: We don't allow designated initializers
Bug: None Change-Id: Ib23b72e89b1db1eb363f4f7da040045174dd70d7 Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/176407 Commit-Queue: Karl Wiberg <kwiberg@webrtc.org> Reviewed-by: Mirko Bonadei <mbonadei@webrtc.org> Reviewed-by: Danil Chapovalov <danilchap@webrtc.org> Cr-Commit-Position: refs/heads/master@{#31419}
-rw-r--r--style-guide.md4
1 files changed, 4 insertions, 0 deletions
diff --git a/style-guide.md b/style-guide.md
index 901217a86d..80c3302156 100644
--- a/style-guide.md
+++ b/style-guide.md
@@ -31,6 +31,10 @@ WebRTC is written in C++14, but with some restrictions:
[chromium-cpp]: https://chromium-cpp.appspot.com/
+Unlike the Chromium and Google C++ style guides, we do not allow C++20-style
+designated initializers, because we want to stay compatible with compilers that
+do not yet support them.
+
### Abseil
You may use a subset of the utilities provided by the [Abseil][abseil]