Help with developing a custom plugin for c and c++

Since there is no open-source c++ plugin in SonarQube market. We intend to develop a c++ plugin. So this plugin is support c++ code scanning.

The project my senior written could output a text report. But it is just a command line program.We need to make it graphic. Our mentor think the best thing we can use is SonarQube. Just the question is how to connect SonarQube to the project. And I don’t know where to start