File tree 1 file changed +17
-0
lines changed
1 file changed +17
-0
lines changed Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments