From 903d517b0a220e530495fb064e44133d509cb280 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Mart=C3=ADn?= Date: Thu, 11 Jan 2018 12:49:17 +0100 Subject: [PATCH] Convert to snake case --- src/clang_format.cc | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/clang_format.cc b/src/clang_format.cc index e6e2ceb2..5bb238a8 100644 --- a/src/clang_format.cc +++ b/src/clang_format.cc @@ -54,12 +54,12 @@ std::vector ClangFormatDocument( TEST_SUITE("ClangFormat") { TEST_CASE("entireDocument") { - const std::string sampleDocument = "int main() { int *i = 0; return 0; }"; - WorkingFile* file = new WorkingFile("foo.cc", sampleDocument); - lsFormattingOptions formattingOptions; - formattingOptions.insertSpaces = true; - const auto replacements = - ClangFormatDocument(file, 0, sampleDocument.size(), formattingOptions); + const std::string sample_document = "int main() { int *i = 0; return 0; }"; + WorkingFile* file = new WorkingFile("foo.cc", sample_document); + lsFormattingOptions formatting_options; + formatting_options.insertSpaces = true; + const auto replacements = ClangFormatDocument( + file, 0, sample_document.size(), formatting_options); // echo "int main() { int *i = 0; return 0; }" | clang-format // -style=Chromium -output-replacements-xml