clang-format and style refactoring on index/