Skip to content

Commit 3e4b1f5

Browse files
authored
Merge pull request #3847 from corob-msft/docs/corob/3449
Address 3449 typo in /analyze
2 parents ab584bd + de8c222 commit 3e4b1f5

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

docs/build/reference/analyze-code-analysis.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: "/analyze (Code analysis)"
33
description: "The Microsoft C++ compiler /analyze option syntax and usage."
4-
ms.date: 05/21/2021
4+
ms.date: 10/19/2021
55
f1_keywords: ["VC.Project.VCCLCompilerTool.EnablePREfast", "/analyze", "VC.Project.VCCLCompilerTool.PREfastAdditionalOptions", "VC.Project.VCCLCompilerTool.PREfastAdditionalPlugins"]
66
helpviewer_keywords: ["/analyze compiler option [C++]", "-analyze compiler option [C++]", "analyze compiler option [C++]"]
77
ms.assetid: 81da536a-e030-4bd4-be18-383927597d08
@@ -73,7 +73,7 @@ Ruleset options:
7373
**`/analyze`**\[**`-`**]\
7474
Turns on code analysis. Use **`/analyze-`** to explicitly turn off analysis. **`/analyze-`** is the default behavior.
7575

76-
By default, analysis output goes to the console or the Visual Studio Output window like other error messages. Code analysis also creates a log file named *`filename.nativeanalysis.xml`*, where *`filename`* is the name of the analyzed source file.
76+
By default, analysis output goes to the console or the Visual Studio Output window like other error messages. Code analysis also creates a log file named *`filename.nativecodeanalysis.xml`*, where *`filename`* is the name of the analyzed source file.
7777

7878
**`/analyze:only`**\
7979
By default, the compiler compiles the code to generate object files before code analysis runs. The **`/analyze:only`** option makes the compiler skip the code generation pass, and does code analysis directly. Compiler errors still prevent code analysis from running. However, the compiler won't report other warnings that it might find during the code generation pass. If the program isn't free of code-generation warnings, analysis results might be unreliable. We recommend you use this option only if the code passes code-generation syntax checks without errors or warnings.

0 commit comments

Comments
 (0)