Fixed Clang output cleanup function.