Skip to content

Commit 1578755

Browse files
authored
Add InsertNewlineAtEOF: true to .clang-format (#4681)
This is a new option to always insert newlines when formatting C++ source files. This is new as of clang-format 16 which we always include. --- TYPE: NO_HISTORY DESC: Add InsertNewlineAtEOF: true to .clang-format
1 parent 6e17749 commit 1578755

File tree

96 files changed

+96
-95
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

96 files changed

+96
-95
lines changed

.clang-format

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ IndentCaseLabels: true
6464
IndentRequiresClause: true
6565
IndentWidth: 2
6666
IndentWrappedFunctionNames: false
67+
InsertNewlineAtEOF: true
6768
JavaScriptQuotes: Leave
6869
JavaScriptWrapImports: true
6970
KeepEmptyLinesAtTheStartOfBlocks: false

examples/c_api/query_condition_sparse.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -361,4 +361,4 @@ int main() {
361361
tiledb_ctx_free(&ctx);
362362

363363
return 0;
364-
}
364+
}

examples/cpp_api/query_condition_sparse.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -289,4 +289,4 @@ int main() {
289289
vfs.remove_dir(array_name);
290290

291291
return 0;
292-
}
292+
}

experimental/test/compile_experimental_main.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,4 +28,4 @@
2828

2929
int main() {
3030
return 0;
31-
}
31+
}

experimental/tiledb/common/dag/edge/test/unit_block_edge.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,4 +41,4 @@
4141
*/
4242
TEST_CASE("BlockEdge: Trivial test", "[block_edge]") {
4343
CHECK(true);
44-
}
44+
}

experimental/tiledb/common/dag/execution/test/unit_duffs.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,4 +31,4 @@
3131
#ifndef TILEDB_UNIT_DUFFS_H
3232
#define TILEDB_UNIT_DUFFS_H
3333
#include <test/support/tdb_catch.h>
34-
#endif // TILEDB_UNIT_DUFFS_H
34+
#endif // TILEDB_UNIT_DUFFS_H

experimental/tiledb/common/dag/nodes/test/unit_segmented_mimo_nodes.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1103,4 +1103,4 @@ TEMPLATE_TEST_CASE(
11031103

11041104
// Repeat one of the tests above but with stop token
11051105

1106-
#endif
1106+
#endif

test/regression/targets/sc-18836.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,4 +116,4 @@ TEST_CASE(
116116

117117
if (vfs.is_dir(array_name))
118118
vfs.remove_dir(array_name);
119-
}
119+
}

test/src/cpp-integration-query-condition.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2640,4 +2640,4 @@ TEST_CASE(
26402640
if (vfs.is_dir(array_name)) {
26412641
vfs.remove_dir(array_name);
26422642
}
2643-
}
2643+
}

test/src/test-capi-consolidation-plan.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -255,4 +255,4 @@ TEST_CASE_METHOD(
255255

256256
tiledb_consolidation_plan_free_json_str(&str);
257257
tiledb_consolidation_plan_free(&consolidation_plan);
258-
}
258+
}

0 commit comments

Comments
 (0)