Skip to content

Commit b71002c

Browse files
committed
added clang-format file
1 parent ed8f475 commit b71002c

3 files changed

Lines changed: 14 additions & 2 deletions

File tree

.clang-format

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
---
2+
BasedOnStyle: Google
3+
IndentWidth: 4
4+
---
5+
Language: Cpp
6+
ColumnLimit: 120
7+
CompactNamespaces: false
8+
AlignAfterOpenBracket: Align
9+
AccessModifierOffset: -2
10+
BinPackArguments: false
11+
BinPackParameters: false

.devcontainer/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ RUN apt-get update \
2727
&& apt-get -y install git openssh-client vim iproute2 procps lsb-release \
2828
#
2929
# Install C++ tools
30-
&& apt-get -y install build-essential cmake cppcheck valgrind \
30+
&& apt-get -y install build-essential cmake cppcheck valgrind clang-format \
3131
#
3232
# temporary addition of the rosserial install to verify items
3333
&& apt-get install -y ros-melodic-rosserial \

.devcontainer/devcontainer.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
"extensions": [
3030
"ms-vscode.cpptools",
3131
"ms-iot.vscode-ros",
32-
"ms-azuretools.vscode-docker"
32+
"ms-azuretools.vscode-docker",
33+
"xaver.clang-format"
3334
]
3435
}

0 commit comments

Comments
 (0)