Skip to content

Commit 201b6a4

Browse files
author
mikeblome
committed
fixes per review
1 parent 049804b commit 201b6a4

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

docs/porting/ide-tools-for-upgrading-code.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,22 @@
11
---
22
title: "Visual Studio IDE tools for upgrading C++ code"
33
description: "The C++ code editor and code analysis tools in Visual Studio help you to modernize your C++ code base."
4-
ms.date: "11/06/2019"
4+
ms.date: "11/13/2019"
55
ms.topic: "conceptual"
66
---
77
# Visual Studio IDE tools for upgrading C++ code
88

99
Visual Studio helps you upgrade legacy C++ code with compiler options, code analysis warnings, and editor features such as Quick Fixes, Quick Info, and the enhanced scroll bar. The term "legacy code" refers to any of these categories:
1010

11-
1. Code that was formerly allowed by the Microsoft C++ compiler (MSVC) but never conformed to the C++ standard.
11+
- Code that was formerly allowed by the Microsoft C++ compiler (MSVC) but never conformed to the C++ standard.
1212

1313
To upgrade older non-conformant MSVC code, turn on the [/permissive-](../build/reference/permissive-standards-conformance.md) compiler option. All instances of non-conformant usages are underlined with red squiggles in the code editor. The error messages in the **Error List** window include a recommendation for how to fix the error. Click on the error code to go to its help page in the documentation. If fixing all the errors at once is impractical, you can upgrade non-conformant code in stages by turning on the **permissive-** option, fixing some errors, then turning the option off again. The code will compile with the new improvements, and you can go back and fix the remaining issues at a later time. See the [/permissive-](../build/reference/permissive-standards-conformance.md) page for examples of non-conformant MSVC code.
14-
1. Code that was permitted in an earlier version of the C++ standard but has been deprecated or removed in a later version.
14+
15+
- Code that was permitted in an earlier version of the C++ standard but has been deprecated or removed in a later version.
1516

1617
To upgrade to a newer language standard, set the [C++ Language Standard](../build/reference/std-specify-language-standard-version.md) option to the desired standard and fix any compile errors that are raised. In general, we recommend setting the language standard to [/std:c++17](../build/reference/std-specify-language-standard-version.md). The errors raised when upgrading to a newer standard are not related to the errors raised when using the **permissive-** option.
17-
1. Code that conforms to all versions of the standard but is no longer considered best practice in modern C++.
18+
19+
- Code that conforms to all versions of the standard but is no longer considered best practice in modern C++.
1820

1921
To identify code where changes are recommended, run [Code analysis](/visualstudio/code-quality/code-analysis-for-c-cpp-overview).
2022

0 commit comments

Comments
 (0)