Skip to content

Fix git push error for protected CLA branch #1550

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 11 commits into from
Sep 9, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions docs/atl/collection-classes.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@ The following classes provide support for arrays, lists, maps, and also traits m

- [CComQIPtrElementTraits](../atl/reference/ccomqiptrelementtraits-class.md) This class provides methods, static functions, and typedefs useful when creating collections of COM interface pointers.

- [CComSafeArray](../atl/reference/ccomsafearray-class.md) This class is a wrapper for the [SAFEARRAY Data Type](/windows/win32/api/oaidl/ns-oaidl-tagsafearray) structure.
- [CComSafeArray](../atl/reference/ccomsafearray-class.md) This class is a wrapper for the [SAFEARRAY Data Type](/windows/win32/api/oaidl/ns-oaidl-safearray) structure.

- [CComSafeArrayBound](../atl/reference/ccomsafearraybound-class.md) This class is a wrapper for a [SAFEARRAYBOUND](/windows/win32/api/oaidl/ns-oaidl-tagsafearraybound) structure.
- [CComSafeArrayBound](../atl/reference/ccomsafearraybound-class.md) This class is a wrapper for a [SAFEARRAYBOUND](/windows/win32/api/oaidl/ns-oaidl-safearraybound) structure.

- [CComUnkArray](../atl/reference/ccomunkarray-class.md) This class stores **IUnknown** pointers and is designed to be used as a parameter to the [IConnectionPointImpl](../atl/reference/iconnectionpointimpl-class.md) template class.

Expand Down
8 changes: 4 additions & 4 deletions docs/atl/reference/catlfilemappingbase-class.md
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ The mapping size. If 0, the maximum size of the file-mapping object is equal to
The file offset where mapping is to begin. The offset value must be a multiple of the system's memory allocation granularity.

*dwMappingProtection*<br/>
The protection desired for the file view when the file is mapped. See *flProtect* in [CreateFileMapping](/windows/win32/api/winbase/nf-winbase-createfilemappingw) in the Windows SDK.
The protection desired for the file view when the file is mapped. See *flProtect* in [CreateFileMapping](/windows/win32/api/winbase/nf-winbase-createfilemappinga) in the Windows SDK.

*dwViewDesiredAccess*<br/>
Specifies the type of access to the file view and, therefore, the protection of the pages mapped by the file. See *dwDesiredAccess* in [MapViewOfFileEx](/windows/win32/api/memoryapi/nf-memoryapi-mapviewoffileex) in the Windows SDK.
Expand All @@ -183,7 +183,7 @@ Returns S_OK on success, or an error HRESULT on failure.

### Remarks

After a file-mapping object has been created, the size of the file must not exceed the size of the file-mapping object; if it does, not all of the file's contents will be available for sharing. For more details, see [CreateFileMapping](/windows/win32/api/winbase/nf-winbase-createfilemappingw) and [MapViewOfFileEx](/windows/win32/api/memoryapi/nf-memoryapi-mapviewoffileex) in the Windows SDK.
After a file-mapping object has been created, the size of the file must not exceed the size of the file-mapping object; if it does, not all of the file's contents will be available for sharing. For more details, see [CreateFileMapping](/windows/win32/api/winbase/nf-winbase-createfilemappinga) and [MapViewOfFileEx](/windows/win32/api/memoryapi/nf-memoryapi-mapviewoffileex) in the Windows SDK.

### Example

Expand Down Expand Up @@ -215,7 +215,7 @@ The name of the mapping object.
Points to a BOOL value that is set to TRUE if the mapping object already existed.

*lpsa*<br/>
The pointer to a `SECURITY_ATTRIBUTES` structure that determines whether the returned handle can be inherited by child processes. See *lpAttributes* in [CreateFileMapping](/windows/win32/api/winbase/nf-winbase-createfilemappingw) in the Windows SDK.
The pointer to a `SECURITY_ATTRIBUTES` structure that determines whether the returned handle can be inherited by child processes. See *lpAttributes* in [CreateFileMapping](/windows/win32/api/winbase/nf-winbase-createfilemappinga) in the Windows SDK.

