From e4ddde5d451ae3598b7f4cdf1faf6ce4bb145049 Mon Sep 17 00:00:00 2001 From: William Jakobsson <50847546+wjakobsson@users.noreply.github.com> Date: Fri, 18 Sep 2026 12:49:57 +0200 Subject: [PATCH 1/2] createrelease: update copyright year script The year is taken from the last commit that changed the file now rather than current date. Also covers missed python scripts. --- createrelease | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/createrelease b/createrelease index 34d728d635b..bc6b0469b03 100755 --- a/createrelease +++ b/createrelease @@ -45,7 +45,7 @@ # cd ~/cppchecksolutions/cppcheck && python3 tools/get_checkers.py > lib/checkers.cpp # # Update copyright year: TODO release script -# git diff $PREV -- */*.cpp */*.h | grep '^diff --git a/' | sed 's|.* b/||' | xargs sed -i "s/Copyright (C) 2007-20[12]./Copyright (C) 2007-$(date +%Y)/" +# git grep -l 'Copyright (C) 2007-20' -- '*.cpp' '*.h' '*.py' | while read f; do y=$(git log -1 --format=%ad --date=format:%Y --invert-grep -i --grep=copyright -- "$f"); sed -i "s/Copyright (C) 2007-20[0-9][0-9]/Copyright (C) 2007-$y/" "$f"; done # git diff | grep '^diff --git a/' # # Make sure "cppcheck --errorlist" works: From a93e5db54cea1c055d7930efe6eaff136d216a5b Mon Sep 17 00:00:00 2001 From: William Jakobsson <50847546+wjakobsson@users.noreply.github.com> Date: Fri, 18 Sep 2026 12:50:39 +0200 Subject: [PATCH 2/2] Release: Update copyright year --- gui/application.cpp | 2 +- gui/applicationdialog.cpp | 2 +- gui/fileviewdialog.cpp | 2 +- gui/platforms.cpp | 2 +- gui/test/cppchecklibrarydata/testcppchecklibrarydata.cpp | 2 +- gui/test/cppchecklibrarydata/testcppchecklibrarydata.h | 2 +- gui/test/filelist/testfilelist.cpp | 2 +- gui/test/filelist/testfilelist.h | 2 +- gui/test/resultstree/testresultstree.cpp | 2 +- gui/test/resultstree/testresultstree.h | 2 +- gui/test/translationhandler/testtranslationhandler.cpp | 2 +- gui/test/translationhandler/testtranslationhandler.h | 2 +- gui/test/xmlreportv2/testxmlreportv2.cpp | 2 +- gui/test/xmlreportv2/testxmlreportv2.h | 2 +- gui/translationhandler.cpp | 2 +- lib/analyzer.h | 2 +- lib/ctu.h | 2 +- lib/forwardanalyzer.cpp | 2 +- lib/fwdanalysis.h | 2 +- lib/standards.cpp | 2 +- lib/standards.h | 2 +- lib/vfvalue.h | 2 +- test/helpers.h | 2 +- test/scripts/extracttests.py | 2 +- test/seh/test-sehwrapper.cpp | 2 +- test/signal/test-signalhandler.cpp | 2 +- test/testlibrary.cpp | 2 +- test/testsummaries.cpp | 2 +- test/testtokenlist.cpp | 2 +- test/testtokenrange.cpp | 2 +- test/tools/donate_cpu_lib_test.py | 2 +- test/tools/test_matchcompiler.py | 2 +- tools/matchcompiler.py | 2 +- tools/triage/main.cpp | 2 +- 34 files changed, 34 insertions(+), 34 deletions(-) diff --git a/gui/application.cpp b/gui/application.cpp index e3cc7b9957b..af68f98bb70 100644 --- a/gui/application.cpp +++ b/gui/application.cpp @@ -1,6 +1,6 @@ /* * Cppcheck - A tool for static C/C++ code analysis - * Copyright (C) 2007-2023 Cppcheck team. + * Copyright (C) 2007-2022 Cppcheck team. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/gui/applicationdialog.cpp b/gui/applicationdialog.cpp index bdf9a4f827e..4725f59fc39 100644 --- a/gui/applicationdialog.cpp +++ b/gui/applicationdialog.cpp @@ -1,6 +1,6 @@ /* * Cppcheck - A tool for static C/C++ code analysis - * Copyright (C) 2007-2023 Cppcheck team. + * Copyright (C) 2007-2026 Cppcheck team. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/gui/fileviewdialog.cpp b/gui/fileviewdialog.cpp index 9d453519450..033c34130d7 100644 --- a/gui/fileviewdialog.cpp +++ b/gui/fileviewdialog.cpp @@ -1,6 +1,6 @@ /* * Cppcheck - A tool for static C/C++ code analysis - * Copyright (C) 2007-2025 Cppcheck team. + * Copyright (C) 2007-2026 Cppcheck team. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/gui/platforms.cpp b/gui/platforms.cpp index 27504006477..a23b05b1ccd 100644 --- a/gui/platforms.cpp +++ b/gui/platforms.cpp @@ -1,6 +1,6 @@ /* * Cppcheck - A tool for static C/C++ code analysis - * Copyright (C) 2007-2025 Cppcheck team. + * Copyright (C) 2007-2026 Cppcheck team. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/gui/test/cppchecklibrarydata/testcppchecklibrarydata.cpp b/gui/test/cppchecklibrarydata/testcppchecklibrarydata.cpp index c747f1b5093..7a91bd332c1 100644 --- a/gui/test/cppchecklibrarydata/testcppchecklibrarydata.cpp +++ b/gui/test/cppchecklibrarydata/testcppchecklibrarydata.cpp @@ -1,6 +1,6 @@ /* * Cppcheck - A tool for static C/C++ code analysis - * Copyright (C) 2007-2021 Cppcheck team. + * Copyright (C) 2007-2025 Cppcheck team. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/gui/test/cppchecklibrarydata/testcppchecklibrarydata.h b/gui/test/cppchecklibrarydata/testcppchecklibrarydata.h index 625ad4046a9..31ddbb9eae0 100644 --- a/gui/test/cppchecklibrarydata/testcppchecklibrarydata.h +++ b/gui/test/cppchecklibrarydata/testcppchecklibrarydata.h @@ -1,6 +1,6 @@ /* -*- C++ -*- * Cppcheck - A tool for static C/C++ code analysis - * Copyright (C) 2007-2021 Cppcheck team. + * Copyright (C) 2007-2025 Cppcheck team. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/gui/test/filelist/testfilelist.cpp b/gui/test/filelist/testfilelist.cpp index d24b766bcc3..003c43c1ba0 100644 --- a/gui/test/filelist/testfilelist.cpp +++ b/gui/test/filelist/testfilelist.cpp @@ -1,6 +1,6 @@ /* * Cppcheck - A tool for static C/C++ code analysis - * Copyright (C) 2007-2021 Cppcheck team. + * Copyright (C) 2007-2023 Cppcheck team. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/gui/test/filelist/testfilelist.h b/gui/test/filelist/testfilelist.h index 17a33d86e3e..f8d9e3a5b7b 100644 --- a/gui/test/filelist/testfilelist.h +++ b/gui/test/filelist/testfilelist.h @@ -1,6 +1,6 @@ /* -*- C++ -*- * Cppcheck - A tool for static C/C++ code analysis - * Copyright (C) 2007-2021 Cppcheck team. + * Copyright (C) 2007-2024 Cppcheck team. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/gui/test/resultstree/testresultstree.cpp b/gui/test/resultstree/testresultstree.cpp index 921abd69ff0..31520f3e6d9 100644 --- a/gui/test/resultstree/testresultstree.cpp +++ b/gui/test/resultstree/testresultstree.cpp @@ -1,6 +1,6 @@ /* * Cppcheck - A tool for static C/C++ code analysis - * Copyright (C) 2007-2021 Cppcheck team. + * Copyright (C) 2007-2026 Cppcheck team. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/gui/test/resultstree/testresultstree.h b/gui/test/resultstree/testresultstree.h index 8604dc81c6b..add0390c456 100644 --- a/gui/test/resultstree/testresultstree.h +++ b/gui/test/resultstree/testresultstree.h @@ -1,6 +1,6 @@ /* -*- C++ -*- * Cppcheck - A tool for static C/C++ code analysis - * Copyright (C) 2007-2021 Cppcheck team. + * Copyright (C) 2007-2026 Cppcheck team. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/gui/test/translationhandler/testtranslationhandler.cpp b/gui/test/translationhandler/testtranslationhandler.cpp index 7c093e3edfd..c827ad47b0c 100644 --- a/gui/test/translationhandler/testtranslationhandler.cpp +++ b/gui/test/translationhandler/testtranslationhandler.cpp @@ -1,6 +1,6 @@ /* * Cppcheck - A tool for static C/C++ code analysis - * Copyright (C) 2007-2021 Cppcheck team. + * Copyright (C) 2007-2025 Cppcheck team. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/gui/test/translationhandler/testtranslationhandler.h b/gui/test/translationhandler/testtranslationhandler.h index 249bbaa5ddd..bdbf3c522e8 100644 --- a/gui/test/translationhandler/testtranslationhandler.h +++ b/gui/test/translationhandler/testtranslationhandler.h @@ -1,6 +1,6 @@ /* -*- C++ -*- * Cppcheck - A tool for static C/C++ code analysis - * Copyright (C) 2007-2021 Cppcheck team. + * Copyright (C) 2007-2024 Cppcheck team. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/gui/test/xmlreportv2/testxmlreportv2.cpp b/gui/test/xmlreportv2/testxmlreportv2.cpp index cede5842de0..2dc0927b870 100644 --- a/gui/test/xmlreportv2/testxmlreportv2.cpp +++ b/gui/test/xmlreportv2/testxmlreportv2.cpp @@ -1,6 +1,6 @@ /* * Cppcheck - A tool for static C/C++ code analysis - * Copyright (C) 2007-2021 Cppcheck team. + * Copyright (C) 2007-2024 Cppcheck team. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/gui/test/xmlreportv2/testxmlreportv2.h b/gui/test/xmlreportv2/testxmlreportv2.h index f4de863bff0..9b864239414 100644 --- a/gui/test/xmlreportv2/testxmlreportv2.h +++ b/gui/test/xmlreportv2/testxmlreportv2.h @@ -1,6 +1,6 @@ /* -*- C++ -*- * Cppcheck - A tool for static C/C++ code analysis - * Copyright (C) 2007-2021 Cppcheck team. + * Copyright (C) 2007-2024 Cppcheck team. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/gui/translationhandler.cpp b/gui/translationhandler.cpp index 14faedc04a2..29713c7c065 100644 --- a/gui/translationhandler.cpp +++ b/gui/translationhandler.cpp @@ -1,6 +1,6 @@ /* * Cppcheck - A tool for static C/C++ code analysis - * Copyright (C) 2007-2025 Cppcheck team. + * Copyright (C) 2007-2026 Cppcheck team. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/lib/analyzer.h b/lib/analyzer.h index 9b87310530f..f2b7460d7cb 100644 --- a/lib/analyzer.h +++ b/lib/analyzer.h @@ -1,6 +1,6 @@ /* -*- C++ -*- * Cppcheck - A tool for static C/C++ code analysis - * Copyright (C) 2007-2025 Cppcheck team. + * Copyright (C) 2007-2026 Cppcheck team. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/lib/ctu.h b/lib/ctu.h index 76baff21b9f..7eea7e76cc1 100644 --- a/lib/ctu.h +++ b/lib/ctu.h @@ -1,6 +1,6 @@ /* -*- C++ -*- * Cppcheck - A tool for static C/C++ code analysis - * Copyright (C) 2007-2025 Cppcheck team. + * Copyright (C) 2007-2026 Cppcheck team. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/lib/forwardanalyzer.cpp b/lib/forwardanalyzer.cpp index 3e227873b26..9a75d65b3a7 100644 --- a/lib/forwardanalyzer.cpp +++ b/lib/forwardanalyzer.cpp @@ -1,6 +1,6 @@ /* * Cppcheck - A tool for static C/C++ code analysis - * Copyright (C) 2007-2025 Cppcheck team. + * Copyright (C) 2007-2026 Cppcheck team. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/lib/fwdanalysis.h b/lib/fwdanalysis.h index 34d0da24d4d..e8e27e576b5 100644 --- a/lib/fwdanalysis.h +++ b/lib/fwdanalysis.h @@ -1,6 +1,6 @@ /* -*- C++ -*- * Cppcheck - A tool for static C/C++ code analysis - * Copyright (C) 2007-2024 Cppcheck team. + * Copyright (C) 2007-2026 Cppcheck team. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/lib/standards.cpp b/lib/standards.cpp index 06b129ab8cf..959f271912d 100644 --- a/lib/standards.cpp +++ b/lib/standards.cpp @@ -1,6 +1,6 @@ /* * Cppcheck - A tool for static C/C++ code analysis - * Copyright (C) 2007-2025 Cppcheck team. + * Copyright (C) 2007-2026 Cppcheck team. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/lib/standards.h b/lib/standards.h index 0ab73300a9a..0d10b8c6d5d 100644 --- a/lib/standards.h +++ b/lib/standards.h @@ -1,6 +1,6 @@ /* -*- C++ -*- * Cppcheck - A tool for static C/C++ code analysis - * Copyright (C) 2007-2025 Cppcheck team. + * Copyright (C) 2007-2026 Cppcheck team. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/lib/vfvalue.h b/lib/vfvalue.h index ce33f022e58..9eab775de24 100644 --- a/lib/vfvalue.h +++ b/lib/vfvalue.h @@ -1,6 +1,6 @@ /* -*- C++ -*- * Cppcheck - A tool for static C/C++ code analysis - * Copyright (C) 2007-2025 Cppcheck team. + * Copyright (C) 2007-2026 Cppcheck team. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/test/helpers.h b/test/helpers.h index b91fe416045..a08eb3f1572 100644 --- a/test/helpers.h +++ b/test/helpers.h @@ -1,6 +1,6 @@ /* -*- C++ -*- * Cppcheck - A tool for static C/C++ code analysis - * Copyright (C) 2007-2025 Cppcheck team. + * Copyright (C) 2007-2026 Cppcheck team. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/test/scripts/extracttests.py b/test/scripts/extracttests.py index a45c8261d64..776211152d4 100755 --- a/test/scripts/extracttests.py +++ b/test/scripts/extracttests.py @@ -1,7 +1,7 @@ #!/usr/bin/env python3 # # Cppcheck - A tool for static C/C++ code analysis -# Copyright (C) 2007-2021 Cppcheck team. +# Copyright (C) 2007-2025 Cppcheck team. # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by diff --git a/test/seh/test-sehwrapper.cpp b/test/seh/test-sehwrapper.cpp index a92753b8423..2c17d62334a 100644 --- a/test/seh/test-sehwrapper.cpp +++ b/test/seh/test-sehwrapper.cpp @@ -1,6 +1,6 @@ /* * Cppcheck - A tool for static C/C++ code analysis - * Copyright (C) 2007-2024 Cppcheck team. + * Copyright (C) 2007-2025 Cppcheck team. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/test/signal/test-signalhandler.cpp b/test/signal/test-signalhandler.cpp index 153ec95f245..faf815b6577 100644 --- a/test/signal/test-signalhandler.cpp +++ b/test/signal/test-signalhandler.cpp @@ -1,6 +1,6 @@ /* * Cppcheck - A tool for static C/C++ code analysis - * Copyright (C) 2007-2024 Cppcheck team. + * Copyright (C) 2007-2025 Cppcheck team. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/test/testlibrary.cpp b/test/testlibrary.cpp index 28264a02a53..9f781a29f73 100644 --- a/test/testlibrary.cpp +++ b/test/testlibrary.cpp @@ -1,6 +1,6 @@ /* * Cppcheck - A tool for static C/C++ code analysis - * Copyright (C) 2007-2025 Cppcheck team. + * Copyright (C) 2007-2026 Cppcheck team. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/test/testsummaries.cpp b/test/testsummaries.cpp index 34f4ed3412e..d550ee54804 100644 --- a/test/testsummaries.cpp +++ b/test/testsummaries.cpp @@ -1,6 +1,6 @@ /* * Cppcheck - A tool for static C/C++ code analysis - * Copyright (C) 2007-2025 Cppcheck team. + * Copyright (C) 2007-2026 Cppcheck team. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/test/testtokenlist.cpp b/test/testtokenlist.cpp index 0374ad6b4a2..0147365bd48 100644 --- a/test/testtokenlist.cpp +++ b/test/testtokenlist.cpp @@ -1,6 +1,6 @@ /* * Cppcheck - A tool for static C/C++ code analysis - * Copyright (C) 2007-2025 Cppcheck team. + * Copyright (C) 2007-2026 Cppcheck team. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/test/testtokenrange.cpp b/test/testtokenrange.cpp index f2ac218fec2..910567ac084 100644 --- a/test/testtokenrange.cpp +++ b/test/testtokenrange.cpp @@ -1,6 +1,6 @@ /* * Cppcheck - A tool for static C/C++ code analysis - * Copyright (C) 2007-2024 Cppcheck team. + * Copyright (C) 2007-2026 Cppcheck team. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/test/tools/donate_cpu_lib_test.py b/test/tools/donate_cpu_lib_test.py index 141781192aa..9c569276a19 100644 --- a/test/tools/donate_cpu_lib_test.py +++ b/test/tools/donate_cpu_lib_test.py @@ -1,7 +1,7 @@ #!/usr/bin/env python # # Cppcheck - A tool for static C/C++ code analysis -# Copyright (C) 2007-2022 Cppcheck team. +# Copyright (C) 2007-2026 Cppcheck team. # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by diff --git a/test/tools/test_matchcompiler.py b/test/tools/test_matchcompiler.py index 104601df7e3..543f7fae0a3 100755 --- a/test/tools/test_matchcompiler.py +++ b/test/tools/test_matchcompiler.py @@ -1,7 +1,7 @@ #!/usr/bin/env python3 # # Cppcheck - A tool for static C/C++ code analysis -# Copyright (C) 2007-2021 Cppcheck team. +# Copyright (C) 2007-2025 Cppcheck team. # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by diff --git a/tools/matchcompiler.py b/tools/matchcompiler.py index bb03b6822e2..143400f7ea8 100755 --- a/tools/matchcompiler.py +++ b/tools/matchcompiler.py @@ -1,7 +1,7 @@ #!/usr/bin/env python3 # # Cppcheck - A tool for static C/C++ code analysis -# Copyright (C) 2007-2021 Cppcheck team. +# Copyright (C) 2007-2025 Cppcheck team. # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by diff --git a/tools/triage/main.cpp b/tools/triage/main.cpp index 89564a19b2c..81898fc7d7e 100644 --- a/tools/triage/main.cpp +++ b/tools/triage/main.cpp @@ -1,6 +1,6 @@ /* * Cppcheck - A tool for static C/C++ code analysis - * Copyright (C) 2007-2021 Cppcheck team. + * Copyright (C) 2007-2022 Cppcheck team. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by