add flags to customize clang handling

Added two flags as requested. Unfortunately, it wasn't clear to me how to add tests for these global flags.