Skip to content

Commit 863d4d9

Browse files
authored
Merge branch 'master' into kraigb-porting
2 parents dad3e75 + 3d32d11 commit 863d4d9

File tree

290 files changed

+497
-497
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

290 files changed

+497
-497
lines changed

docs/code-quality/automatic-feature-suspension.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ If your available system memory falls to 200MB or less, Visual Studio displays t
3232

3333
- Full solution analysis for Visual C# and Visual Basic is disabled.
3434

35-
- [Garbage Collection](http://msdn.microsoft.com/Library/22b6cb97-0c80-4eeb-a2cf-5ed7655e37f9) (GC) low-latency mode for Visual C# and Visual Basic are disabled.
35+
- [Garbage Collection](/dotnet/standard/garbage-collection/index) (GC) low-latency mode for Visual C# and Visual Basic are disabled.
3636

3737
- Visual Studio caches are flushed.
3838

@@ -61,5 +61,5 @@ If your available system memory falls to 200MB or less, Visual Studio displays t
6161
6262
## See Also
6363
[How to: Enable and Disable Full Solution Analysis](../code-quality/how-to-enable-and-disable-full-solution-analysis-for-managed-code.md)
64-
[Fundamentals of Garbage Collection](http://msdn.microsoft.com/Library/67c5a20d-1be1-4ea7-8a9a-92b0b08658d2)
64+
[Fundamentals of Garbage Collection](/dotnet/standard/garbage-collection/fundamentals)
6565
[Performance considerations for large solutions](https://github.com/dotnet/roslyn/wiki/Performance-considerations-for-large-solutions)

docs/code-quality/c6011.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ void f([Pre(Null=Yes)] char* pc)
8282
}
8383
```
8484

85-
The use of malloc and free have many pitfalls in terms of memory leaks and exceptions. To avoid these kinds of leaks and exception problems altogether, use the mechanisms that are provided by the C++ Standard Template Library (STL). These include [shared_ptr](/cpp/standard-library/shared-ptr-class), [unique_ptr](/cpp/standard-library/unique-ptr-class), and [vector](http://msdn.microsoft.com/Library/c1431ad8-c0b6-4dbb-89c4-5f651e432d7f). For more information, see [Smart Pointers](/cpp/cpp/smart-pointers-modern-cpp) and [C++ Standard Library](/cpp/standard-library/cpp-standard-library-reference).
85+
The use of malloc and free have many pitfalls in terms of memory leaks and exceptions. To avoid these kinds of leaks and exception problems altogether, use the mechanisms that are provided by the C++ Standard Template Library (STL). These include [shared_ptr](/cpp/standard-library/shared-ptr-class), [unique_ptr](/cpp/standard-library/unique-ptr-class), and [vector](/cpp/standard-library/vector). For more information, see [Smart Pointers](/cpp/cpp/smart-pointers-modern-cpp) and [C++ Standard Library](/cpp/standard-library/cpp-standard-library-reference).
8686

8787
## See Also
8888
[Annotation Overview](http://msdn.microsoft.com/en-us/2345380e-2eeb-4107-907f-6e8b809c2643)

docs/code-quality/c6014.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ int main( )
102102

103103
Note that Code Analysis will not recognize the actual implementation of a memory allocator (involving address arithmetic) and will not recognize that memory is allocated (although many wrappers will be recognized). In this case, the analyzer does not recognize that the memory was allocated and issues this warning. To suppress the false positive, use a `#pragma` directive on the line that precedes the opening brace `{` of the function body.
104104

105-
To avoid these kinds of potential leaks altogether, use the mechanisms that are provided by the C++ Standard Template Library (STL). These include [shared_ptr](/cpp/standard-library/shared-ptr-class), [unique_ptr](/cpp/standard-library/unique-ptr-class), and [vector](http://msdn.microsoft.com/Library/c1431ad8-c0b6-4dbb-89c4-5f651e432d7f). For more information, see [Smart Pointers](/cpp/cpp/smart-pointers-modern-cpp) and [C++ Standard Library](/cpp/standard-library/cpp-standard-library-reference).
105+
To avoid these kinds of potential leaks altogether, use the mechanisms that are provided by the C++ Standard Template Library (STL). These include [shared_ptr](/cpp/standard-library/shared-ptr-class), [unique_ptr](/cpp/standard-library/unique-ptr-class), and [vector](/cpp/standard-library/vector). For more information, see [Smart Pointers](/cpp/cpp/smart-pointers-modern-cpp) and [C++ Standard Library](/cpp/standard-library/cpp-standard-library-reference).
106106

107107
```cpp
108108
// cl.exe /analyze /EHsc /nologo /W4

docs/code-quality/c6211.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ void f()
9595
9696
```
9797

98-
To avoid these kinds of potential leaks altogether, use the mechanisms that are provided by the C++ Standard Template Library (STL). These include [shared_ptr](/cpp/standard-library/shared-ptr-class), [unique_ptr](/cpp/standard-library/unique-ptr-class), and [vector](http://msdn.microsoft.com/Library/c1431ad8-c0b6-4dbb-89c4-5f651e432d7f). For more information, see [Smart Pointers](/cpp/cpp/smart-pointers-modern-cpp) and [C++ Standard Library](/cpp/standard-library/cpp-standard-library-reference).
98+
To avoid these kinds of potential leaks altogether, use the mechanisms that are provided by the C++ Standard Template Library (STL). These include [shared_ptr](/cpp/standard-library/shared-ptr-class), [unique_ptr](/cpp/standard-library/unique-ptr-class), and [vector](/cpp/standard-library/vector). For more information, see [Smart Pointers](/cpp/cpp/smart-pointers-modern-cpp) and [C++ Standard Library](/cpp/standard-library/cpp-standard-library-reference).
9999

100100
```cpp
101101
// cl.exe /analyze /c /EHsc /nologo /W4

docs/code-quality/c6214.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -95,4 +95,4 @@ BOOL f( )
9595

9696
[FAILED](http://go.microsoft.com/fwlink/?LinkId=92737)
9797

98-
To leverage modern C++ memory allocation methodology, use the mechanisms that are provided by the C++ Standard Template Library (STL). These include [shared_ptr](/cpp/standard-library/shared-ptr-class), [unique_ptr](/cpp/standard-library/unique-ptr-class), and [vector](http://msdn.microsoft.com/Library/c1431ad8-c0b6-4dbb-89c4-5f651e432d7f). For more information, see [Smart Pointers](/cpp/cpp/smart-pointers-modern-cpp) and [C++ Standard Library](/cpp/standard-library/cpp-standard-library-reference).
98+
To leverage modern C++ memory allocation methodology, use the mechanisms that are provided by the C++ Standard Template Library (STL). These include [shared_ptr](/cpp/standard-library/shared-ptr-class), [unique_ptr](/cpp/standard-library/unique-ptr-class), and [vector](/cpp/standard-library/vector). For more information, see [Smart Pointers](/cpp/cpp/smart-pointers-modern-cpp) and [C++ Standard Library](/cpp/standard-library/cpp-standard-library-reference).

docs/code-quality/c6219.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -84,4 +84,4 @@ void f( )
8484

8585
For this warning, the `SCODE` type is equivalent to `HRESULT`.
8686

87-
Note that the use of malloc and free (and related dynamic memory APIs) have many pitfalls in terms of memory leaks and exceptions. To avoid these kinds of leaks and exception problems altogether, use the mechanisms that are provided by the C++ Standard Template Library (STL). These include [shared_ptr](/cpp/standard-library/shared-ptr-class), [unique_ptr](/cpp/standard-library/unique-ptr-class), and [vector](http://msdn.microsoft.com/Library/c1431ad8-c0b6-4dbb-89c4-5f651e432d7f). For more information, see [Smart Pointers](/cpp/cpp/smart-pointers-modern-cpp) and [C++ Standard Library](/cpp/standard-library/cpp-standard-library-reference).
87+
Note that the use of malloc and free (and related dynamic memory APIs) have many pitfalls in terms of memory leaks and exceptions. To avoid these kinds of leaks and exception problems altogether, use the mechanisms that are provided by the C++ Standard Template Library (STL). These include [shared_ptr](/cpp/standard-library/shared-ptr-class), [unique_ptr](/cpp/standard-library/unique-ptr-class), and [vector](/cpp/standard-library/vector). For more information, see [Smart Pointers](/cpp/cpp/smart-pointers-modern-cpp) and [C++ Standard Library](/cpp/standard-library/cpp-standard-library-reference).

docs/code-quality/c6220.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -92,4 +92,4 @@ HRESULT f( )
9292

9393
For more information, see [SUCCEEDED Macro](http://go.microsoft.com/fwlink/?LinkId=92738) and [FAILED Macro](http://go.microsoft.com/fwlink/?LinkId=180875).
9494

95-
Note that the use of malloc and free (and related dynamic memory allocation APIs) have many pitfalls in terms of memory leaks and exceptions. To avoid these kinds of leaks and exception problems altogether, use the mechanisms that are provided by the C++ Standard Template Library (STL). These include [shared_ptr](/cpp/standard-library/shared-ptr-class), [unique_ptr](/cpp/standard-library/unique-ptr-class), and [vector](http://msdn.microsoft.com/Library/c1431ad8-c0b6-4dbb-89c4-5f651e432d7f). For more information, see [Smart Pointers](/cpp/cpp/smart-pointers-modern-cpp) and [C++ Standard Library](/cpp/standard-library/cpp-standard-library-reference).
95+
Note that the use of malloc and free (and related dynamic memory allocation APIs) have many pitfalls in terms of memory leaks and exceptions. To avoid these kinds of leaks and exception problems altogether, use the mechanisms that are provided by the C++ Standard Template Library (STL). These include [shared_ptr](/cpp/standard-library/shared-ptr-class), [unique_ptr](/cpp/standard-library/unique-ptr-class), and [vector](/cpp/standard-library/vector). For more information, see [Smart Pointers](/cpp/cpp/smart-pointers-modern-cpp) and [C++ Standard Library](/cpp/standard-library/cpp-standard-library-reference).

docs/code-quality/c6221.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -90,4 +90,4 @@ HRESULT f( )
9090

9191
For more information, see [SUCCEEDED Macro](http://go.microsoft.com/fwlink/?LinkId=92738) and [FAILED Macro](http://go.microsoft.com/fwlink/?LinkId=180875).
9292

93-
Note that the use of malloc and free (and related dynamic memory allocation APIs) have many pitfalls in terms of memory leaks and exceptions. To avoid these kinds of leaks and exception problems altogether, use the mechanisms that are provided by the C++ Standard Template Library (STL). These include [shared_ptr](/cpp/standard-library/shared-ptr-class), [unique_ptr](/cpp/standard-library/unique-ptr-class), and [vector](http://msdn.microsoft.com/Library/c1431ad8-c0b6-4dbb-89c4-5f651e432d7f). For more information, see [Smart Pointers](/cpp/cpp/smart-pointers-modern-cpp) and [C++ Standard Library](/cpp/standard-library/cpp-standard-library-reference).
93+
Note that the use of malloc and free (and related dynamic memory allocation APIs) have many pitfalls in terms of memory leaks and exceptions. To avoid these kinds of leaks and exception problems altogether, use the mechanisms that are provided by the C++ Standard Template Library (STL). These include [shared_ptr](/cpp/standard-library/shared-ptr-class), [unique_ptr](/cpp/standard-library/unique-ptr-class), and [vector](/cpp/standard-library/vector). For more information, see [Smart Pointers](/cpp/cpp/smart-pointers-modern-cpp) and [C++ Standard Library](/cpp/standard-library/cpp-standard-library-reference).

docs/code-quality/c6225.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -92,4 +92,4 @@ VOID f( )
9292

9393
[FAILED](http://go.microsoft.com/fwlink/?LinkId=180875)
9494

95-
To leverage modern C++ memory allocation methodology, use the mechanisms that are provided by the C++ Standard Template Library (STL). These include [shared_ptr](/cpp/standard-library/shared-ptr-class), [unique_ptr](/cpp/standard-library/unique-ptr-class), and [vector](http://msdn.microsoft.com/Library/c1431ad8-c0b6-4dbb-89c4-5f651e432d7f). For more information, see [Smart Pointers](/cpp/cpp/smart-pointers-modern-cpp) and [C++ Standard Library](/cpp/standard-library/cpp-standard-library-reference).
95+
To leverage modern C++ memory allocation methodology, use the mechanisms that are provided by the C++ Standard Template Library (STL). These include [shared_ptr](/cpp/standard-library/shared-ptr-class), [unique_ptr](/cpp/standard-library/unique-ptr-class), and [vector](/cpp/standard-library/vector). For more information, see [Smart Pointers](/cpp/cpp/smart-pointers-modern-cpp) and [C++ Standard Library](/cpp/standard-library/cpp-standard-library-reference).

docs/code-quality/c6226.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -86,4 +86,4 @@ VOID f( )
8686

8787
For this warning, the `SCODE` type is equivalent to `HRESULT`.
8888

89-
Note that the use of malloc and free (and related dynamic memory allocation APIs) have many pitfalls in terms of memory leaks and exceptions. To avoid these kinds of leaks and exception problems altogether, use the mechanisms that are provided by the C++ Standard Template Library (STL). These include [shared_ptr](/cpp/standard-library/shared-ptr-class), [unique_ptr](/cpp/standard-library/unique-ptr-class), and [vector](http://msdn.microsoft.com/Library/c1431ad8-c0b6-4dbb-89c4-5f651e432d7f). For more information, see [Smart Pointers](/cpp/cpp/smart-pointers-modern-cpp) and [C++ Standard Library](/cpp/standard-library/cpp-standard-library-reference).
89+
Note that the use of malloc and free (and related dynamic memory allocation APIs) have many pitfalls in terms of memory leaks and exceptions. To avoid these kinds of leaks and exception problems altogether, use the mechanisms that are provided by the C++ Standard Template Library (STL). These include [shared_ptr](/cpp/standard-library/shared-ptr-class), [unique_ptr](/cpp/standard-library/unique-ptr-class), and [vector](/cpp/standard-library/vector). For more information, see [Smart Pointers](/cpp/cpp/smart-pointers-modern-cpp) and [C++ Standard Library](/cpp/standard-library/cpp-standard-library-reference).

docs/code-quality/c6230.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -84,4 +84,4 @@ VOID f( )
8484

8585
For this warning, the `SCODE` type is equivalent to `HRESULT`.
8686

87-
Note that the use of malloc and free (and related dynamic memory allocation APIs) have many pitfalls in terms of memory leaks and exceptions. To avoid these kinds of leaks and exception problems altogether, use the mechanisms that are provided by the C++ Standard Template Library (STL). These include [shared_ptr](/cpp/standard-library/shared-ptr-class), [unique_ptr](/cpp/standard-library/unique-ptr-class), and [vector](http://msdn.microsoft.com/Library/c1431ad8-c0b6-4dbb-89c4-5f651e432d7f). For more information, see [Smart Pointers](/cpp/cpp/smart-pointers-modern-cpp) and [C++ Standard Library](/cpp/standard-library/cpp-standard-library-reference).
87+
Note that the use of malloc and free (and related dynamic memory allocation APIs) have many pitfalls in terms of memory leaks and exceptions. To avoid these kinds of leaks and exception problems altogether, use the mechanisms that are provided by the C++ Standard Template Library (STL). These include [shared_ptr](/cpp/standard-library/shared-ptr-class), [unique_ptr](/cpp/standard-library/unique-ptr-class), and [vector](/cpp/standard-library/vector). For more information, see [Smart Pointers](/cpp/cpp/smart-pointers-modern-cpp) and [C++ Standard Library](/cpp/standard-library/cpp-standard-library-reference).

docs/code-quality/c6242.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ int f()
9898
}
9999
```
100100

101-
The use of malloc and free have many pitfalls in terms of memory leaks and exceptions. To avoid these kinds of leaks and exception problems altogether, use the mechanisms that are provided by the C++ Standard Template Library (STL). These include [shared_ptr](/cpp/standard-library/shared-ptr-class), [unique_ptr](/cpp/standard-library/unique-ptr-class), and [vector](http://msdn.microsoft.com/Library/c1431ad8-c0b6-4dbb-89c4-5f651e432d7f). For more information, see [Smart Pointers](/cpp/cpp/smart-pointers-modern-cpp) and [C++ Standard Library](/cpp/standard-library/cpp-standard-library-reference).
101+
The use of malloc and free have many pitfalls in terms of memory leaks and exceptions. To avoid these kinds of leaks and exception problems altogether, use the mechanisms that are provided by the C++ Standard Template Library (STL). These include [shared_ptr](/cpp/standard-library/shared-ptr-class), [unique_ptr](/cpp/standard-library/unique-ptr-class), and [vector](/cpp/standard-library/vector). For more information, see [Smart Pointers](/cpp/cpp/smart-pointers-modern-cpp) and [C++ Standard Library](/cpp/standard-library/cpp-standard-library-reference).
102102

103103
## See Also
104104
[try-finally Statement](/cpp/cpp/try-finally-statement)

docs/code-quality/c6250.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ warning C6250: Calling \<function> VirtualFree without the MEM_RELEASE flag may
4141

4242
For more information see [VirtualAlloc](http://go.microsoft.com/fwlink/?LinkId=181201) and [VirtualFree](http://go.microsoft.com/fwlink/?LinkId=181202).
4343

44-
The use of VirtualAlloc and VirtualFree have many pitfalls in terms of memory leaks and exceptions. To avoid these kinds of leaks and exception problems altogether, use the mechanisms that are provided by the C++ Standard Template Library (STL). These include [shared_ptr](/cpp/standard-library/shared-ptr-class), [unique_ptr](/cpp/standard-library/unique-ptr-class), and [vector](http://msdn.microsoft.com/Library/c1431ad8-c0b6-4dbb-89c4-5f651e432d7f). For more information, see [Smart Pointers](/cpp/cpp/smart-pointers-modern-cpp) and [C++ Standard Library](/cpp/standard-library/cpp-standard-library-reference).
44+
The use of VirtualAlloc and VirtualFree have many pitfalls in terms of memory leaks and exceptions. To avoid these kinds of leaks and exception problems altogether, use the mechanisms that are provided by the C++ Standard Template Library (STL). These include [shared_ptr](/cpp/standard-library/shared-ptr-class), [unique_ptr](/cpp/standard-library/unique-ptr-class), and [vector](/cpp/standard-library/vector). For more information, see [Smart Pointers](/cpp/cpp/smart-pointers-modern-cpp) and [C++ Standard Library](/cpp/standard-library/cpp-standard-library-reference).
4545

4646
## Example
4747
The following sample code generates this warning:

docs/code-quality/c6262.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ void f( )
8787

8888
```
8989

90-
The use of malloc and free have many pitfalls in terms of memory leaks and exceptions. To avoid these kinds of leaks and exception problems altogether, use the mechanisms that are provided by the C++ Standard Template Library (STL). These include [shared_ptr](/cpp/standard-library/shared-ptr-class), [unique_ptr](/cpp/standard-library/unique-ptr-class), and [vector](http://msdn.microsoft.com/Library/c1431ad8-c0b6-4dbb-89c4-5f651e432d7f). For more information, see [Smart Pointers](/cpp/cpp/smart-pointers-modern-cpp) and [C++ Standard Library](/cpp/standard-library/cpp-standard-library-reference).
90+
The use of malloc and free have many pitfalls in terms of memory leaks and exceptions. To avoid these kinds of leaks and exception problems altogether, use the mechanisms that are provided by the C++ Standard Template Library (STL). These include [shared_ptr](/cpp/standard-library/shared-ptr-class), [unique_ptr](/cpp/standard-library/unique-ptr-class), and [vector](/cpp/standard-library/vector). For more information, see [Smart Pointers](/cpp/cpp/smart-pointers-modern-cpp) and [C++ Standard Library](/cpp/standard-library/cpp-standard-library-reference).
9191

9292
**To correct this warning by adjusting the stack size**
9393

docs/code-quality/c6278.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -77,4 +77,4 @@ void f( )
7777

7878
If the underlying object in the array is a primitive type such as `int`, `float`, `enum`, or pointer, there are no destructors to be called. In these cases warning [C6283](../code-quality/c6283.md) is reported instead.
7979

80-
The use of new and delete have many pitfalls in terms of memory leaks and exceptions. To avoid these kinds of leaks and exception problems altogether, use the mechanisms that are provided by the C++ Standard Template Library (STL). These include [shared_ptr](/cpp/standard-library/shared-ptr-class), [unique_ptr](/cpp/standard-library/unique-ptr-class), and [vector](http://msdn.microsoft.com/Library/c1431ad8-c0b6-4dbb-89c4-5f651e432d7f). For more information, see [Smart Pointers](/cpp/cpp/smart-pointers-modern-cpp) and [C++ Standard Library](/cpp/standard-library/cpp-standard-library-reference).
80+
The use of new and delete have many pitfalls in terms of memory leaks and exceptions. To avoid these kinds of leaks and exception problems altogether, use the mechanisms that are provided by the C++ Standard Template Library (STL). These include [shared_ptr](/cpp/standard-library/shared-ptr-class), [unique_ptr](/cpp/standard-library/unique-ptr-class), and [vector](/cpp/standard-library/vector). For more information, see [Smart Pointers](/cpp/cpp/smart-pointers-modern-cpp) and [C++ Standard Library](/cpp/standard-library/cpp-standard-library-reference).

0 commit comments

Comments
 (0)