*dwMappingProtection*<br/>
The protection desired for the file view, when the file is mapped. See *flProtect* in `CreateFileMapping` in the Windows SDK.
Expand All @@ -229,7 +229,7 @@ Returns S_OK on success, or an error HRESULT on failure.

### Remarks

`MapShareMem` allows an existing file-mapping object, created by [CreateFileMapping](/windows/win32/api/winbase/nf-winbase-createfilemappingw), to be shared between processes.
`MapShareMem` allows an existing file-mapping object, created by [CreateFileMapping](/windows/win32/api/winbase/nf-winbase-createfilemappinga), to be shared between processes.

## <a name="openmapping"></a> CAtlFileMappingBase::OpenMapping

Expand Down
2 changes: 1 addition & 1 deletion docs/atl/reference/ccomcurrency-class.md
Original file line number Diff line number Diff line change
Expand Up @@ -625,5 +625,5 @@ Returns S_OK on success, or an error HRESULT on failure.
## See also

[COleCurrency Class](../../mfc/reference/colecurrency-class.md)<br/>
[CURRENCY](/windows/win32/api/wtypes/ns-wtypes-cy)<br/>
[CURRENCY](/windows/win32/api/wtypes/ns-wtypes-cy~r1)<br/>
[Class Overview](../../atl/atl-class-overview.md)
4 changes: 2 additions & 2 deletions docs/atl/reference/ccomsafearray-class.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ The type of data to be stored in the array.

## Remarks

`CComSafeArray` provides a wrapper for the [SAFEARRAY Data Type](/windows/win32/api/oaidl/ns-oaidl-tagsafearray) class, making it a simple matter to create and manage single- and multidimensional arrays of almost any of the VARIANT-supported types.
`CComSafeArray` provides a wrapper for the [SAFEARRAY Data Type](/windows/win32/api/oaidl/ns-oaidl-safearray) class, making it a simple matter to create and manage single- and multidimensional arrays of almost any of the VARIANT-supported types.

`CComSafeArray` simplifies passing arrays between processes, and in addition provides extra security by checking array index values against upper and lower bounds.

Expand Down Expand Up @@ -632,7 +632,7 @@ The *bCopy* flag is taken into account when elements of type BSTR or VARIANT are

## See also

