Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/c-macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,15 +24,15 @@ jobs:
- name: Install
shell: bash
run: |
export VCPKG_VERSION=2025.01.13
brew install vcpkg
export VCPKG_VERSION=2025.02.14
git clone \
--depth 1 \
--branch $VCPKG_VERSION \
https://github.com/microsoft/vcpkg.git \
--single-branch \
"$HOME/vcpkg"
export VCPKG_ROOT="$HOME/vcpkg"
echo "$VCPKG_ROOT" >> $GITHUB_PATH
sh $VCPKG_ROOT/bootstrap-vcpkg.sh
echo "VCPKG_ROOT=$HOME/vcpkg" >> $GITHUB_ENV

Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/clang-format.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
---

name: clang-format style check

on: # yamllint disable-line rule:truthy
Expand All @@ -25,7 +24,9 @@ jobs:
wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key | sudo apt-key add -
sudo apt-add-repository "deb http://apt.llvm.org/jammy/ llvm-toolchain-jammy main"
sudo apt-get -y update
sudo apt-get -y install --no-install-recommends --no-install-suggests clang-format
sudo apt-get -y install --no-install-recommends --no-install-suggests clang-format-19
sudo update-alternatives --install /usr/bin/clang-format clang-format $(which clang-format-19) 100
sudo update-alternatives --set clang-format $(update-alternatives --list clang-format | grep clang-format-19)
# yamllint enable rule:line-length

- name: Check Tools
Expand Down
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,8 @@ ADD https://apt.llvm.org/llvm-snapshot.gpg.key llvm-snapshot.gpg.key
RUN apt-key add llvm-snapshot.gpg.key && \
apt-add-repository "deb https://apt.llvm.org/jammy/ llvm-toolchain-jammy main" && \
apt-get -y update && \
apt-get -y install --no-install-recommends --no-install-suggests clang-format && \
apt-get -y install --no-install-recommends --no-install-suggests clang-format-19 && \
update-alternatives --install /usr/bin/clang-format clang-format $(which clang-format-19) 100 && \
rm -rf /var/lib/apt/lists/*

ADD https://deb.nodesource.com/setup_22.x nodesource_setup.sh
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ COVERAGE_TOOL_OPTS=--config-file .lcovrc --ignore-errors empty --ignore-errors i

# C++ specific
SRC_DIR = src
FILES := $(shell find $(SRC_DIR) -name '*.cpp' -o -name '*.h' -o -name '*.hpp' -o -name '*.inl')
FILES := $(shell find $(SRC_DIR) -name '*.cpp' -o -name '*.c' -o -name '*.h' -o -name '*.hpp' -o -name '*.inl')

.MAIN: test
.PHONY: all clean dependencies help list test outdated
Expand Down
4 changes: 3 additions & 1 deletion src/lib/exercises/src/hackerrank/projecteuler/euler001.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,9 @@ unsigned long HACKERRANK_PROJECTEULER_gcd(unsigned long a, unsigned long b) {
}

// Function to find sum of Arithmetic Progression series
unsigned long HACKERRANK_PROJECTEULER_sum_of_arithmetic_progression(unsigned long n, unsigned long d) {
unsigned long
HACKERRANK_PROJECTEULER_sum_of_arithmetic_progression(unsigned long n,
unsigned long d) {
// Number of terms
n = n / d;
return n * (1 + n) * d / 2;
Expand Down