Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package cppcheck for openSUSE:Factory 
checked in at 2024-12-30 14:25:24
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/cppcheck (Old)
 and      /work/SRC/openSUSE:Factory/.cppcheck.new.1881 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "cppcheck"

Mon Dec 30 14:25:24 2024 rev:48 rq:1233575 version:2.16.2

Changes:
--------
--- /work/SRC/openSUSE:Factory/cppcheck/cppcheck.changes        2024-12-02 
16:59:30.262132655 +0100
+++ /work/SRC/openSUSE:Factory/.cppcheck.new.1881/cppcheck.changes      
2024-12-30 14:25:26.823274778 +0100
@@ -1,0 +2,6 @@
+Fri Dec 20 20:45:05 UTC 2024 - Christoph G <f...@grueninger.de>
+
+- update to 2.16.2
+  * Fix syntax error for function pointer array with @
+
+-------------------------------------------------------------------

Old:
----
  cppcheck-2.16.1.tar.gz

New:
----
  cppcheck-2.16.2.tar.gz

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ cppcheck.spec ++++++
--- /var/tmp/diff_new_pack.rowqjP/_old  2024-12-30 14:25:27.591306384 +0100
+++ /var/tmp/diff_new_pack.rowqjP/_new  2024-12-30 14:25:27.591306384 +0100
@@ -17,7 +17,7 @@
 
 
 Name:           cppcheck
-Version:        2.16.1
+Version:        2.16.2
 Release:        0
 Summary:        A tool for static C/C++ code analysis
 License:        GPL-3.0-or-later

++++++ cppcheck-2.16.1.tar.gz -> cppcheck-2.16.2.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/cppcheck-2.16.1/CMakeLists.txt 
new/cppcheck-2.16.2/CMakeLists.txt
--- old/cppcheck-2.16.1/CMakeLists.txt  2024-11-28 14:49:29.000000000 +0100
+++ new/cppcheck-2.16.2/CMakeLists.txt  2024-12-19 12:05:17.000000000 +0100
@@ -2,7 +2,7 @@
 if(MSVC)
     cmake_minimum_required(VERSION 3.13)
 endif()
