Convert to snake case

This commit is contained in:
Daniel Martín 2018-01-11 12:49:17 +01:00 committed by Jacob Dufault
parent cc1fbada4b
commit 903d517b0a

View File

@ -54,12 +54,12 @@ std::vector<tooling::Replacement> ClangFormatDocument(
TEST_SUITE("ClangFormat") { TEST_SUITE("ClangFormat") {
TEST_CASE("entireDocument") { TEST_CASE("entireDocument") {
const std::string sampleDocument = "int main() { int *i = 0; return 0; }"; const std::string sample_document = "int main() { int *i = 0; return 0; }";
WorkingFile* file = new WorkingFile("foo.cc", sampleDocument); WorkingFile* file = new WorkingFile("foo.cc", sample_document);
lsFormattingOptions formattingOptions; lsFormattingOptions formatting_options;
formattingOptions.insertSpaces = true; formatting_options.insertSpaces = true;
const auto replacements = const auto replacements = ClangFormatDocument(
ClangFormatDocument(file, 0, sampleDocument.size(), formattingOptions); file, 0, sample_document.size(), formatting_options);
// echo "int main() { int *i = 0; return 0; }" | clang-format // echo "int main() { int *i = 0; return 0; }" | clang-format
// -style=Chromium -output-replacements-xml // -style=Chromium -output-replacements-xml