Skip to content

Commit 13d2c4a

Browse files
authored
Merge pull request #6018 from TylerMSFT/UAT
test uat tool
2 parents 28417e5 + 9534150 commit 13d2c4a

File tree

4 files changed

+47
-52
lines changed

4 files changed

+47
-52
lines changed

docs/assembler/masm/dot-fpo.md

Lines changed: 13 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -4,35 +4,34 @@ title: ".FPO"
44
ms.date: "11/05/2019"
55
f1_keywords: [".FPO"]
66
helpviewer_keywords: [".FPO directive"]
7-
ms.assetid: 35f4cd61-32f9-4262-b657-73f04f775d09
87
---
98
# .FPO (32-bit MASM)
109

11-
The **.FPO** directive controls the emission of debug records to the .debug$F segment or section. (32-bit MASM only.)
10+
The `.FPO` directive controls the emission of debug records to the `.debug$F` segment or section. Use this directive with 32-bit MASM only.
1211

1312
## Syntax
1413

15-
> **.FPO** (*cdwLocals*, *cdwParams*, *cbProlog*, *cbRegs*, *fUseBP*, *cbFrame*)
14+
> `.FPO` (*`cdwLocals`*, *`cdwParams`*, *`cbProlog`*, *`cbRegs`*, *`fUseBP`*, *`cbFrame`*)
1615
1716
### Parameters
1817

19-
*cdwLocals*\
20-
Number of local variables, an unsigned 32 bit value.
18+
*`cdwLocals`*\
19+
Number of local variables, an unsigned 32-bit value.
2120

22-
*cdwParams*\
23-
Size of the parameters in DWORDS, an unsigned 16 bit value.
21+
*`cdwParams`*\
22+
Size of the parameters in DWORDS, an unsigned 16-bit value.
2423

25-
*cbProlog*\
26-
Number of bytes in the function prolog code, an unsigned 8 bit value.
24+
*`cbProlog`*\
25+
Number of bytes in the function prolog code, an unsigned 8-bit value.
2726

28-
*cbRegs*\
27+
*`cbRegs`*\
2928
Number registers saved.
3029

31-
*fUseBP*\
32-
Indicates whether the EBP register has been allocated. either 0 or 1.
30+
*`fUseBP`*\
31+
Indicates whether the EBP register is allocated. Use either 0 or 1.
3332

34-
*cbFrame*\
35-
Indicates the frame type. See [FPO_DATA](/windows/win32/api/winnt/ns-winnt-fpo_data) for more information.
33+
*`cbFrame`*\
34+
Indicates the frame type. For more information, see [`FPO_DATA`](/windows/win32/api/winnt/ns-winnt-fpo_data).
3635

3736
## See also
3837

docs/build/reference/choosing-the-format-of-netmodule-input-files.md

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2,32 +2,31 @@
22
description: "Learn more about: Choosing the Format of .netmodule Input Files"
33
title: "Choosing the Format of .netmodule Input Files"
44
ms.date: "11/04/2016"
5-
ms.assetid: 4653d1bd-300f-4083-86f5-d1a06f44e61c
65
---
7-
# Choosing the Format of .netmodule Input Files
6+
# Choosing the format of .netmodule input files
87

9-
An MSIL .obj file (compiled with [/clr](clr-common-language-runtime-compilation.md)) can also be used as a .netmodule file. .obj files contain metadata and native symbols. .netmodules only contain metadata.
8+
You can use an MSIL `.obj` file (compiled with [`/clr`](clr-common-language-runtime-compilation.md)) as a `.netmodule` file. `.obj` files contain metadata and native symbols. `.netmodules` only contain metadata.
109

11-
You can pass an MSIL .obj file to any other Visual Studio compiler via the /addmodule compiler option (but be aware that the .obj file becomes part of the resulting assembly and must be shipped with the assembly). For example, Visual C# and Visual Basic have the /addmodule compiler option.
10+
Pass an MSIL `.obj` file to any other Visual Studio compiler with the `/addmodule` compiler option. The `.obj` file becomes part of the resulting assembly and must be shipped with the assembly. For example, Visual C# and Visual Basic have the `/addmodule` compiler option.
1211

