cpp-includes-graph README
Features
This extension is useful if you want to remove some unnecessary header dependencies from your sources (if they were already included in headers above)
As an example, if you have project with such structure:
folder
|- c.hpp
main.cpp
a.hpp
and files consist of:
main.cpp:
#include "a.hpp"
#include <iostream>
int main()
{
// ...
}
a.hpp:
#pragma once
#include "folder/c.hpp"
#include <iostream>
// ...
folder/c.hpp:
#pragma once
#include <iostream>
// ...
Then resulting dependency graph will look something like this:
So, you can delete #include <iostream> from a.hpp and main.cpp and the program will not have redundant dependencies:
Usage
- Open some source or header C++ file
- Press
Ctrl+Shift+P
- Type
Analyze C++ Includes
- Press
Enter
| |