Skip to content

Commit

Permalink
Bump clang-format to 19.1.6 (#1677)
Browse files Browse the repository at this point in the history
  • Loading branch information
egecetin authored Jan 10, 2025
1 parent 6dd7c51 commit 78b629f
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build_and_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ jobs:
apk update && apk add cppcheck python3-dev
python3 -m venv .venv
. .venv/bin/activate
python3 -m pip install pre-commit setuptools clang-format==18.1.6 clang-tidy==18.1.8
python3 -m pip install pre-commit setuptools clang-format==19.1.6 clang-tidy==18.1.8
- name: Run pre-commit
run: |
Expand Down
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ Every code contribution to this project is highly valued and appreciated. I enco
- For Windows (using `choco`) `choco install cppcheck --version=2.7`
- For Windows (MSI install): https://github.com/danmar/cppcheck/releases/download/2.7/cppcheck-2.7-x64-Setup.msi
- Build from source: https://github.com/danmar/cppcheck/releases/tag/2.7
- `clang-format`: `pip install clang-format==18.1.6`
- `clang-format`: `pip install clang-format==19.1.6`
- After you commit the code and push it to GitHub, before creating the pull request please make sure that:
- You merge all new code from **dev** to your fork
- CI passes on all platforms
Expand Down
3 changes: 1 addition & 2 deletions Packet++/src/DnsResourceData.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -204,8 +204,7 @@ namespace pcpp
{
if (m_DataLen == 0 || m_Data == nullptr)
{
PCPP_LOG_ERROR("Input data is null or illegal"
<< "|m_DataLen:" << m_DataLen);
PCPP_LOG_ERROR("Input data is null or illegal" << "|m_DataLen:" << m_DataLen);
return false;
}

Expand Down
3 changes: 1 addition & 2 deletions Packet++/src/VrrpLayer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -485,8 +485,7 @@ namespace pcpp
auto* ipLayer = m_Packet->getLayerOfType<pcpp::IPLayer>();
if (ipLayer == nullptr)
{
PCPP_LOG_ERROR("Calculate checksum failed, for can not get IPLayer"
<< "");
PCPP_LOG_ERROR("Calculate checksum failed, for can not get IPLayer" << "");
return 0;
}

Expand Down
2 changes: 1 addition & 1 deletion ci/check-clang-format-version.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import subprocess

EXPECTED_CLANG_VERSION = "18.1.6"
EXPECTED_CLANG_VERSION = "19.1.6"


def main():
Expand Down

0 comments on commit 78b629f

Please sign in to comment.