1312
> [!NOTE]
14-
> In most cases, you will need to pass to the linker the .obj file from the compilation that created the .net module. Passing a .dll or .netmodule MSIL module file to the linker may result in LNK1107.
13+
> In most cases, you need to pass to the linker the `.obj` file from the compilation that created the .net module. Passing a `.dll` or `.netmodule` MSIL module file to the linker might result in LNK1107.
1514
16-
.obj files, along with their associated .h files, which you reference via #include in source, allow C++ applications to consume the native types in the module, whereas in a .netmodule file, only the managed types can be consumed by a C++ application. If you attempt to pass a .obj file to #using, information about native types will not be available; #include the .obj file's .h file instead.
15+
`.obj` files, along with their associated `.h` files, which you reference via #include in source, allow C++ applications to consume the native types in the module. In a `.netmodule` file, only the managed types can be consumed by a C++ application. If you attempt to pass a `.obj` file to #using, information about native types isn't available. Instead, #include the `.obj` file's `.h` file.
1716

1817
Other Visual Studio compilers can only consume managed types from a module.
1918

20-
Use the following to determine whether you need to use a .netmodule or a .obj file as module input to the MSVC linker:
19+
Use the following guidance to determine whether you need to use a `.netmodule` or a `.obj` file as module input to the MSVC linker:
2120

22-
- If you are building with a Visual Studio compiler other than Visual C++, produce a .netmodule and use the .netmodule as input to the linker.
21+
- If you're building with a Visual Studio compiler other than Visual C++, produce a `.netmodule` and use the `.netmodule` as input to the linker.
2322

24-
- If you are using the MSVC compiler to produce modules and if the module(s) will be used to build something other than a library, use the .obj files produced by the compiler as module input to the linker; do not use the .netmodule file as input.
23+
- If you're using the MSVC compiler to produce modules and if the modules are used to build something other than a library, use the `.obj` files produced by the compiler as module input to the linker. Don't use the `.netmodule` file as input.
2524

26-
- If your modules will be used to build a native (not a managed) library, use .obj files as module input to the linker and generate a .lib library file.
25+
- If your modules are used to build a native (not a managed) library, use `.obj` files as module input to the linker and generate a `.lib` library file.
2726

28-
- If your modules will be used to build a managed library, and if all module input to the linker will be verifiable (produced with /clr:safe), use .obj files as module input to the linker and generate a .dll (assembly) or .netmodule (module) library file.
27+
- If your modules are used to build a managed library, and if all module input to the linker is verifiable (produced with `/clr:safe`), use `.obj` files as module input to the linker and generate a `.dll` (assembly) or `.netmodule` (module) library file.
2928

