mirror of
https://github.com/MaskRay/ccls.git
synced 2024-12-01 20:07:08 +00:00
Convert to snake case
This commit is contained in:
parent
cc1fbada4b
commit
903d517b0a
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user