While indexing files, we'll count how many are related to C/C++. We'll need to hardcode, in the scanner, a list of relevant extensions (c,cpp,h, ..).
We should not count files that get excluded from the indexing due to any type of exclusions.
Files are indexed in FileIndexer but we can access indexed files any time later by using InputComponentStore.
The number should be written in the scanner report. For that, we'll need to introduce a new field in the protobuf format (see scanner_report.proto), probably in the Metadata message or in a new message type.
To know if it's the CE that's running, we can probably use SonarRuntime.
In CE, when the scanner report says that there are unanalysed C/C++ files, we will now add a new analysis message.