Skip to content

Commit 4830834

Browse files
committed
Update .clang-format file
1 parent 97f4283 commit 4830834

File tree

2 files changed

+10
-8
lines changed

2 files changed

+10
-8
lines changed

.clang-format

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,16 +12,18 @@ AllowShortIfStatementsOnASingleLine: Never
1212
AlwaysBreakAfterReturnType: None
1313
AlwaysBreakBeforeMultilineStrings: true
1414
BinPackArguments: false
15+
BreakStringLiterals: false
1516
ColumnLimit: 100
1617
ContinuationIndentWidth: 4
18+
DerivePointerAlignment: false
1719
EmptyLineBeforeAccessModifier: LogicalBlock
1820
IndentWidth: 4
1921
IndentWrappedFunctionNames: true
2022
InsertTrailingCommas: Wrapped
2123
MaxEmptyLinesToKeep: 1
2224
NamespaceIndentation: All
2325
PointerAlignment: Left
24-
ReflowComments: true
26+
ReflowComments: false
2527
SeparateDefinitionBlocks: Always
2628
SpacesBeforeTrailingComments: 1
2729

src/main.cpp

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,15 @@ struct rerun::ComponentBatchAdapter<rerun::components::Position3D, std::vector<E
1313
static_assert(sizeof(components::Position3D) == sizeof(Eigen::Vector3f));
1414
static_assert(alignof(components::Position3D) <= alignof(Eigen::Vector3f));
1515

16-
ComponentBatch<components::Position3D> operator()(const std::vector<Eigen::Vector3f> &container
16+
ComponentBatch<components::Position3D> operator()(const std::vector<Eigen::Vector3f>& container
1717
) {
1818
return ComponentBatch<components::Position3D>::borrow(
19-
reinterpret_cast<const components::Position3D *>(container.data()),
19+
reinterpret_cast<const components::Position3D*>(container.data()),
2020
container.size()
2121
);
2222
}
2323

24-
ComponentBatch<components::Position3D> operator()(std::vector<Eigen::Vector3f> &&container) {
24+
ComponentBatch<components::Position3D> operator()(std::vector<Eigen::Vector3f>&& container) {
2525
throw std::runtime_error("Not implemented for temporaries");
2626
}
2727
};
@@ -35,21 +35,21 @@ struct rerun::ComponentBatchAdapter<rerun::components::Position3D, Eigen::Matrix
3535
);
3636
static_assert(alignof(components::Position3D) <= alignof(Eigen::MatrixX3f));
3737

38-
ComponentBatch<components::Position3D> operator()(const Eigen::MatrixX3f &matrix) {
38+
ComponentBatch<components::Position3D> operator()(const Eigen::MatrixX3f& matrix) {
3939
return ComponentBatch<components::Position3D>::borrow(
40-
reinterpret_cast<const components::Position3D *>(matrix.data()),
40+
reinterpret_cast<const components::Position3D*>(matrix.data()),
4141
matrix.rows()
4242
);
4343
}
4444

45-
ComponentBatch<components::Position3D> operator()(std::vector<Eigen::MatrixX3f> &&container) {
45+
ComponentBatch<components::Position3D> operator()(std::vector<Eigen::MatrixX3f>&& container) {
4646
throw std::runtime_error("Not implemented for temporaries");
4747
}
4848
};
4949

5050
std::vector<Eigen::Vector3f> generate_random_points_vector(int num_points) {
5151
std::vector<Eigen::Vector3f> points(num_points);
52-
for (auto &point : points) {
52+
for (auto& point : points) {
5353
point.setRandom();
5454
}
5555
return points;

0 commit comments

Comments
 (0)