group c++-mode-settings into cc-mode-initialize and add-hook it in c/c++-mode seperately.