You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# `/scanDependencies` (List module dependencies in standard form)
11
11
12
-
This compiler option generates a JSON file that lists module and header-unit dependencies according to C++ Standard proposal [`P1689R3 Format for describing dependencies of source files`](https://wg21.link/P1689r3).
12
+
This compiler option generates a JSON file that lists module and header-unit dependencies according to C++ Standard proposal [`P1689R4 Format for describing dependencies of source files`](https://wg21.link/P1689r4).
13
13
14
14
The **`/scanDependencies`** compiler option identifies which modules and header units need to be compiled before you can compile the project that uses them. For instance, it lists `import <library>;` or `import "library";` as a header unit dependency, and `import name;` as a module dependency. The intent is to provide this information in a common format consumable by build tools such as CMake.
15
15
16
16
This command-line option is similar to [`/sourceDependencies-directives`](sourcedependencies-directives.md) and [`/sourceDependencies`](sourcedependencies.md), but differs in the following ways:
17
17
18
-
- The output uses the [`P1689R3`](https://wg21.link/P1689r3) schema, instead of the Microsoft-specific schema generated by **`/sourceDependencies-directives`**.
18
+
- The output uses the [`P1689R4`](https://wg21.link/P1689r4) schema, instead of the Microsoft-specific schema generated by **`/sourceDependencies-directives`**.
19
19
- Unlike **`/sourceDependencies`**, the compiler doesn't produce compiled output. Instead, the files are scanned for module directives. No compiled code, modules, or header units are produced.
20
20
- The output JSON file doesn't list imported modules and imported header units (*`.ifc`* files) because this option only scans the project files. There are no built modules or header units to list.
21
21
- Only directly imported modules or header units are listed. It doesn't list the dependencies of the imported modules or header units themselves.
@@ -49,7 +49,7 @@ When a non-fatal compiler error occurs, the dependency information still gets wr
49
49
50
50
All file paths appear as absolute paths in the output.
51
51
52
-
For details on the format and schema used in the output JSON file, see [`P1689R3`](https://wg21.link/P1689r3#_format) section 6.
52
+
For details on the format and schema used in the output JSON file, see [`P1689R4`](https://wg21.link/P1689r4#_format) section 6.
Copy file name to clipboardExpand all lines: docs/overview/what-s-new-for-visual-cpp-in-visual-studio.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -59,7 +59,7 @@ In Visual Studio 2022, when you start your app in the debugger, you can use the
59
59
60
60
- The Project menu in CMake projects has been streamlined and exposes options to "Delete Cache and Reconfigure" and "View Cache".
61
61
62
-
- Implemented the **`/scanDependencies`** compiler option to list C++20 module dependencies for CMake projects, as described in [P1689r3](https://wg21.link/P1689r3). It's a step towards support for building modules-based projects with CMake and we're working on completing this support in later releases.
62
+
- Implemented the **`/scanDependencies`** compiler option to list C++20 module dependencies for CMake projects, as described in [P1689R4](https://wg21.link/P1689r4). It's a step towards support for building modules-based projects with CMake and we're working on completing this support in later releases.
0 commit comments