support removing trailing whitespace in c/c++ mode