| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 98a0770 commit 4bdd05d
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,5 +1,22 @@ | |||
| 1 | 1 | # C++ Style Guide | |
| 2 | 2 | ||
| 3 | + ## Table of Contents | ||
| 4 | + | ||
| 5 | + * [Left-leaning (C++ style) asterisks for pointer declarations](#left-leaning-c-style-asterisks-for-pointer-declarations) | ||
| 6 | + * [2 spaces of indentation for blocks or bodies of conditionals](#2-spaces-of-indentation-for-blocks-or-bodies-of-conditionals) | ||
| 7 | + * [4 spaces of indentation for statement continuations](#4-spaces-of-indentation-for-statement-continuations) | ||
| 8 | + * [Align function arguments vertically](#align-function-arguments-vertically) | ||
| 9 | + * [Initialization lists](#initialization-lists) | ||
| 10 | + * [CamelCase for methods, functions and classes](#camelcase-for-methods-functions-and-classes) | ||
| 11 | + * [snake\_case for local variables and parameters](#snake_case-for-local-variables-and-parameters) | ||
| 12 | + * [snake\_case\_ for private class fields](#snake_case_-for-private-class-fields) | ||
| 13 | + * [Space after `template`](#space-after-template) | ||
| 14 | + * [Type casting](#type-casting) | ||
| 15 | + * [Memory allocation](#memory-allocation) | ||
| 16 | + * [`nullptr` instead of `NULL` or `0`](#nullptr-instead-of-null-or-0) | ||
| 17 | + * [Do not include `*.h` if `*-inl.h` has already been included](#do-not-include-h-if--inlh-has-already-been-included) | ||
| 18 | + * [Avoid throwing JavaScript errors in nested C++ methods](#avoid-throwing-javascript-errors-in-nested-c-methods) | ||
| 19 | + | ||
| 3 | 20 | Unfortunately, the C++ linter (based on | |
| 4 | 21 | [Google’s `cpplint`](https://github.com/google/styleguide)), which can be run | |
| 5 | 22 | explicitly via `make lint-cpp`, does not currently catch a lot of rules that are | |
| Back | FazBrowse Home | New Git URL |
0 commit comments