Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[cdt-dev] supporting 8.0.x and 8.1.x with legacy scanner discovery

I'd like your opinion on what would be the best way to deal with the
following issue.

The Android NDK plugin uses the pre 8.1.x style scanner discovery
mechanism. This works fine on 8.0.x or previous versions of CDT. With
8.1.0, this works if users explicitly disable the option 'Window ->
Preferences -> C/C++ -> Property Pages -> Display "preprocessor
include paths" tab and enable language settings providers'.

Ideally, I'd like to have:
 1. The plugin continue to work on 8.0.x and on 8.1.x
 2. Have the indexer work properly without having the user set some option.

I see that calling
ScannerDiscoveryLegacySupport.setLanguageSettingsProvidersFunctionalityEnabled(mProject,
false); will achieve what I want, except of course that class is not
available on older versions of CDT. All it does is set a flag, so I
can pull that code into the NDK plugin, but only as a last resort.

Is there a proper/better way of handling this?

Thanks,
Siva


Back to the top