Skip to content

Commit 46a5ac2

Browse files
TylerMSFTTylerMSFT
authored andcommitted
add a recommended workflow
1 parent 954cbe2 commit 46a5ac2

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

docs/ide/include-cleanup-overview.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,8 @@ int main()
107107

108108
The tool doesn't update the comments, but you can see that the code is now using `std::string` and `std::cout` directly. This code is no longer brittle because it doesn't depend on `myHeader.h` to include the other required headers.
109109

110+
If you want a more conservative approach to include cleanup, you can first add direct headers where indirect headers are used, and then go through and remove the unused includes.
111+
110112
In this brief overview, you've seen how include cleanup can help you remove unused headers, and add headers that were indirectly included. This helps you keep your code clean, potentially build faster, and reduces the brittleness of your code.
111113

112114
## See also

0 commit comments

Comments
 (0)