Skip to content

Commit d545d3e

Browse files
authored
Merge pull request MicrosoftDocs#2024 from nschonni/fix--MD022
fix: MD022/blanks-around-headings/blanks-around-headers
2 parents 46734b4 + b0dee49 commit d545d3e

29 files changed

Lines changed: 49 additions & 3 deletions

docs/atl/reference/security-global-functions.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,7 @@ Returns true on success, false on failure.
9797
### Remarks
9898

9999
In debug builds, an assertion error will occur if *hObject* is invalid, or if *dwInheritanceFlowControl* is not one of the three permitted values.
100+
100101
### Requirements
101102

102103
**Header:** atlsecurity.h

docs/build/cmake-predefined-configuration-reference.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -688,6 +688,7 @@ When you choose a configuration, it is added to the CMakeSettings.json file in t
688688
```
689689

690690
::: moniker-end
691+
691692
## See also
692693

693694
[CMake Projects in Visual Studio](cmake-projects-in-visual-studio.md)<br/>

docs/code-quality/c26432.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ helpviewer_keywords: ["C26432"]
77
ms.assetid: f587b05a-5c69-4176-baa6-fcb79d228b24
88
---
99
# C26432 DEFINE_OR_DELETE_SPECIAL_OPS
10+
1011
"If you define or delete any default operation in the type, define or delete them all."
1112

1213
**C++ Core Guidelines**:
@@ -15,6 +16,7 @@ ms.assetid: f587b05a-5c69-4176-baa6-fcb79d228b24
1516
Special operations like constructors are assumed to alter behavior of types so that they rely more on language mechanisms to automatically enforce specific scenarios (the canonical example is resource management). If any of these operations is explicitly defined, defaulted or deleted (as an indication that user wants to avoid any special handling of a type) it would be inconsistent to leave the other operations from the same group unspecified (i.e. implicitly defined by compiler).
1617

1718
## Remarks
19+
1820
- This check implements "the rule of five" which treats the following operations as special:
1921
- copy constructors;
2022
- move constructors;

docs/code-quality/c26436.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ helpviewer_keywords: ["C26436"]
77
ms.assetid: 82d14d5d-5c5d-4e27-bdc8-268f9973a312
88
---
99
# C26436 NEED_VIRTUAL_DTOR
10+
1011
"The type with a virtual function needs either public virtual or protected nonvirtual destructor."
1112

1213
**C++ Core Guidelines**:
@@ -15,5 +16,6 @@ C.35: A base class destructor should be either public and virtual, or protected
1516
If a class defines a virtual function it becomes polymorphic, which implies that derived classes can change its behavior including resource management and destruction logic. Because client code may call polymorphic types via pointers to base classes, there is no way a client can explicitly choose which behavior is appropriate without downcasting. To make sure that resources are managed consistently and destruction occurs according to the actual type’s rules it is recommended to define a public virtual destructor. If the type hierarchy is designed to disallow client code to destroy objects directly, destructors should be defined as protected non-virtual.
1617

1718
## Remarks
19+
1820
- The warning shows up on the first virtual function definition of a type (it can be a virtual destructor if it is not public), once per type.
1921
- Since definition can be placed separately from declaration, it may not always have any of the virtual specifiers. But the warning is still valid – it checks the actual ‘virtuality’ of a function.

docs/code-quality/c26439.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ helpviewer_keywords: ["C26439"]
77
ms.assetid: 9df2a1b0-ea94-4884-9d28-c1522ec33a1b
88
---
99
# C26439 SPECIAL_NOEXCEPT
10+
1011
"This kind of function may not throw. Declare it 'noexcept'."
1112

1213
**C++ Core Guidelines**:
@@ -15,6 +16,7 @@ F.6: If your function may not throw, declare it noexcept
1516
Some kinds of operations should never cause exceptions. Their implementations should be reliable and should handle possible errors conditions gracefully. They should never use exceptions to indicate failure. This rule flags cases where such operations are not explicitly marked as ‘noexcept’ which means that they may throw exceptions and cannot convey assumptions about their reliability.
1617

1718
## Remarks
19+
1820
- Special kinds of operations are the following:
1921
- destructors;
2022
- default constructors;

docs/code-quality/c26440.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,19 +7,21 @@ helpviewer_keywords: ["C26440"]
77
ms.assetid: b6d2b188-35cc-4de2-878c-6f97d5a2444a
88
---
99
# C26440 DECLARE_NOEXCEPT
10+
1011
"Function can be declared 'noexcept'."
1112

1213
**C++ Core Guidelines**:
1314
F.6: If your function may not throw, declare it noexcept
1415

15-
If code is not supposed to cause any exceptions, it should be marked as such by using the noexcept specifier. This would help to simplify error handling on the client code side, as well as enable compiler to do additional optimizations.
16+
If code is not supposed to cause any exceptions, it should be marked as such by using the 'noexcept' specifier. This would help to simplify error handling on the client code side, as well as enable compiler to do additional optimizations.
1617

1718
## Remarks
19+
1820
- A function is considered non-throwing if:
1921
- it has no explicit throw statements;
2022
- function calls in its body, if any, invoke only functions that unlikely to throw: constexpr or functions marked with any exception specification which entails non-throwing behavior (this includes some non-standard specifications).
21-
- Non-standard and outdated specifiers like throw() or declspec(nothrow) are not equivalent to noexcept.
23+
- Non-standard and outdated specifiers like throw() or declspec(nothrow) are not equivalent to 'noexcept'.
2224
- Explicit specifiers noexcept(false) and noexcept(true) are respected appropriately.
2325
- Functions marked as constexpr are not supposed to cause exceptions and are not analyzed.
2426
- The rule also applies to lambda expressions.
25-
- The logic doesnt consider recursive calls as potentially non-throwing. This may change in the future.
27+
- The logic doesn't consider recursive calls as potentially non-throwing. This may change in the future.

docs/cppcx/platform-string-class.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -456,6 +456,7 @@ A number that specifies the length of the string.
456456
### Remarks
457457
458458
If performance is critical and you control the lifetime of the source string, you can use [Platform::StringReference](../cppcx/platform-stringreference-class.md) in place of String.
459+
459460
### Example
460461
461462
```cpp

docs/cppcx/platform-type-class.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ String^ FullName();
6565
### Return Value
6666

6767
The name of the type.
68+
6869
### Example
6970

7071
```

docs/dotnet/utility-stl-clr.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ Include the STL/CLR header `<cliext/utility>` to define the template class `pair
4444
## Members
4545

4646
## <a name="pair"></a> pair (STL/CLR)
47+
4748
The template class describes an object that wraps a pair of values.
4849

4950
### Syntax

docs/dotnet/vector-stl-clr.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -939,6 +939,7 @@ x b c
939939
```
940940

941941
## <a name="front_item"></a> vector::front_item (STL/CLR)
942+
942943
Accesses the first element.
943944

944945
### Syntax
@@ -989,6 +990,7 @@ x b c
989990
```
990991

991992
## <a name="generic_container"></a> vector::generic_container (STL/CLR)
993+
992994
The type of the generic interface for the container.
993995

994996
### Syntax
@@ -1112,6 +1114,7 @@ a a c
11121114
```
11131115

11141116
## <a name="generic_reverse_iterator"></a> vector::generic_reverse_iterator (STL/CLR)
1117+
11151118
The type of a reverse iterator for use with the generic interface for the container.
11161119

11171120
### Syntax

0 commit comments

Comments
 (0)