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
Copy file name to clipboardExpand all lines: docs/ide/include-cleanup-messages.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -15,23 +15,23 @@ Starting with Visual Studio 17.7 preview 3, Visual Studio can clean up your `#in
15
15
16
16
This article describes the messages that you may see from the include cleanup feature. For more information about include cleanup, see [C/C++ include cleanup overview](include-cleanup-overview.md).
17
17
18
-
Include cleanup offers actions you can take via suggestions, warnings, or errors in the Error List window. You determine which based on settings in Visual Studio tools options. For more details, see [Config C/C++ include cleanup in Visual Studio](include-cleanup-config.md).
18
+
Include cleanup offers actions you can take via suggestions, warnings, or errors in the Error List window. The message is the same, but you can choose the specific form it takes based on settings in Visual Studio tools options. For more information, see [Config C/C++ include cleanup in Visual Studio](include-cleanup-config.md).
19
19
20
20
In the following screenshot of the Error List, include cleanup is configured to show unused headers with a warning:
21
21
22
22
:::image type="complex" source="media/include-cleanup-error-list.png" alt-text="A screenshot of the Error List window.":::
23
23
The dropdown filter is set to Build + IntelliSense. A warning is visible: VCIC002 - #include < iostream > isn't used in this file."
24
24
:::image-end:::
25
25
26
-
The following describes the messages that you may see from include cleanup:
26
+
These are the messages that you may see from include cleanup:
27
27
28
28
## `VCIC001`: Content from #include is used in this file and transitively included
29
29
30
-
This message means that you are using content from a header file that is included indirectly. For example, you may be directly including a header file and that header file may `#include <string>`. If you use `string` in your code, but don't actually `#include <string>` yourself, it will work as long as the other header file continues to indirectly include `<string>` for you. That's an undesirable situation and this message identifies that this is going on in your code. See [Direct vs indirect headers](include-cleanup-overview.md#direct-vs-indirect-headers) for more information.
30
+
This message means that you're using content from a header file that is included indirectly. For example, you may be directly including a header file and that header file may `#include <string>`. If you use `string` in your code, but don't actually `#include <string>` yourself, it works as long as the other header file continues to indirectly include `<string>` for you. This message identifies that this is going on in your code. See [Direct vs indirect headers](include-cleanup-overview.md#direct-vs-indirect-headers) for more information.
31
31
32
32
## `VCIC002`: #include is not used in this file
33
33
34
-
This indicates that the specified header file is not used in the current file. You can remove the `#include` directive.
34
+
This message indicates that the specified header file is not used in the current file. You can remove the `#include` directive.
0 commit comments