Added partially ported clang diagnostics