autocomplete c++ mode hooks fix