Commit 40dba690 by Jamie Madill

Update copyright notice in the style guide.

See https://chromium.googlesource.com/chromium/src/+/master/styleguide/c++/c++.md#file-headers Bug: angleproject:1944 Change-Id: Ic2e284ac75ecab19e8d6c5b97e1a9d9376984f3b Reviewed-on: https://chromium-review.googlesource.com/953133Reviewed-by: 's avatarJamie Madill <jmadill@chromium.org> Reviewed-by: 's avatarLuc Ferron <lucferron@chromium.org> Commit-Queue: Jamie Madill <jmadill@chromium.org>
parent 2202680c
...@@ -15,7 +15,7 @@ This will catch most of the trivial formatting errors and save you time. ...@@ -15,7 +15,7 @@ This will catch most of the trivial formatting errors and save you time.
### [Header Files](https://google.github.io/styleguide/cppguide.html#Header_Files) ### [Header Files](https://google.github.io/styleguide/cppguide.html#Header_Files)
* We will use **`.h`** for C++ headers. * We use **`.h`** for C++ headers.
* {DEV} #define guards should be of the form: `<PATH>_<FILE>_H_`. (Compiler * {DEV} #define guards should be of the form: `<PATH>_<FILE>_H_`. (Compiler
codebase is varied, including `<PROJECT>_` makes the names excessively codebase is varied, including `<PROJECT>_` makes the names excessively
long). long).
...@@ -39,7 +39,7 @@ This will catch most of the trivial formatting errors and save you time. ...@@ -39,7 +39,7 @@ This will catch most of the trivial formatting errors and save you time.
* {DO} use nullptr (instead of 0 or NULL) for pointers. * {DO} use nullptr (instead of 0 or NULL) for pointers.
* {DO} use size\_t for loop iterators and size values. * {DO} use size\_t for loop iterators and size values.
* {DO} use uint8\_t pointers instead of void pointers to denote binary data. * {DO} use uint8\_t pointers instead of void pointers to denote binary data.
* {DO} use C++11 according to the [Chromium guide on C++11] * {DO} use C++11/14 according to the [Chromium c++ 11/14 guide]
(http://chromium-cpp.appspot.com/). (http://chromium-cpp.appspot.com/).
### [Naming](https://google.github.io/styleguide/cppguide.html#Naming) ### [Naming](https://google.github.io/styleguide/cppguide.html#Naming)
...@@ -64,7 +64,7 @@ guidelines. ...@@ -64,7 +64,7 @@ guidelines.
* class and type names: start with capital letter and use CamelCase. * class and type names: start with capital letter and use CamelCase.
* {DEV} class member variables: use an **`m`** prefix instead of trailing * {DEV} class member variables: use an **`m`** prefix instead of trailing
underscore and use CamelCase. underscore and use CamelCase.
* global variables (if they must be used): use a **`g_`** prefix. * global variables (if they must be used): use a **`g`** prefix.
* {DEV} variable names: start with lower case and use CamelCase (chosen for consistency) * {DEV} variable names: start with lower case and use CamelCase (chosen for consistency)
* {DEV} function names: Member functions start with lower case and use CamelCase. Non-member functions start with capital letter and * {DEV} function names: Member functions start with lower case and use CamelCase. Non-member functions start with capital letter and
use CamelCase (chosen for consistency) use CamelCase (chosen for consistency)
...@@ -81,12 +81,14 @@ use CamelCase (chosen for consistency) ...@@ -81,12 +81,14 @@ use CamelCase (chosen for consistency)
``` ```
// //
// Copyright (c) 2016 The ANGLE Project Authors. All rights reserved. // Copyright $YEAR The ANGLE Project Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be // Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. // found in the LICENSE file.
// //
``` ```
* $YEAR should be set to the current year at the time a file is created, and not changed thereafter.
### [Formatting](https://google.github.io/styleguide/cppguide.html#Formatting) ### [Formatting](https://google.github.io/styleguide/cppguide.html#Formatting)
* {DEV} Avoid excessively long lines. Please keep lines under 100 columns * {DEV} Avoid excessively long lines. Please keep lines under 100 columns
......
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