moved clang switch into core