Skip to content

Commit

Permalink
Add clang-format10 to docker container. Also fixed clang-format.
Browse files Browse the repository at this point in the history
Add clang-format10 to docker container. Also fixed clang-format.
  • Loading branch information
zhangwei217245 authored Oct 23, 2023
1 parent ef3efe6 commit 46b5c16
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
"ZhangYue.rust-mod-generator"
],
"settings": {
"C_Cpp.clang_format_path": "clang-format-11",
"C_Cpp.clang_format_path": "/home/project/software/clang-format-lint-action/clang-format/clang-format10",
"terminal.integrated.scrollback": 10000
}
}
Expand Down
5 changes: 5 additions & 0 deletions .docker/dev_base.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,11 @@ RUN echo 'source $HOME/.cargo/env' >> ~/.bashrc
ENV WORK_SPACE=/home/project
RUN mkdir -p $WORK_SPACE

# Install clang-format repo
RUN mkdir -p $WORK_SPACE/software
RUN cd $WORK_SPACE/software && git clone https://github.com/DoozyX/clang-format-lint-action.git
ENV CLANG_FORMAT_PATH=$WORK_SPACE/software/clang-format-lint-action/clang-format/clang-format10

# Clone the repositories
WORKDIR $WORK_SPACE/source
RUN git clone https://github.com/ofiwg/libfabric.git && \
Expand Down
8 changes: 4 additions & 4 deletions examples/llsm/llsm_aux/parallelReadTiff.c
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@ readTiffParallelBak(uint64_t x, uint64_t y, uint64_t z, const char *fileName, vo

int counter = 0;
while (!TIFFSetDirectory(tif, (uint64_t)dir) && counter < 3) {
printf("Thread %d: File \"%s\" Directory \"%"PRId64"\" failed to open. Try %d\n", w, fileName, dir,
counter + 1);
printf("Thread %d: File \"%s\" Directory \"%" PRId64 "\" failed to open. Try %d\n", w,
fileName, dir, counter + 1);
counter++;
}

Expand Down Expand Up @@ -345,8 +345,8 @@ readTiffParallel2DBak(uint64_t x, uint64_t y, uint64_t z, const char *fileName,

int counter = 0;
while (!TIFFSetDirectory(tif, (uint64_t)0) && counter < 3) {
printf("Thread %d: File \"%s\" Directory \"%"PRId64"\" failed to open. Try %d\n", w, fileName, dir,
counter + 1);
printf("Thread %d: File \"%s\" Directory \"%" PRId64 "\" failed to open. Try %d\n", w,
fileName, dir, counter + 1);
counter++;
}

Expand Down

0 comments on commit 46b5c16

Please sign in to comment.