clang autocomplete and error checking improvements