|RE: [cdt-dev] Trying to implement a scanner configuration discoveryprofile|
I've gotten a "per file" ScannerInfoCollector (attribute scope="file") to work at least. Looking at my code, I see I added a comment on "getCollectedScannerInfo()": "NOTE: not called so far..." :). My ScannerInfoCollector class implements IScannerInfoCollector3. The key part is the IScannerInfoCollector2 interface which has a createPathInfoObject() method that returns an object implementing the IDiscoveredPathManager.IDiscoveredPathInfo interface. For this object I implemented the IDiscoveredPathManager.IDiscoveredPathInfo2 interface instead. The IDiscoveredPathInfo2 has a getPathInfoMap() method which returns a map of IResource -> PathInfo (this object has the include path & preprocessor definitions). Whew. As far as I can tell none of the other methods in IDiscoveredPathInfo2 are called aside from getSerializable(). I implemented this originally in 4.x but it is still working in 5.0.2 and I think it still worked in 6.0 M4).
Hope this helps.
Back to the top