allow disabling of cpp indexing via an option