Commit 6d781655 by Charlie Lao Committed by Commit Bot

Update style guide for reference on container object

ANGLE should follow google's c++ style guide here instead of having its own exception. Bug: None Change-Id: Ie3909335a99e40dd555db3d98aa2bb1886884423 Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2261420Reviewed-by: 's avatarJamie Madill <jmadill@chromium.org> Reviewed-by: 's avatarGeoff Lang <geofflang@chromium.org> Commit-Queue: Charlie Lao <cclao@google.com>
parent 5474304a
...@@ -30,9 +30,6 @@ This will catch most of the trivial formatting errors and save you time. ...@@ -30,9 +30,6 @@ This will catch most of the trivial formatting errors and save you time.
### [Other C++ Features](https://google.github.io/styleguide/cppguide.html#Other_C++_Features) ### [Other C++ Features](https://google.github.io/styleguide/cppguide.html#Other_C++_Features)
* {DEV} all parameters passed by reference, except for STL containers (e.g.
std::vector, std::list), must be labeled `const`. For return parameters
other than STL containers, use a pointer.
* {DO} avoid use of default arguments. * {DO} avoid use of default arguments.
* {DONT} use C++ exceptions, they are disabled in the builds and not caught. * {DONT} use C++ exceptions, they are disabled in the builds and not caught.
* {DO} use nullptr (instead of 0 or NULL) for pointers. * {DO} use nullptr (instead of 0 or NULL) for pointers.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment