mirror of
https://github.com/godotengine/godot-angle-static.git
synced 2026-01-03 14:09:33 +03:00
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/953133 Reviewed-by: Jamie Madill <jmadill@chromium.org> Reviewed-by: Luc Ferron <lucferron@chromium.org> Commit-Queue: Jamie Madill <jmadill@chromium.org>
This commit is contained in:
@@ -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)
|
||||
|
||||
* 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
|
||||
codebase is varied, including `<PROJECT>_` makes the names excessively
|
||||
long).
|
||||
@@ -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 size\_t for loop iterators and size values.
|
||||
* {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/).
|
||||
|
||||
### [Naming](https://google.github.io/styleguide/cppguide.html#Naming)
|
||||
@@ -64,7 +64,7 @@ guidelines.
|
||||
* class and type names: start with capital letter and use CamelCase.
|
||||
* {DEV} class member variables: use an **`m`** prefix instead of trailing
|
||||
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} function names: Member functions start with lower case and use CamelCase. Non-member functions start with capital letter and
|
||||
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
|
||||
// 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)
|
||||
|
||||
* {DEV} Avoid excessively long lines. Please keep lines under 100 columns
|
||||
|
||||
Reference in New Issue
Block a user