-project(Cppcheck VERSION 2.16.1 LANGUAGES CXX)
+project(Cppcheck VERSION 2.16.2 LANGUAGES CXX)
 
 include(cmake/cxx11.cmake)
 use_cxx11()
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/cppcheck-2.16.1/cli/main.cpp 
new/cppcheck-2.16.2/cli/main.cpp
--- old/cppcheck-2.16.1/cli/main.cpp    2024-11-28 14:49:29.000000000 +0100
+++ new/cppcheck-2.16.2/cli/main.cpp    2024-12-19 12:05:17.000000000 +0100
@@ -20,7 +20,7 @@
 /**
  *
  * @mainpage Cppcheck
- * @version 2.16.1
+ * @version 2.16.2
  *
  * @section overview_sec Overview
  * Cppcheck is a simple tool for static analysis of C/C++ code.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/cppcheck-2.16.1/lib/cppcheck.cpp 
new/cppcheck-2.16.2/lib/cppcheck.cpp
--- old/cppcheck-2.16.1/lib/cppcheck.cpp        2024-11-28 14:49:29.000000000 
+0100
+++ new/cppcheck-2.16.2/lib/cppcheck.cpp        2024-12-19 12:05:17.000000000 
+0100
@@ -1414,12 +1414,14 @@
     if (mSettings.addons.empty() || files.empty())
         return;
 
-    FilesDeleter filesDeleter;
+    const bool isCtuInfo = endsWith(files[0], ".ctu-info");
 
+    FilesDeleter filesDeleter;
     std::string fileList;
 
-    if (files.size() >= 2 || endsWith(files[0], ".ctu-info")) {
-        fileList = Path::getPathFromFilename(files[0]) + FILELIST;
+    if (files.size() >= 2) {
+        fileList = Path::getPathFromFilename(files[0]) + FILELIST + ("-" + 
std::to_string(mSettings.pid)) + ".txt";
+        filesDeleter.addFile(fileList);
         std::ofstream fout(fileList);
         for (const std::string& f: files)
             fout << f << std::endl;
@@ -1431,7 +1433,7 @@
     std::string ctuInfo;
 
     for (const AddonInfo &addonInfo : mSettings.addonInfos) {
-        if (addonInfo.name != "misra" && !addonInfo.ctu && 
endsWith(files.back(), ".ctu-info"))
+        if (isCtuInfo && addonInfo.name != "misra" && !addonInfo.ctu)
             continue;
 
         const std::vector<picojson::value> results =
@@ -1497,7 +1499,7 @@
         }
     }
 
-    if (!mSettings.buildDir.empty() && fileList.empty()) {
+    if (!mSettings.buildDir.empty() && !isCtuInfo) {
         const std::string& ctuInfoFile = getCtuInfoFileName(files[0]);
         std::ofstream fout(ctuInfoFile);
         fout << ctuInfo;
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/cppcheck-2.16.1/lib/tokenize.cpp 
new/cppcheck-2.16.2/lib/tokenize.cpp
--- old/cppcheck-2.16.1/lib/tokenize.cpp        2024-11-28 14:49:29.000000000 
+0100
+++ new/cppcheck-2.16.2/lib/tokenize.cpp        2024-12-19 12:05:17.000000000 
+0100
@@ -9848,7 +9848,7 @@
     std::set<std::string> var;
 
     for (Token *tok = list.front(); tok; tok = tok->next()) {
-        if (Token::Match(tok, "%name%|] @ %num%|%name%|%str%|(")) {
+        if (Token::Match(tok, "%name%|]|) @ %num%|%name%|%str%|(")) {
             const Token *end = tok->tokAt(2);
             if (end->isLiteral())
                 end = end->next();
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/cppcheck-2.16.1/lib/version.h 
new/cppcheck-2.16.2/lib/version.h
--- old/cppcheck-2.16.1/lib/version.h   2024-11-28 14:49:29.000000000 +0100
+++ new/cppcheck-2.16.2/lib/version.h   2024-12-19 12:05:17.000000000 +0100
@@ -25,7 +25,7 @@
 #define CPPCHECK_MAJOR_VERSION 2
 #define CPPCHECK_MINOR_VERSION 16
 #define CPPCHECK_DEVMINOR_VERSION 16
-#define CPPCHECK_BUGFIX_VERSION 1
+#define CPPCHECK_BUGFIX_VERSION 2
 
 #define STRINGIFY(x) STRING(x)
 #define STRING(VER) #VER
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/cppcheck-2.16.1/man/manual.md 
new/cppcheck-2.16.2/man/manual.md
--- old/cppcheck-2.16.1/man/manual.md   2024-11-28 14:49:29.000000000 +0100
+++ new/cppcheck-2.16.2/man/manual.md   2024-12-19 12:05:17.000000000 +0100
@@ -1,6 +1,6 @@
 ---
 title: Cppcheck manual
-subtitle: Version 2.16.1
+subtitle: Version 2.16.2
 author: Cppcheck team
 lang: en
 documentclass: report
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/cppcheck-2.16.1/man/reference-cfg-format.md 
new/cppcheck-2.16.2/man/reference-cfg-format.md
--- old/cppcheck-2.16.1/man/reference-cfg-format.md     2024-11-28 
14:49:29.000000000 +0100
+++ new/cppcheck-2.16.2/man/reference-cfg-format.md     2024-12-19 
12:05:17.000000000 +0100
@@ -1,6 +1,6 @@
 ---
 title: Cppcheck .cfg format
-subtitle: Version 2.16.1
+subtitle: Version 2.16.2
 author: Cppcheck team
 lang: en
 documentclass: report
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/cppcheck-2.16.1/man/writing-addons.md 
new/cppcheck-2.16.2/man/writing-addons.md
--- old/cppcheck-2.16.1/man/writing-addons.md   2024-11-28 14:49:29.000000000 
+0100
+++ new/cppcheck-2.16.2/man/writing-addons.md   2024-12-19 12:05:17.000000000 
+0100
@@ -1,6 +1,6 @@
 ---
 title: Writing addons
-subtitle: Version 2.16.1
+subtitle: Version 2.16.2
 author: Cppcheck team
 lang: en
 documentclass: report
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/cppcheck-2.16.1/test/testtokenize.cpp 
new/cppcheck-2.16.2/test/testtokenize.cpp
--- old/cppcheck-2.16.1/test/testtokenize.cpp   2024-11-28 14:49:29.000000000 
+0100
+++ new/cppcheck-2.16.2/test/testtokenize.cpp   2024-12-19 12:05:17.000000000 
+0100
@@ -985,6 +985,8 @@
 
         ASSERT_EQUALS("int x [ 10 ] ;", tokenizeAndStringify("int 
x[10]@0x100;"));
 
+        ASSERT_EQUALS("void ( * f [ ] ) ( void ) ;", 
tokenizeAndStringify("void (*f[])(void)@0x100;")); // #13458
+
         ASSERT_EQUALS("interrupt@ f ( ) { }", tokenizeAndStringify("@interrupt 
f() {}"));
 
         ASSERT_EQUALS("const short MyVariable = 0xF0F0 ;", 
tokenizeAndStringify("const short MyVariable @ \"MYOWNSECTION\" = 0xF0F0; ")); 
// #12602
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/cppcheck-2.16.1/win_installer/productInfo.wxi 
new/cppcheck-2.16.2/win_installer/productInfo.wxi
--- old/cppcheck-2.16.1/win_installer/productInfo.wxi   2024-11-28 
14:49:29.000000000 +0100
+++ new/cppcheck-2.16.2/win_installer/productInfo.wxi   2024-12-19 
12:05:17.000000000 +0100
@@ -1,8 +1,8 @@
 <?xml version="1.0" encoding="utf-8"?>
 <Include>
-  <?define ProductName = "Cppcheck $(var.Platform) 2.16.1" ?>
+  <?define ProductName = "Cppcheck $(var.Platform) 2.16.2" ?>
   <?define ProductNameShort = "Cppcheck" ?>
-  <?define ProductVersion = "2.16.1" ?>
+  <?define ProductVersion = "2.16.2" ?>
 
   <?define ProductManufacturer = "The Cppcheck team" ?>
   <?define ProductDescription = "Cppcheck is a tool for static analysis of 
C/C++ code" ?>

Reply via email to