diff --git a/src/clang_format.cc b/src/clang_format.cc index 5fa1410c..82a74ead 100644 --- a/src/clang_format.cc +++ b/src/clang_format.cc @@ -44,7 +44,7 @@ std::vector ClangFormatDocument( } auto format_result = reformat( - *style, working_file->buffer_content, + style ? *style : predefined_style, working_file->buffer_content, llvm::ArrayRef(tooling::Range(start, end - start)), working_file->filename); return std::vector(format_result.begin(),