C/C++ Plugin Development, how to attach issues to header files?

I am working on the Sonargraph integration plugin and want to add C/C++ as a supported language. I am able to run an analysis and add issues to source files, but the FileSystem.inputFile method fails for header files:

InputFile inputPath = sqFileSystem.inputFile(

sourceFileLocation is a String that contains an absolute path. It works with cpp Files, but it always returns null when passing a .h File as parameter. What is the correct way to do that?

Looks like i was able to fix it myself. I had to add the include directory to sonar.sources

1 Like