30-
- If your modules will be used to build a managed library, and if one or more modules input to the linker will be produced with just /clr, use .obj files as module input to the linker and generate a .dll (assembly). If you want to expose managed types from the library and if you also want C++ applications to consume the native types in the library, your library will consist of the .obj files for the libraries component modules (you will also want to ship the .h files for each module, so they can be referenced with #include from source code).
29+
- If your modules are used to build a managed library, and if one or more modules input to the linker are produced with just `/clr`, use `.obj` files as module input to the linker and generate a `.dll` (assembly). If you want to expose managed types from the library and if you also want C++ applications to consume the native types in the library, your library consists of the `.obj` files for the libraries component modules. You also want to ship the `.h` files for each module, so they can be referenced with #include from source code.
3130

3231
## See also
3332

docs/build/reference/ln-create-msil-module.md

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,10 @@ title: "/LN (Create MSIL Module)"
44
ms.date: "11/04/2016"
55
f1_keywords: ["/LN"]
66
helpviewer_keywords: ["-LN compiler option [C++]", "/LN compiler option [C++]"]
7-
ms.assetid: 4f38f4f4-3176-4caf-8200-5c7585dc1ed3
87
---
98
# /LN (Create MSIL Module)
109

11-
Specifies that an assembly manifest should not be inserted into the output file.
10+
Specifies that the compiler shouldn't insert an assembly manifest into the output file.
1211

1312
## Syntax
1413

@@ -18,27 +17,27 @@ Specifies that an assembly manifest should not be inserted into the output file.
1817

1918
## Remarks
2019

21-
By default, **/LN** is not in effect (an assembly manifest is inserted into the output file).
20+
By default, `/LN` isn't in effect, and the compiler inserts an assembly manifest into the output file.
2221

23-
When **/LN** is used, one of the [/clr (Common Language Runtime Compilation)](clr-common-language-runtime-compilation.md) options must also be used.
22+
When you use `/LN`, you must also use one of the [/clr (Common Language Runtime Compilation)](clr-common-language-runtime-compilation.md) options.
2423

25-
A managed program that does not have an assembly metadata in the manifest is called a module. If you compile with [/c (Compile Without Linking)](c-compile-without-linking.md) and **/LN**, specify [/NOASSEMBLY (Create a MSIL Module)](noassembly-create-a-msil-module.md) in the linker phase to create the output file.
24+
A managed program that doesn't have assembly metadata in the manifest is called a module. If you compile with [/c (Compile Without Linking)](c-compile-without-linking.md) and `/LN`, specify [`/NOASSEMBLY `(Create a MSIL Module)](noassembly-create-a-msil-module.md) in the linker phase to create the output file.
2625

27-
You may want to create modules if you want to take a component-based approach to building assemblies. That is, you can author types and compile them into modules. Then, you can generate an assembly from one or more modules. For more information on creating assemblies from modules, see [.netmodule Files as Linker Input](netmodule-files-as-linker-input.md) or [Al.exe (Assembly Linker)](/dotnet/framework/tools/al-exe-assembly-linker).
26+
Create modules if you want to take a component-based approach to building assemblies. You can author types and compile them into modules. Then, you can generate an assembly from one or more modules. For more information on creating assemblies from modules, see [`.netmodule` Files as Linker Input](netmodule-files-as-linker-input.md) or [`Al.exe `(Assembly Linker)](/dotnet/framework/tools/al-exe-assembly-linker).
2827

29-
The default file extension for a module is .netmodule.
28+
The default file extension for a module is `.netmodule`.
3029

31-
In releases before Visual Studio 2005, a module was created with **/clr:noAssembly**.
30+
In releases before Visual Studio 2005, you created a module with `/clr:noAssembly`.
3231

33-
The MSVC linker accepts .netmodule files as input and the output file produced by the linker will be an assembly or .netmodule with no run-time dependence on any of the .netmodules that were input to the linker. For more information, see [.netmodule Files as Linker Input](netmodule-files-as-linker-input.md).
32+
The MSVC linker accepts `.netmodule` files as input. The output file produced by the linker is an assembly or `.netmodule` with no run-time dependence on any of the `.netmodule`s that you input to the linker. For more information, see [`.netmodule `Files as Linker Input](netmodule-files-as-linker-input.md).
3433

3534
### To set this compiler option in the Visual Studio development environment
3635

37-
- Specify [/NOASSEMBLY (Create a MSIL Module)](noassembly-create-a-msil-module.md) in the linker phase to create the output file.
36+
- Specify [`/NOASSEMBLY` (Create a MSIL Module)](noassembly-create-a-msil-module.md) in the linker phase to create the output file.
3837

3938
### To set this compiler option programmatically
4039

41-
- This compiler option cannot be changed programmatically.
40+
- You can't change this compiler option programmatically.
4241

4342
## See also
4443

docs/extensions/safe-cast-cpp-component-extensions.md

Lines changed: 13 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,10 @@ ms.date: "10/12/2018"
55
ms.topic: "reference"
66
f1_keywords: ["safe_cast", "safe_cast_cpp", "stdcli::language::safe_cast"]
77
helpviewer_keywords: ["safe_cast keyword [C++]"]
8-
ms.assetid: 4fa688bf-a8ec-49bc-a4c5-f48134efa4f7
98
---
109
# safe_cast (C++/CLI and C++/CX)
1110

12-
The **safe_cast** operation returns the specified expression as the specified type, if successful; otherwise, throws `InvalidCastException`.
11+
The **`safe_cast`** operation returns the specified expression as the specified type. If the operation isn't successful, it throws an `InvalidCastException`.
1312

1413
## All Runtimes
1514

@@ -23,7 +22,7 @@ The **safe_cast** operation returns the specified expression as the specified ty
2322

2423
## Windows Runtime
2524

26-
**safe_cast** allows you to change the type of a specified expression. In situations where you fully expect a variable or parameter to be convertible to a certain type, you can use **safe_cast** without a **try-catch** block to detect programming errors during development. For more information, see [Casting (C++/CX)](../cppcx/casting-c-cx.md).
25+
Use **`safe_cast`** to change the type of a specified expression. If you expect a variable or parameter to be convertible to a certain type, use **`safe_cast`** without a **try-catch** block to detect programming errors during development. For more information, see [Casting (C++/CX)](../cppcx/casting-c-cx.md).
2726

2827
### Syntax
2928

@@ -41,15 +40,15 @@ An expression that evaluates to a handle to a reference or value type, a value t
4140

4241
### Remarks
4342

44-
**safe_cast** throws `InvalidCastException` if it cannot convert *expression* to the type specified by *type-id*. To catch `InvalidCastException`, specify the [/EH (Exception Handling Model)](../build/reference/eh-exception-handling-model.md) compiler option, and use a **try/catch** statement.
43+
**`safe_cast`** throws `InvalidCastException` if it can't convert *expression* to the type specified by *type-id*. To catch `InvalidCastException`, specify the [/EH (Exception Handling Model)](../build/reference/eh-exception-handling-model.md) compiler option, and use a **try/catch** statement.
4544

4645
### Requirements
4746

4847
Compiler option: `/ZW`
4948

5049
### Examples
5150

52-
The following code example demonstrates how to use **safe_cast** with the Windows Runtime.
51+
The following code example demonstrates how to use **`safe_cast`** with the Windows Runtime.
5352

5453
```cpp
5554
// safe_cast_ZW.cpp
@@ -83,7 +82,7 @@ Caught expected exception: InvalidCastException
8382

8483
## Common Language Runtime
8584

86-
**safe_cast** allows you to change the type of an expression and generate verifiable MSIL code.
85+
**`safe_cast`** changes the type of an expression and generates verifiable MSIL code.
8786

8887
### Syntax
8988

@@ -93,30 +92,29 @@ Caught expected exception: InvalidCastException
9392

9493
### Parameters
9594

96-
*type-id*<br/>
95+
*`type-id`*\
9796
A handle to a reference or value type, a value type, or a tracking reference to a reference or value type.
9897

99-
*expression*<br/>
98+
*`expression`*
10099
An expression that evaluates to a handle to a reference or value type, a value type, or a tracking reference to a reference or value type.
101100

102101
### Remarks
103102

104103
The expression `safe_cast<`*type-id*`>(`*expression*`)` converts the operand *expression* to an object of type *type-id*.
105104

106-
The compiler will accept a [static_cast](../cpp/static-cast-operator.md) in most places that it will accept a **safe_cast**. However, **safe_cast** is guaranteed to produce verifiable MSIL, whereas a **`static_cast`** could produce unverifiable MSIL. See [Pure and Verifiable Code (C++/CLI)](../dotnet/pure-and-verifiable-code-cpp-cli.md) and [Peverify.exe (PEVerify Tool)](/dotnet/framework/tools/peverify-exe-peverify-tool) for more information on verifiable code.
105+
The compiler accepts a [`static_cast`](../cpp/static-cast-operator.md) in most places that it accepts a **`safe_cast`**. However, **`safe_cast`** always produces verifiable MSIL, whereas a **`static_cast`** might produce unverifiable MSIL. For more information on verifiable code, see [Pure and Verifiable Code (C++/CLI)](../dotnet/pure-and-verifiable-code-cpp-cli.md) and [`Peverify.exe` (PEVerify Tool)](/dotnet/framework/tools/peverify-exe-peverify-tool).
107106

108-
Like **`static_cast`**, **safe_cast** invokes user-defined conversions.
107+
Like **`static_cast`**, **`safe_cast`** invokes user-defined conversions.
109108

110109
For more information about casts, see [Casting Operators](../cpp/casting-operators.md).
111110

112-
**safe_cast** does not apply a **`const_cast`** (cast away **`const`**).
111+
**`safe_cast`** doesn't apply a **`const_cast`** (cast away **`const`**).
113112

114-
**safe_cast** is in the cli namespace. See [Platform, default, and cli Namespaces](platform-default-and-cli-namespaces-cpp-component-extensions.md) for more information.
113+
**`safe_cast`** is in the cli namespace. For more information, see [Platform, default, and cli Namespaces](platform-default-and-cli-namespaces-cpp-component-extensions.md).
115114

116-
For more information on **safe_cast**, see:
115+
For more information on **`safe_cast`**, see:
117116

118117
- [C-Style Casts with /clr (C++/CLI)](c-style-casts-with-clr-cpp-cli.md)
119-
120118
- [How to: Use safe_cast in C++/CLI](../dotnet/how-to-use-safe-cast-in-cpp-cli.md)
121119

122120
### Requirements
@@ -125,7 +123,7 @@ Compiler option: `/clr`
125123

126124
### Examples
127125

128-
One example of where the compiler will not accept a **`static_cast`** but will accept a **safe_cast** is for casts between unrelated interface types. With **safe_cast**, the compiler will not issue a conversion error and will perform a check at runtime to see if the cast is possible
126+
One example of where the compiler doesn't accept a **`static_cast`** but accepts a **`safe_cast`** is for casts between unrelated interface types. With **`safe_cast`**, the compiler doesn't issue a conversion error and performs a check at runtime to see if the cast is possible.
129127

130128
```cpp
131129
// safe_cast.cpp

0 commit comments

Comments
 (0)