[SAFEARRAY Data Type](/windows/win32/api/oaidl/ns-oaidl-tagsafearray)<br/>
[SAFEARRAY Data Type](/windows/win32/api/oaidl/ns-oaidl-safearray)<br/>
[CComSafeArray::Create](#create)<br/>
[CComSafeArray::Destroy](#destroy)<br/>
[Class Overview](../../atl/atl-class-overview.md)
2 changes: 1 addition & 1 deletion docs/atl/reference/ccomsafearraybound-class.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ ms.assetid: dd6299db-5f84-4630-bbf0-f5add5318437
---
# CComSafeArrayBound Class

This class is a wrapper for a [SAFEARRAYBOUND](/windows/win32/api/oaidl/ns-oaidl-tagsafearraybound) structure.
This class is a wrapper for a [SAFEARRAYBOUND](/windows/win32/api/oaidl/ns-oaidl-safearraybound) structure.

## Syntax

Expand Down
2 changes: 1 addition & 1 deletion docs/atl/reference/idataobjectimpl-class.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ Your class, derived from `IDataObjectImpl`.

## Remarks

The [IDataObject](/windows/win32/api/objidl/nn-objidl-idataobject) interface provides methods to support Uniform Data Transfer. `IDataObject` uses the standard format structures [FORMATETC](/windows/win32/api/objidl/ns-objidl-formatetc) and [STGMEDIUM](/windows/win32/api/objidl/ns-objidl-stgmedium) to retrieve and store data.
The [IDataObject](/windows/win32/api/objidl/nn-objidl-idataobject) interface provides methods to support Uniform Data Transfer. `IDataObject` uses the standard format structures [FORMATETC](/windows/win32/api/objidl/ns-objidl-formatetc) and [STGMEDIUM](/windows/win32/api/objidl/ns-objidl-ustgmedium~r1) to retrieve and store data.

`IDataObject` also manages connections to advise sinks to handle data change notifications. In order for the client to receive data change notifications from the data object, the client must implement the [IAdviseSink](/windows/win32/api/objidl/nn-objidl-iadvisesink) interface on an object called an advise sink. When the client then calls `IDataObject::DAdvise`, a connection is established between the data object and the advise sink.

Expand Down
2 changes: 1 addition & 1 deletion docs/atl/reference/u-stringorid-class.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ class _U_STRINGorID

## Remarks

This class is designed for implementing wrappers to the Windows resource management API such as the [FindResource](/windows/win32/api/winbase/nf-winbase-findresourcew), [LoadIcon](/windows/win32/api/winuser/nf-winuser-loadiconw), and [LoadMenu](/windows/win32/api/winuser/nf-winuser-loadmenuw) functions, which accept an LPCTSTR argument that may be either the name of a resource or its ID.
This class is designed for implementing wrappers to the Windows resource management API such as the [FindResource](/windows/win32/api/winbase/nf-winbase-findresourcea), [LoadIcon](/windows/win32/api/winuser/nf-winuser-loadiconw), and [LoadMenu](/windows/win32/api/winuser/nf-winuser-loadmenuw) functions, which accept an LPCTSTR argument that may be either the name of a resource or its ID.

The class defines two constructor overloads: one accepts a LPCTSTR argument and the other accepts a UINT argument. The UINT argument is converted to a resource type compatible with Windows resource-management functions using the MAKEINTRESOURCE macro and the result stored in the class's single data member, [m_lpstr](#_u_stringorid__m_lpstr). The argument to the LPCTSTR constructor is stored directly without conversion.

Expand Down
4 changes: 2 additions & 2 deletions docs/build/reference/zc-inline-remove-unreferenced-comdat.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
title: "/Zc:inline (Remove unreferenced COMDAT)"
ms.date: "03/01/2018"
ms.date: "09/05/2019"
f1_keywords: ["/Zc:inline", "VC.Project.VCCLCompilerTool.RemoveUnreferencedCodeData"]
helpviewer_keywords: ["-Zc compiler options (C++)", "/Zc compiler options (C++)", "Zc compiler options (C++)", "/Zc:inline"]
ms.assetid: a4c94224-1d73-4bea-a9d5-4fa73dc924df
Expand All @@ -17,7 +17,7 @@ Removes unreferenced functions or data that are COMDATs or only have internal li

When **/Zc:inline** is specified, the compiler does not emit symbol information for unreferenced COMDAT functions or data, or for functions or data that have internal linkage only. This optimization simplifies some of the work performed by the linker in release builds or when the linker option [/OPT:REF](opt-optimizations.md) is specified. When the compiler performs this optimization, it can significantly reduce .obj file size and improve linker speeds. This compiler option is not enabled when optimizations are disabled ([/Od](od-disable-debug.md)) or when [/GL (Whole Program Optimization)](gl-whole-program-optimization.md) is specified.

By default, this option is off (**/Zc:inline-**). The [/permissive-](permissive-standards-conformance.md) option does not enable **/Zc:inline**.
By default, this option is off (**/Zc:inline-**) in command-line builds. The [/permissive-](permissive-standards-conformance.md) option does not enable **/Zc:inline**. In MSBuild projects, the option is set by the **Configuration Properties** > **C/C++** > **Language** > **Remove unreferenced code and data** property, which is set to **Yes** by default.

If **/Zc:inline** is specified, the compiler enforces the C++11 requirement that all functions declared `inline` must have a definition available in the same translation unit if they are used. When the option is not specified, the Microsoft compiler allows non-conformant code that invokes functions declared `inline` even if no definition is visible. For more information, see the C++11 standard, in section 3.2 and section 7.1.2. This compiler option was introduced in Visual Studio 2013 Update 2.

Expand Down
2 changes: 1 addition & 1 deletion docs/c-runtime-library/file-handling.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ The following Win32 functions also open files and pipes:

- [CreatePipe](/windows/win32/api/namedpipeapi/nf-namedpipeapi-createpipe)

- [CreateNamedPipe](/windows/win32/api/winbase/nf-winbase-createnamedpipew)
- [CreateNamedPipe](/windows/win32/api/winbase/nf-winbase-createnamedpipea)

## See also

Expand Down
2 changes: 1 addition & 1 deletion docs/c-runtime-library/robustness.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@ Use the following C run-time library functions to improve the robustness of your
## See also

[Universal C runtime routines by category](../c-runtime-library/run-time-routines-by-category.md)<br/>
[SetUnhandledExceptionFilter](/win32/api/errhandlingapi/nf-errhandlingapi-setunhandledexceptionfilter)<br/>
[SetUnhandledExceptionFilter](/windows/win32/api/errhandlingapi/nf-errhandlingapi-setunhandledexceptionfilter)<br/>
2 changes: 1 addition & 1 deletion docs/cppcx/array-and-writeonlyarray-c-cx.md
Original file line number Diff line number Diff line change
Expand Up @@ -87,5 +87,5 @@ In general, you should avoid exposing a `Platform::Array` type as a property in
## See also

[Type System](../cppcx/type-system-c-cx.md)<br/>
[Visual C++ Language Reference](../cppcx/visual-c-language-reference-c-cx.md)<br/>
[C++/CX Language Reference](../cppcx/visual-c-language-reference-c-cx.md)<br/>
[Namespaces Reference](../cppcx/namespaces-reference-c-cx.md)
2 changes: 1 addition & 1 deletion docs/cppcx/attributes-c-cx.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,5 +40,5 @@ The next example shows how to define a custom attribute and then initialize it w
## See also

[Type System (C++/CX)](../cppcx/type-system-c-cx.md)<br/>
[Visual C++ Language Reference](../cppcx/visual-c-language-reference-c-cx.md)<br/>
[C++/CX Language Reference](../cppcx/visual-c-language-reference-c-cx.md)<br/>
[Namespaces Reference](../cppcx/namespaces-reference-c-cx.md)
2 changes: 1 addition & 1 deletion docs/cppcx/boxing-c-cx.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,5 +34,5 @@ In a C# XAML client, you can consume it like this:

[Type System (C++/CX)](../cppcx/type-system-c-cx.md)<br/>
[Casting (C++/CX)](../cppcx/casting-c-cx.md)<br/>
[Visual C++ Language Reference](../cppcx/visual-c-language-reference-c-cx.md)<br/>
[C++/CX Language Reference](../cppcx/visual-c-language-reference-c-cx.md)<br/>
[Namespaces Reference](../cppcx/namespaces-reference-c-cx.md)
3 changes: 2 additions & 1 deletion docs/cppcx/building-apps-and-libraries-c-cx.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,5 @@ The topics in this section provide a few details about using the build system to

- [DLLs](../cppcx/dlls-c-cx.md)

Note: Visual C++ does not support profile guided optimizations for Universal Windows Platform. If you attempt to build a project with these options set in the IDE, a build error will result. Console applications are also not supported.
>[!NOTE]
>Visual Studio does not support profile guided optimizations for Universal Windows Platform. If you attempt to build a project with these options set in the IDE, a build error will result. Console applications are also not supported.
4 changes: 2 additions & 2 deletions docs/cppcx/casting-c-cx.md
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ ComPtr<IInspectable> inspectable = reinterpret_cast<IInspectable*>(winRtObject);
// ...
```

If you use **reinterpret_cast** to convert from oneWindows Runtime interface to another, you cause the object to be released twice. Therefore, only use this cast when you are converting to a non-Visual C++ component extensions interface.
If you use **reinterpret_cast** to convert from oneWindows Runtime interface to another, you cause the object to be released twice. Therefore, only use this cast when you are converting to a non-C++ component extensions interface.

## ABI types

Expand Down Expand Up @@ -116,5 +116,5 @@ The following table summarizes the cases in which it is safe to use **reinterpre
## See also

- [Type System](../cppcx/type-system-c-cx.md)
- [Visual C++ Language Reference](../cppcx/visual-c-language-reference-c-cx.md)
- [C++/CX Language Reference](../cppcx/visual-c-language-reference-c-cx.md)
- [Namespaces Reference](../cppcx/namespaces-reference-c-cx.md)
2 changes: 1 addition & 1 deletion docs/cppcx/clr-integration-c-cx.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ The following lists show value structs that support new constructors and helper

## Mapping the CLR to C++/CX

When the Visual C++ or C# compilers read a .winmd file, they automatically map certain types in the metadata file to appropriate C++/CX or CLR types. For example, in the CLR, the IVector\<T> interface is mapped to IList\<T>. But in C++/CX, the IVector\<T> interface is not mapped to another type.
When the Microsoft C++ or C# compilers read a .winmd file, they automatically map certain types in the metadata file to appropriate C++/CX or CLR types. For example, in the CLR, the IVector\<T> interface is mapped to IList\<T>. But in C++/CX, the IVector\<T> interface is not mapped to another type.

IReference\<T> in the Windows Runtime maps to Nullable\<T> in .NET.

Expand Down
2 changes: 1 addition & 1 deletion docs/cppcx/collections-c-cx.md
Original file line number Diff line number Diff line change
Expand Up @@ -140,5 +140,5 @@ The [Windows::Foundation::Collections::VectorChangedEventHandler](/uwp/api/windo
## See also

[Type System](../cppcx/type-system-c-cx.md)<br/>
[Visual C++ Language Reference](../cppcx/visual-c-language-reference-c-cx.md)<br/>
[C++/CX Language Reference](../cppcx/visual-c-language-reference-c-cx.md)<br/>
[Namespaces Reference](../cppcx/namespaces-reference-c-cx.md)
2 changes: 1 addition & 1 deletion docs/cppcx/default-namespace.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,4 +46,4 @@ All built-in types inherit the following members.

## See also

[Visual C++ Language Reference](../cppcx/visual-c-language-reference-c-cx.md)
[C++/CX Language Reference](../cppcx/visual-c-language-reference-c-cx.md)
2 changes: 1 addition & 1 deletion docs/cppcx/delegates-c-cx.md
Original file line number Diff line number Diff line change
Expand Up @@ -127,5 +127,5 @@ If you are familiar with event handlers in .NET, you know that the recommended p
## See also

[Type System](../cppcx/type-system-c-cx.md)<br/>
[Visual C++ Language Reference](../cppcx/visual-c-language-reference-c-cx.md)<br/>
[C++/CX Language Reference](../cppcx/visual-c-language-reference-c-cx.md)<br/>
[Namespaces Reference](../cppcx/namespaces-reference-c-cx.md)
2 changes: 1 addition & 1 deletion docs/cppcx/deprecating-types-and-members-c-cx.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,5 +51,5 @@ The following table lists the constructs to which the Deprecated attribute may b
## See also

[Type System](../cppcx/type-system-c-cx.md)<br/>
[Visual C++ Language Reference](../cppcx/visual-c-language-reference-c-cx.md)<br/>
[C++/CX Language Reference](../cppcx/visual-c-language-reference-c-cx.md)<br/>
[Namespaces Reference](../cppcx/namespaces-reference-c-cx.md)
2 changes: 1 addition & 1 deletion docs/cppcx/dlls-c-cx.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ For more information, see [Creating Windows Runtime Components in C++](/windows/

1. Open the shortcut menu for the project that will use the DLL and then choose **Properties**. On the **Common Properties** page, choose the **Add New Reference** button.

1. A Windows Runtime component consists of a DLL file and a .winmd file that contains the metadata. Typically, these files are located in the same folder. In the left pane of the **Add Reference** dialog box, choose the **Browse** button and then navigate to the location of the DLL and its .winmd file. For more information, see [Extension SDKs](/visualstudio/extensibility/creating-a-software-development-kit#ExtensionSDKs).
1. A Windows Runtime component consists of a DLL file and a .winmd file that contains the metadata. Typically, these files are located in the same folder. In the left pane of the **Add Reference** dialog box, choose the **Browse** button and then navigate to the location of the DLL and its .winmd file. For more information, see [Extension SDKs](/visualstudio/extensibility/creating-a-software-development-kit#extension-sdks).

## Standard DLLs

Expand Down
2 changes: 1 addition & 1 deletion docs/cppcx/enums-c-cx.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,5 +34,5 @@ The next example shows how to cast to numeric equivalents, and perform compariso
## See also

[Type System](../cppcx/type-system-c-cx.md)<br/>
[Visual C++ Language Reference](../cppcx/visual-c-language-reference-c-cx.md)<br/>
[C++/CX Language Reference](../cppcx/visual-c-language-reference-c-cx.md)<br/>
[Namespaces Reference](../cppcx/namespaces-reference-c-cx.md)
2 changes: 1 addition & 1 deletion docs/cppcx/events-c-cx.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,5 +56,5 @@ The order in which the event source invokes event handlers on event receivers is

[Type System](../cppcx/type-system-c-cx.md)<br/>
[Delegates](../cppcx/delegates-c-cx.md)<br/>
[Visual C++ Language Reference](../cppcx/visual-c-language-reference-c-cx.md)<br/>
[C++/CX Language Reference](../cppcx/visual-c-language-reference-c-cx.md)<br/>
[Namespaces Reference](../cppcx/namespaces-reference-c-cx.md)
2 changes: 1 addition & 1 deletion docs/cppcx/exceptions-c-cx.md
Original file line number Diff line number Diff line change
Expand Up @@ -97,5 +97,5 @@ C++/CX does not use the `finally` clause.

## See also

[Visual C++ Language Reference](visual-c-language-reference-c-cx.md)<br/>
[C++/CX Language Reference](visual-c-language-reference-c-cx.md)<br/>
[Namespaces Reference](namespaces-reference-c-cx.md)
2 changes: 1 addition & 1 deletion docs/cppcx/interfaces-c-cx.md
Original file line number Diff line number Diff line change
Expand Up @@ -92,5 +92,5 @@ Here's how Windows Runtime types can be used to author a generic interface:
## See also

[Type System](../cppcx/type-system-c-cx.md)<br/>
[Visual C++ Language Reference](../cppcx/visual-c-language-reference-c-cx.md)<br/>
[C++/CX Language Reference](../cppcx/visual-c-language-reference-c-cx.md)<br/>
[Namespaces Reference](../cppcx/namespaces-reference-c-cx.md)
2 changes: 1 addition & 1 deletion docs/cppcx/interoperating-with-other-languages-c-cx.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@ This part of the documentation describes how to use C++/CX to author Windows Run

- [WRL integration](../cppcx/wrl-integration-c-cx.md)

- [Visual C++ Language Reference](../cppcx/visual-c-language-reference-c-cx.md)
- [C++/CX Language Reference](../cppcx/visual-c-language-reference-c-cx.md)
Loading