Skip to content

Commit d7aaa86

Browse files
committed
one more example
1 parent 620bca6 commit d7aaa86

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

docs/build/reference/experimental-log.md

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,18 +37,24 @@ Diagnostics are also output as text to the console as usual.
3737
1. Select the **Configuration Properties** > **C/C++** > **Command Line** property page.
3838
1. Modify the **Additional Options** property, and then choose **OK**.
3939

40-
## Example
40+
## Examples
4141

4242
The following command produces SARIF information for the compilation of `main.cpp` and saves it in the file `main.sarif`:
4343

4444
```cmd
45-
CL /experimental:log main.cpp
45+
cl /experimental:log main.cpp
46+
```
47+
48+
The following command produces SARIF information for the compilation of `main.cpp` and saves it in the file `mySarifInfo.sarif`:
49+
50+
```cmd
51+
cl /experimental:log mySarifInfo main.cpp
4652
```
4753

4854
The following command produces SARIF information for the entire compilation and saves it in the `sarif_output` directory in the files `main.sarif` and `other.sarif`:
4955

5056
```cmd
51-
CL /experimental:log sarif_output\ main.cpp other.cpp
57+
cl /experimental:log sarif_output\ main.cpp other.cpp
5258
```
5359

5460
## See also

0 commit comments

Comments
 (0)