Skip to content

Commit 6809cac

Browse files
author
mtx48109
committed
cpp formatting review pr21
1 parent 4dd72c1 commit 6809cac

30 files changed

+48
-70
lines changed

docs/cpp/overview-of-cpp-statements.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ C++ statements are executed sequentially, except when an expression statement, a
1717
Statements may be of the following types:
1818

1919
```
20-
2120
labeled-statement
2221
expression-statement
2322
compound-statement
@@ -26,7 +25,6 @@ iteration-statement
2625
jump-statement
2726
declaration-statement
2827
try-throw-catch
29-
3028
```
3129

3230
In most cases, the C++ statement syntax is identical to that of ANSI C. The primary difference between the two is that in C, declarations are allowed only at the start of a block; C++ adds the *declaration-statement*, which effectively removes this restriction. This enables you to introduce variables at a point in the program where a precomputed initialization value can be calculated.
@@ -44,5 +42,5 @@ try-throw-catch
4442
|[default](../cpp/switch-statement-cpp.md)|[__finally](../cpp/structured-exception-handling-c-cpp.md)|[switch](../cpp/switch-statement-cpp.md)||
4543
|[do](../cpp/do-while-statement-cpp.md)|[if](../cpp/if-else-statement-cpp.md)|[throw](../cpp/try-throw-and-catch-statements-cpp.md)||
4644

47-
## See Also
45+
## See also
4846
[Statements](../cpp/statements-cpp.md)

docs/cpp/overview-of-declarators.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -162,13 +162,11 @@ int a, *b, c[5], **d, &e=a;
162162
- pointer-operator declarator 
163163
- ( declarator )
164164

165-
166165
- and *pointer-operator* is one of:
167166

168167
- \* [cv-qualifiers]
169168
- & [cv-qualifiers] ::nested-name-specifier \* [cv-qualifiers]
170169

171-
172170
Because a declarator may contain declarators, it is possible to construct the more complex derived types such as arrays of pointers, functions returning arrays of function pointers, by using the above rules. To form each step of the construction, start with the identifier representing the base data type and apply the syntax rule above with the previous expression as the `declarator`. The order that you apply the syntax rules should be the reverse of the way the expression is stated in English. If applying the *pointer-operator* syntax rule to an array or function expression, use parentheses if you want a pointer to the array or function, as in the last row in the table below.
173171

174172
The following example shows the construction of "pointer to array of 10 pointers to int".

docs/cpp/overview-of-file-translation.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,5 +41,5 @@ C++ programs, like C programs, consist of one or more files. Each of these files
4141

4242
- The C preprocessor does not recognize the C++ operators: **.\***, **->\***, and `::`. See [Operators](../cpp/cpp-built-in-operators-precedence-and-associativity.md) and [Expressions](../cpp/expressions-cpp.md), for more information about operators.
4343

44-
## See Also
44+
## See also
4545
[Lexical Conventions](../cpp/lexical-conventions.md)

docs/cpp/overview-of-member-functions.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,5 +68,4 @@ int main()
6868
> [!NOTE]
6969
> Although member functions can be defined either inside a class declaration or separately, no member functions can be added to a class after the class is defined.
7070
71-
Classes containing member functions can have many declarations, but the member functions themselves must have only one definition in a program. Multiple definitions cause an error message at link time. If a class contains inline function definitions, the function definitions must be identical to observe this "one definition" rule.
72-
71+
Classes containing member functions can have many declarations, but the member functions themselves must have only one definition in a program. Multiple definitions cause an error message at link time. If a class contains inline function definitions, the function definitions must be identical to observe this "one definition" rule.

docs/cpp/parsing-cpp-command-line-arguments.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,5 +66,5 @@ int main( int argc, // Number of strings in array argv
6666
6767
**END Microsoft Specific**
6868
69-
## See Also
69+
## See also
7070
[main: Program Startup](../cpp/main-program-startup.md)

docs/cpp/partial-ordering-of-function-templates-cpp.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,5 @@ More specialized function called
8383
Even more specialized function for const T*
8484
```
8585

86-
## See Also
87-
88-
[Function Templates](../cpp/function-templates.md)
86+
## See also
87+
[Function Templates](../cpp/function-templates.md)

docs/cpp/pimpl-for-compile-time-encapsulation-modern-cpp.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@ class my_class {
3131
private:
3232
class impl; unique_ptr<impl> pimpl; // opaque type here
3333
};
34-
3534
```
3635
3736
The pimpl idiom avoids rebuild cascades and brittle object layouts. It's well suited for (transitively) popular types.
@@ -54,7 +53,7 @@ my_class::my_class(): pimpl( new impl )
5453
## Best practices
5554
Consider whether to add support for non-throwing swap specialization.
5655

57-
## See Also
56+
## See also
5857
[Welcome Back to C++](../cpp/welcome-back-to-cpp-modern-cpp.md)
5958
[C++ Language Reference](../cpp/cpp-language-reference.md)
6059
[C++ Standard Library](../standard-library/cpp-standard-library-reference.md)

docs/cpp/point-of-declaration-in-cpp.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,5 +28,5 @@ int main()
2828

2929
If the point of declaration were *after* the initialization, then the local `dVar` would be initialized to 7.0, the value of the global variable `dVar`. However, since that is not the case, `dVar` is initialized to an undefined value.
3030

31-
## See Also
31+
## See also
3232
[Scope](../cpp/scope-visual-cpp.md)

docs/cpp/pointer-to-member-operators-dot-star-and-star.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,5 @@ int main() {
124124
> [!NOTE]
125125
> If the result of one of the pointer-to-member operators is a function, then the result can be used only as an operand to the function call operator.
126126
127-
## See Also
128-
[C++ Built-in Operators, Precedence and Associativity](../cpp/cpp-built-in-operators-precedence-and-associativity.md)
129-
127+
## See also
128+
[C++ Built-in Operators, Precedence and Associativity](../cpp/cpp-built-in-operators-precedence-and-associativity.md)

docs/cpp/pointers-cpp.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ Pointers are declared using the following sequence.
1919
[ms-modifier] declarator ;
2020
```
2121

22-
where any valid pointer declarator may be used for `declarator`. The syntax for a simple pointer declarator is as follows:
22+
where any valid pointer declarator may be used for `declarator`. The syntax for a simple pointer declarator is as follows:
2323

2424
```
2525
* [cv-qualifiers] identifier [= expression]
@@ -236,8 +236,7 @@ int main() {
236236
```
237237
238238
```Output
239-
240-
a
239+
a
241240
45
242241
d
243242
a
@@ -255,6 +254,6 @@ node 2 = 789
255254
a (add node) d (display list) q (quit)
256255
```
257256

258-
## See Also
257+
## See also
259258
[Indirection Operator: *](../cpp/indirection-operator-star.md)
260259
[Address-of Operator: &](../cpp/address-of-operator-amp.md)

0 commit comments

Comments
 (0)