Remove trailing whitespace automatically for c, cpp, and js files.