update CppPreferences