Skip to content

Commit 78b629f

Browse files
authored
Bump clang-format to 19.1.6 (#1677)
1 parent 6dd7c51 commit 78b629f

File tree

5 files changed

+5
-7
lines changed

5 files changed

+5
-7
lines changed

.github/workflows/build_and_test.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ jobs:
3636
apk update && apk add cppcheck python3-dev
3737
python3 -m venv .venv
3838
. .venv/bin/activate
39-
python3 -m pip install pre-commit setuptools clang-format==18.1.6 clang-tidy==18.1.8
39+
python3 -m pip install pre-commit setuptools clang-format==19.1.6 clang-tidy==18.1.8
4040
4141
- name: Run pre-commit
4242
run: |

CONTRIBUTING.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ Every code contribution to this project is highly valued and appreciated. I enco
2929
- For Windows (using `choco`) `choco install cppcheck --version=2.7`
3030
- For Windows (MSI install): https://github.com/danmar/cppcheck/releases/download/2.7/cppcheck-2.7-x64-Setup.msi
3131
- Build from source: https://github.com/danmar/cppcheck/releases/tag/2.7
32-
- `clang-format`: `pip install clang-format==18.1.6`
32+
- `clang-format`: `pip install clang-format==19.1.6`
3333
- After you commit the code and push it to GitHub, before creating the pull request please make sure that:
3434
- You merge all new code from **dev** to your fork
3535
- CI passes on all platforms

Packet++/src/DnsResourceData.cpp

+1-2
Original file line numberDiff line numberDiff line change
@@ -204,8 +204,7 @@ namespace pcpp
204204
{
205205
if (m_DataLen == 0 || m_Data == nullptr)
206206
{
207-
PCPP_LOG_ERROR("Input data is null or illegal"
208-
<< "|m_DataLen:" << m_DataLen);
207+
PCPP_LOG_ERROR("Input data is null or illegal" << "|m_DataLen:" << m_DataLen);
209208
return false;
210209
}
211210

Packet++/src/VrrpLayer.cpp

+1-2
Original file line numberDiff line numberDiff line change
@@ -485,8 +485,7 @@ namespace pcpp
485485
auto* ipLayer = m_Packet->getLayerOfType<pcpp::IPLayer>();
486486
if (ipLayer == nullptr)
487487
{
488-
PCPP_LOG_ERROR("Calculate checksum failed, for can not get IPLayer"
489-
<< "");
488+
PCPP_LOG_ERROR("Calculate checksum failed, for can not get IPLayer" << "");
490489
return 0;
491490
}
492491

ci/check-clang-format-version.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import subprocess
22

3-
EXPECTED_CLANG_VERSION = "18.1.6"
3+
EXPECTED_CLANG_VERSION = "19.1.6"
44

55

66
def main():

0 commit comments

Comments
 (0)