<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Activity for cppcheck</title><link>https://sourceforge.net/p/cppcheck/activity/</link><description>Recent activity for cppcheck</description><language>en</language><lastBuildDate>Sun, 15 Nov 2026 17:55:19 -0000</lastBuildDate><item><title>Daniel Marjamäki posted a comment on discussion Development</title><link>https://sourceforge.net/p/cppcheck/discussion/development/thread/13d95777a5/?limit=25#9c8c</link><description>ok I can deprecate it. It's a good idea.</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Daniel Marjamäki</dc:creator><pubDate>Sun, 15 Nov 2026 17:55:19 -0000</pubDate><guid>https://sourceforge.net/p/cppcheck/discussion/development/thread/13d95777a5/?limit=25#9c8c</guid></item><item><title>Guy Maurel posted a comment on discussion General Discussion</title><link>https://sourceforge.net/p/cppcheck/discussion/general/thread/1a21283d25/?limit=25#d2a9</link><description>Hello! you wrote at https://cppcheck.sourceforge.io/devinfo/ We use uncrustify-0.72 to format Cppcheck source code. This is not the current version. Current is Uncrustify_d-0.81.0 -- Guy Maurel 89077 Ulm</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Guy Maurel</dc:creator><pubDate>Thu, 12 Nov 2026 17:38:42 -0000</pubDate><guid>https://sourceforge.net/p/cppcheck/discussion/general/thread/1a21283d25/?limit=25#d2a9</guid></item><item><title>gruenich posted a comment on discussion General Discussion</title><link>https://sourceforge.net/p/cppcheck/discussion/general/thread/ecc70d5010/?limit=100#8c55</link><description>I was able to narrow down what happens. The reason for my issue is that main.cpp aborts with unknownMacro (slots), so its function calls are never recorded. With --library=qt the false positive disappears, which also fixes the false positives I saw for Myrlyn. Still, I think unusedFunction should not report anything (or should warn) when a translation unit failed to parse, since the results are based on incomplete data.</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">gruenich</dc:creator><pubDate>Thu, 12 Nov 2026 16:56:26 -0000</pubDate><guid>https://sourceforge.net/p/cppcheck/discussion/general/thread/ecc70d5010/?limit=100#8c55</guid></item><item><title>CHR posted a comment on discussion General Discussion</title><link>https://sourceforge.net/p/cppcheck/discussion/general/thread/b6091f4015/?limit=25#074a</link><description>Thanks for reporting, ticket is here: https://trac.cppcheck.net/ticket/15209 Please open a PR at https://github.com/cppcheck-opensource/cppcheck/</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">CHR</dc:creator><pubDate>Thu, 12 Nov 2026 07:12:13 -0000</pubDate><guid>https://sourceforge.net/p/cppcheck/discussion/general/thread/b6091f4015/?limit=25#074a</guid></item><item><title>cstratak posted a comment on discussion General Discussion</title><link>https://sourceforge.net/p/cppcheck/discussion/general/thread/b6091f4015/?limit=25#49e6</link><description>I've been investigating some results of analysis for lxml from openscanhub in Fedora (which uses cppcheck) that seemed false positives and drove me down the cppcheck rabbit hole. I've drafted a simple reproducer that mirrors the generated Cython code that is sprouted from python-lxml and used claude to try to analyze the cause. The issue is a possible null pointer dereference on a line that can never run with a NULL pointer. void f(int *a, int *b) { if (a) *a = 0; else *b = 0; } void g(void) { int...</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">cstratak</dc:creator><pubDate>Thu, 12 Nov 2026 01:10:28 -0000</pubDate><guid>https://sourceforge.net/p/cppcheck/discussion/general/thread/b6091f4015/?limit=25#49e6</guid></item><item><title>john borland posted a comment on discussion Development</title><link>https://sourceforge.net/p/cppcheck/discussion/development/thread/13d95777a5/?limit=25#2d31</link><description>Just incase someone is using it maybe mark the flag --clang as depricated in the next releaes. Given the amount of work it might make for a good google summer of code project should cppcheck ever want the feature back. I always thought the feature would be more useful for cppcheck internally as away to help debug changes in the c++ standards. I am not sure why someone would use it externally.</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">john borland</dc:creator><pubDate>Tue, 10 Nov 2026 21:40:50 -0000</pubDate><guid>https://sourceforge.net/p/cppcheck/discussion/development/thread/13d95777a5/?limit=25#2d31</guid></item><item><title>CHR posted a comment on discussion General Discussion</title><link>https://sourceforge.net/p/cppcheck/discussion/general/thread/2b84ff7b0e/?limit=25#d1ef</link><description>Thanks for reporting, ticket is here: https://trac.cppcheck.net/ticket/15192</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">CHR</dc:creator><pubDate>Tue, 10 Nov 2026 10:17:00 -0000</pubDate><guid>https://sourceforge.net/p/cppcheck/discussion/general/thread/2b84ff7b0e/?limit=25#d1ef</guid></item><item><title>Andreas Burnickl posted a comment on discussion General Discussion</title><link>https://sourceforge.net/p/cppcheck/discussion/general/thread/2b84ff7b0e/?limit=25#8754</link><description>Version: Cppcheck 2.19.0 and 2.22.0 (built from the 2.22.0 tag), Ubuntu 26.04. Code (GCC and Clang compile it with -std=c++11, including an instantiation f&lt;int&gt;()): namespace n { template &lt;typename... Ts&gt; struct S {}; } template &lt;typename... Ts, typename = n::S&lt;decltype(Ts())...&gt;&gt; void f() {} $ cppcheck --language=c++ --std=c++11 h.cpp h.cpp:2:60: error: syntax error [syntaxError] template &lt;typename... Ts, typename = n::S&lt;decltype(Ts())...&gt;&gt; ^ No error when any one of these changes: &gt; &gt; instead of...</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Andreas Burnickl</dc:creator><pubDate>Tue, 10 Nov 2026 09:43:54 -0000</pubDate><guid>https://sourceforge.net/p/cppcheck/discussion/general/thread/2b84ff7b0e/?limit=25#8754</guid></item><item><title>CHR posted a comment on discussion General Discussion</title><link>https://sourceforge.net/p/cppcheck/discussion/general/thread/810bdd70bf/?limit=25#f0e4</link><description>Thanks for reporting, ticket is here: https://trac.cppcheck.net/ticket/15189</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">CHR</dc:creator><pubDate>Mon, 09 Nov 2026 17:54:11 -0000</pubDate><guid>https://sourceforge.net/p/cppcheck/discussion/general/thread/810bdd70bf/?limit=25#f0e4</guid></item><item><title>CHR posted a comment on discussion General Discussion</title><link>https://sourceforge.net/p/cppcheck/discussion/general/thread/08060afad5/?limit=25#f1df</link><description>Thanks for reporting, ticket is here: https://trac.cppcheck.net/ticket/15188</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">CHR</dc:creator><pubDate>Mon, 09 Nov 2026 17:28:19 -0000</pubDate><guid>https://sourceforge.net/p/cppcheck/discussion/general/thread/08060afad5/?limit=25#f1df</guid></item><item><title>CHR posted a comment on discussion General Discussion</title><link>https://sourceforge.net/p/cppcheck/discussion/general/thread/ce2a08dfbd/?limit=25#98ab</link><description>Thanks for reporting, ticket is here: https://trac.cppcheck.net/ticket/15185</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">CHR</dc:creator><pubDate>Mon, 09 Nov 2026 08:54:51 -0000</pubDate><guid>https://sourceforge.net/p/cppcheck/discussion/general/thread/ce2a08dfbd/?limit=25#98ab</guid></item><item><title>CHR posted a comment on discussion Development</title><link>https://sourceforge.net/p/cppcheck/discussion/development/thread/13d95777a5/?limit=25#ff54</link><description>Seconded. There hasn't been any activity related to this feature in years.</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">CHR</dc:creator><pubDate>Mon, 09 Nov 2026 06:40:42 -0000</pubDate><guid>https://sourceforge.net/p/cppcheck/discussion/development/thread/13d95777a5/?limit=25#ff54</guid></item><item><title>Daniel Marjamäki modified a comment on discussion Development</title><link>https://sourceforge.net/p/cppcheck/discussion/development/thread/13d95777a5/?limit=25#9797</link><description>The clangimport is not working well at all. I get crashes for small simple example C code. This makes me think that it's not used by any users. I do not feel that the ast-dump based approach is a proper approach it was an ugly hack. And I fear also that making the current ast-dump approach work fully would be a lot of work. We should use json if we want to import the clang ast. That would not be so fragile. However a rewrite for json and making it handle C and C++ fully is a really big job. I suggest...</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Daniel Marjamäki</dc:creator><pubDate>Sun, 08 Nov 2026 19:34:30 -0000</pubDate><guid>https://sourceforge.net/p/cppcheck/discussion/development/thread/13d95777a5/?limit=25#9797</guid></item><item><title>Daniel Marjamäki posted a comment on discussion Development</title><link>https://sourceforge.net/p/cppcheck/discussion/development/thread/13d95777a5/?limit=25#9797</link><description>The clangimport is not working well at all. I get crashes for small simple example C code. This makes me think that it's not used by any users. I do not feel that the ast-dump based approach is a proper approach it was an ugly hack. And I fear also that making the current ast-dump approach work fully would be a lot of work. We should use json if we want to import the clang ast. However a rewrite for json and making it handle C and C++ fully is a really big job. I suggest that we remove the clang...</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Daniel Marjamäki</dc:creator><pubDate>Sun, 08 Nov 2026 19:33:11 -0000</pubDate><guid>https://sourceforge.net/p/cppcheck/discussion/development/thread/13d95777a5/?limit=25#9797</guid></item><item><title>Long Huang posted a comment on discussion General Discussion</title><link>https://sourceforge.net/p/cppcheck/discussion/general/thread/ce2a08dfbd/?limit=25#1be4</link><description>Minimal reproduction: #ifdef KNOWN_MAP_DECLARATION template&lt;typename Key, typename Value&gt; class QMap { public: void insert(const Key&amp;, const Value&amp;); Value value(const Key&amp;) const; }; #else #include &lt;QMap&gt; #endif struct Client { void Update(); }; class Registry { public: void Add(unsigned id, Client* client); void Update(unsigned id) const; private: QMap&lt;unsigned, Client*&gt; Clients; }; void Registry::Add(unsigned id, Client* client) { Clients.insert(id, client); } void Registry::Update(unsigned id)...</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Long Huang</dc:creator><pubDate>Fri, 06 Nov 2026 22:45:11 -0000</pubDate><guid>https://sourceforge.net/p/cppcheck/discussion/general/thread/ce2a08dfbd/?limit=25#1be4</guid></item><item><title>CHR posted a comment on discussion General Discussion</title><link>https://sourceforge.net/p/cppcheck/discussion/general/thread/b5fc4d21f1/?limit=25#9ea5</link><description>Thanks for reporting, ticket is here: https://trac.cppcheck.net/ticket/15177</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">CHR</dc:creator><pubDate>Thu, 05 Nov 2026 13:17:04 -0000</pubDate><guid>https://sourceforge.net/p/cppcheck/discussion/general/thread/b5fc4d21f1/?limit=25#9ea5</guid></item><item><title>CHR posted a comment on discussion General Discussion</title><link>https://sourceforge.net/p/cppcheck/discussion/general/thread/5b299314e2/?limit=25#7da1</link><description>Thanks for reporting, ticket is here: https://trac.cppcheck.net/ticket/15173</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">CHR</dc:creator><pubDate>Wed, 04 Nov 2026 09:01:35 -0000</pubDate><guid>https://sourceforge.net/p/cppcheck/discussion/general/thread/5b299314e2/?limit=25#7da1</guid></item><item><title>CHR posted a comment on discussion General Discussion</title><link>https://sourceforge.net/p/cppcheck/discussion/general/thread/4a0f4b49e9/?limit=25#fb6f</link><description>knownConditionTrueFalse is tracked here: https://trac.cppcheck.net/ticket/15171</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">CHR</dc:creator><pubDate>Wed, 04 Nov 2026 07:02:29 -0000</pubDate><guid>https://sourceforge.net/p/cppcheck/discussion/general/thread/4a0f4b49e9/?limit=25#fb6f</guid></item><item><title>Long Huang posted a comment on discussion General Discussion</title><link>https://sourceforge.net/p/cppcheck/discussion/general/thread/810bdd70bf/?limit=25#d863</link><description>Reproduction handler.c: void DefaultHandler(void) { } void (*const Handlers[])(void) = { DefaultHandler }; compare.c: extern void DefaultHandler(void); extern void (*const Handlers[])(void); int HasHandler(int index) { return Handlers[index] != DefaultHandler; } Run both translation units together: cppcheck --enable=all --inline-suppr --template=gcc \ --suppress=checkersReport --suppress=unusedFunction --quiet \ handler.c compare.c Cppcheck 2.22.0 Actual: handler.c:1:6: warning: The function 'DefaultHandler'...</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Long Huang</dc:creator><pubDate>Tue, 03 Nov 2026 22:10:32 -0000</pubDate><guid>https://sourceforge.net/p/cppcheck/discussion/general/thread/810bdd70bf/?limit=25#d863</guid></item><item><title>Long Huang posted a comment on discussion General Discussion</title><link>https://sourceforge.net/p/cppcheck/discussion/general/thread/5b299314e2/?limit=25#6f4e</link><description>cfg/qt.cfg marks QFile::exists as &lt;pure/&gt;. When the argument is a local const QString, cppcheck reuses the first call's result after a call to an unknown function, and then reports a later identical call as always true. But QFile::exists reads filesystem state, which any unknown call (or another process) can change, so the second result is not known. Either QFile::exists (and probably QFileInfo::exists/QDir::exists) should not be &lt;pure/&gt;, or value flow should drop a pure call's known result after...</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Long Huang</dc:creator><pubDate>Tue, 03 Nov 2026 18:27:10 -0000</pubDate><guid>https://sourceforge.net/p/cppcheck/discussion/general/thread/5b299314e2/?limit=25#6f4e</guid></item><item><title>Long Huang posted a comment on discussion General Discussion</title><link>https://sourceforge.net/p/cppcheck/discussion/general/thread/b5fc4d21f1/?limit=25#e961</link><description>uninitMemberVarNoCtor asks for a default member initializer on members of a constructor-less aggregate. Two kinds of member cannot take one: Bit-fields under --std=c++14/c++17: default member initializers for bit-fields only became valid in C++20. Cppcheck warns even with --std=c++14, so the suggested fix does not compile. Flexible array members (char Data[];, GNU/C99 extension common in wire/IPC headers): they have no size, so an initializer is impossible in any standard. A user-written constructor...</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Long Huang</dc:creator><pubDate>Tue, 03 Nov 2026 18:07:24 -0000</pubDate><guid>https://sourceforge.net/p/cppcheck/discussion/general/thread/b5fc4d21f1/?limit=25#e961</guid></item><item><title>CHR posted a comment on discussion General Discussion</title><link>https://sourceforge.net/p/cppcheck/discussion/general/thread/69f643ec78/?limit=25#5767</link><description>Thanks for reporting, ticket is here: https://trac.cppcheck.net/ticket/15167</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">CHR</dc:creator><pubDate>Tue, 03 Nov 2026 07:03:29 -0000</pubDate><guid>https://sourceforge.net/p/cppcheck/discussion/general/thread/69f643ec78/?limit=25#5767</guid></item><item><title>Ahmed Lotfy posted a comment on discussion General Discussion</title><link>https://sourceforge.net/p/cppcheck/discussion/general/thread/69f643ec78/?limit=25#73e1</link><description>Cppcheck 2.22.0 reports "can be declared as const array" for an array of unsigned char, but not when the element type is a typedef of unsigned char. Reported (expected): static int f(const unsigned char *d, int n); int g(void) { unsigned char a[4] = {0}; return f(a, 4); } constVariable: Variable 'a' can be declared as const array Not reported (false negative): typedef unsigned char u8; static int f(const u8 *d, int n); int g(void) { u8 a[4] = {0}; return f(a, 4); } Command: cppcheck --enable=style...</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Ahmed Lotfy</dc:creator><pubDate>Mon, 02 Nov 2026 10:13:02 -0000</pubDate><guid>https://sourceforge.net/p/cppcheck/discussion/general/thread/69f643ec78/?limit=25#73e1</guid></item><item><title>john borland posted a comment on discussion Development</title><link>https://sourceforge.net/p/cppcheck/discussion/development/thread/1cf7f0973e/?limit=25#9c1d/af4c/680e/7827</link><description>Hopefully the table below looks ok. I will attach 2 CSV files. The first one is called StatFile.csv and that is this table below. Which shows some stats about code coverage of a few of the CppCheck source code files and all the numbers are %. I checked 4015 Debian packages. I can say the Overall Coverage numbers are under estimates. When I looked at the gcov data I found that it was saying there were 220048 source lines, but going through the output it was counting files outside of cppcheck like...</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">john borland</dc:creator><pubDate>Fri, 30 Oct 2026 17:46:56 -0000</pubDate><guid>https://sourceforge.net/p/cppcheck/discussion/development/thread/1cf7f0973e/?limit=25#9c1d/af4c/680e/7827</guid></item><item><title>CHR posted a comment on discussion General Discussion</title><link>https://sourceforge.net/p/cppcheck/discussion/general/thread/4a0f4b49e9/?limit=25#1bd6</link><description>https://trac.cppcheck.net/ticket/15158 tracks the mismatchingContainersmessage. Having different smart pointers own the same resource is a bug waiting to happen, so I think showing a warning is desirable. Other issues still open.</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">CHR</dc:creator><pubDate>Fri, 30 Oct 2026 09:11:25 -0000</pubDate><guid>https://sourceforge.net/p/cppcheck/discussion/general/thread/4a0f4b49e9/?limit=25#1bd6</guid></item><item><title>CHR posted a comment on discussion General Discussion</title><link>https://sourceforge.net/p/cppcheck/discussion/general/thread/2f5f046cb2/?limit=25#47e1</link><description>Looks like a variation of Looks like a variation of https://trac.cppcheck.net/ticket/11562</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">CHR</dc:creator><pubDate>Fri, 30 Oct 2026 07:24:09 -0000</pubDate><guid>https://sourceforge.net/p/cppcheck/discussion/general/thread/2f5f046cb2/?limit=25#47e1</guid></item><item><title>CHR posted a comment on discussion General Discussion</title><link>https://sourceforge.net/p/cppcheck/discussion/general/thread/7059ee2727/?limit=25#2774</link><description>Thanks for reporting, ticket is here: https://trac.cppcheck.net/ticket/15157</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">CHR</dc:creator><pubDate>Fri, 30 Oct 2026 06:35:49 -0000</pubDate><guid>https://sourceforge.net/p/cppcheck/discussion/general/thread/7059ee2727/?limit=25#2774</guid></item><item><title>Long Huang posted a comment on discussion General Discussion</title><link>https://sourceforge.net/p/cppcheck/discussion/general/thread/4a0f4b49e9/?limit=25#84f4</link><description>Repro Save as value-flow.cpp: #include &lt;cassert&gt; #include &lt;memory&gt; bool DifferentOwners(std::unique_ptr&lt;int&gt;&amp; first, std::unique_ptr&lt;int&gt;&amp; second) { return static_cast&lt;void*&gt;(first.get()) != static_cast&lt;void*&gt;(second.get()); } double UnknownNumber(); void CompareCopiedValue() { const double number = UnknownNumber(); const double copy = number; assert(!(number &lt;= copy)); assert(!(number &lt; copy)); assert(!(number &gt;= copy)); assert(!(number &gt; copy)); } class Label { public: int Height() const; }; class...</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Long Huang</dc:creator><pubDate>Thu, 29 Oct 2026 21:20:22 -0000</pubDate><guid>https://sourceforge.net/p/cppcheck/discussion/general/thread/4a0f4b49e9/?limit=25#84f4</guid></item><item><title>Long Huang posted a comment on discussion General Discussion</title><link>https://sourceforge.net/p/cppcheck/discussion/general/thread/08060afad5/?limit=25#477d</link><description>I give up. Attached in txt file instead.</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Long Huang</dc:creator><pubDate>Thu, 29 Oct 2026 21:14:40 -0000</pubDate><guid>https://sourceforge.net/p/cppcheck/discussion/general/thread/08060afad5/?limit=25#477d</guid></item><item><title>Long Huang modified a comment on discussion General Discussion</title><link>https://sourceforge.net/p/cppcheck/discussion/general/thread/08060afad5/?limit=25#49d8</link><description>...I don't know what keyword is being triggered here for moderation but my post from months ago is still 'awaiting moderation'</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Long Huang</dc:creator><pubDate>Thu, 29 Oct 2026 21:12:46 -0000</pubDate><guid>https://sourceforge.net/p/cppcheck/discussion/general/thread/08060afad5/?limit=25#49d8</guid></item><item><title>Long Huang posted a comment on discussion General Discussion</title><link>https://sourceforge.net/p/cppcheck/discussion/general/thread/08060afad5/?limit=25#49d8</link><description>...I don't know what keyword is being triggered here for moderation but my last post from months ago is still 'awaiting moderation'</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Long Huang</dc:creator><pubDate>Thu, 29 Oct 2026 21:11:36 -0000</pubDate><guid>https://sourceforge.net/p/cppcheck/discussion/general/thread/08060afad5/?limit=25#49d8</guid></item><item><title>Long Huang posted a comment on discussion General Discussion</title><link>https://sourceforge.net/p/cppcheck/discussion/general/thread/2f5f046cb2/?limit=25#1ff4</link><description>Reproduction #include &lt;cassert&gt; class EventLoop { public: static void ProcessEvents(); }; class Listener { public: bool Start() { Waiting = true; for(int remaining = 2; remaining &gt; 0 &amp;&amp; Waiting; --remaining) { EventLoop::ProcessEvents(); } return !Waiting; } void Ready() { Waiting = false; } private: bool Waiting = false; }; Listener* ActiveListener = nullptr; void EventLoop::ProcessEvents() { ActiveListener-&gt;Ready(); } int main() { Listener listener; ActiveListener = &amp;listener; const bool started...</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Long Huang</dc:creator><pubDate>Thu, 29 Oct 2026 20:33:35 -0000</pubDate><guid>https://sourceforge.net/p/cppcheck/discussion/general/thread/2f5f046cb2/?limit=25#1ff4</guid></item><item><title>Long Huang posted a comment on discussion General Discussion</title><link>https://sourceforge.net/p/cppcheck/discussion/general/thread/7059ee2727/?limit=25#8fc8</link><description>For example, when distinct distance and speed constants both equal 1.0. Cppcheck flags their intentional division. Minimal reproduction Save as equal-constants-minimal.cpp: constexpr double DISTANCE_M = 1.0; constexpr double SPEED_MPS = 1.0; double TravelTimeSeconds() { return DISTANCE_M / SPEED_MPS; } Run with Cppcheck 2.22.0: cppcheck --enable=style --std=c++14 --template=gcc equal-constants-minimal.cpp Expected No duplicate-expression diagnostic solely because differently named constants have...</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Long Huang</dc:creator><pubDate>Thu, 29 Oct 2026 19:13:49 -0000</pubDate><guid>https://sourceforge.net/p/cppcheck/discussion/general/thread/7059ee2727/?limit=25#8fc8</guid></item><item><title>CHR posted a comment on discussion General Discussion</title><link>https://sourceforge.net/p/cppcheck/discussion/general/thread/b38869b994/?limit=25#9bc9</link><description>Thanks for reporting, ticket is here: https://trac.cppcheck.net/ticket/15154</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">CHR</dc:creator><pubDate>Thu, 29 Oct 2026 07:10:03 -0000</pubDate><guid>https://sourceforge.net/p/cppcheck/discussion/general/thread/b38869b994/?limit=25#9bc9</guid></item><item><title>Long Huang posted a comment on discussion General Discussion</title><link>https://sourceforge.net/p/cppcheck/discussion/general/thread/04fce01f9b/?limit=25#baef</link><description>For the record, these warnings appear when cppcheck only analyzes the header &amp; not the translation unit. So maybe not really a defect but just how it goes...</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Long Huang</dc:creator><pubDate>Wed, 28 Oct 2026 21:37:19 -0000</pubDate><guid>https://sourceforge.net/p/cppcheck/discussion/general/thread/04fce01f9b/?limit=25#baef</guid></item><item><title>Long Huang posted a comment on discussion General Discussion</title><link>https://sourceforge.net/p/cppcheck/discussion/general/thread/04fce01f9b/?limit=25#55f8</link><description>Minimal reproduction: scratch_functionStatic_callback.h: #pragma once class CallbackReceiver { public: void OnEvent(int) { } }; scratch_functionStatic_callback.cpp: #include "scratch_functionStatic_callback.h" template&lt;typename Receiver&gt; void Register(Receiver* receiver, void (Receiver::*callback)(int)) { (receiver-&gt;*callback)(1); } int main() { CallbackReceiver receiver; Register(&amp;receiver, &amp;CallbackReceiver::OnEvent); } Expected Expected: OnEvent remains a non-static member, registration requires...</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Long Huang</dc:creator><pubDate>Wed, 28 Oct 2026 20:51:00 -0000</pubDate><guid>https://sourceforge.net/p/cppcheck/discussion/general/thread/04fce01f9b/?limit=25#55f8</guid></item><item><title>Long Huang posted a comment on discussion General Discussion</title><link>https://sourceforge.net/p/cppcheck/discussion/general/thread/b38869b994/?limit=25#e3ab</link><description>A fixture retains a non-owning pointer obtained from a local std::unique_ptr. The unique pointer is then moved into a separately implemented owner's constructor, which moves it into a member. The pointee outlives the fixture's creation method, but cppcheck reports that the observer points to a local variable. owner.h: #pragma once #include &lt;memory&gt; class Callback { public: virtual ~Callback() = default; virtual void Invoke() = 0; }; class Owner { public: explicit Owner(std::unique_ptr&lt;Callback&gt; callback);...</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Long Huang</dc:creator><pubDate>Wed, 28 Oct 2026 20:48:40 -0000</pubDate><guid>https://sourceforge.net/p/cppcheck/discussion/general/thread/b38869b994/?limit=25#e3ab</guid></item><item><title>john borland posted a comment on discussion Development</title><link>https://sourceforge.net/p/cppcheck/discussion/development/thread/1cf7f0973e/?limit=25#9c1d/af4c/680e</link><description>Ok I just noticed some of the dates in those PR files I got the packages from. I will remove all the PR files from before Oct 6. Given that is about half of them I will probably add a few more and rerun my code. Hopefully I will see better coverage numbers on the low end. What ever happened to http://cppcheck1.osuosl.org:8000/? When I try to go to the link it says the website can't be reached. I was thinking of pulling the package list from there but the site seems down. I was hoping to also get...</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">john borland</dc:creator><pubDate>Sun, 25 Oct 2026 20:33:31 -0000</pubDate><guid>https://sourceforge.net/p/cppcheck/discussion/development/thread/1cf7f0973e/?limit=25#9c1d/af4c/680e</guid></item><item><title>CHR posted a comment on discussion Development</title><link>https://sourceforge.net/p/cppcheck/discussion/development/thread/1cf7f0973e/?limit=25#9c1d/af4c</link><description>It looks like merged PRs are not flushed out, e.g. https://github.com/cppcheck-opensource/cppcheck/pull/8934</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">CHR</dc:creator><pubDate>Thu, 22 Oct 2026 09:21:48 -0000</pubDate><guid>https://sourceforge.net/p/cppcheck/discussion/development/thread/1cf7f0973e/?limit=25#9c1d/af4c</guid></item><item><title>CHR posted a comment on discussion General Discussion</title><link>https://sourceforge.net/p/cppcheck/discussion/general/thread/679e0166d4/?limit=25#b025</link><description>Thanks for reporting, ticket is here: https://trac.cppcheck.net/ticket/15126</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">CHR</dc:creator><pubDate>Thu, 22 Oct 2026 07:45:29 -0000</pubDate><guid>https://sourceforge.net/p/cppcheck/discussion/general/thread/679e0166d4/?limit=25#b025</guid></item><item><title>Joel Shuman posted a comment on discussion General Discussion</title><link>https://sourceforge.net/p/cppcheck/discussion/general/thread/679e0166d4/?limit=25#f48c</link><description>I also should mention that cppcheck 2.19.0 did not have this false positive.</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Joel Shuman</dc:creator><pubDate>Wed, 21 Oct 2026 12:25:21 -0000</pubDate><guid>https://sourceforge.net/p/cppcheck/discussion/general/thread/679e0166d4/?limit=25#f48c</guid></item><item><title>Joel Shuman posted a comment on discussion General Discussion</title><link>https://sourceforge.net/p/cppcheck/discussion/general/thread/679e0166d4/?limit=25#a3b8</link><description>Hello, We ran into a corner-case false-positive syntaxError I'd like to report. It is similar to this which was fixed long ago. In this corner-case, using the override keyword causes the false positive. struct base { virtual ~base() = default; virtual void foo() try {} catch (...) {}; }; struct special : base { void foo() override // This override causes the try on the next line to false fail. try {} catch (...) {} }; int main() { special s; s.foo(); return 0; } I am testing with cppcheck 2.22.0....</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Joel Shuman</dc:creator><pubDate>Wed, 21 Oct 2026 12:14:59 -0000</pubDate><guid>https://sourceforge.net/p/cppcheck/discussion/general/thread/679e0166d4/?limit=25#a3b8</guid></item><item><title>john borland posted a comment on discussion Development</title><link>https://sourceforge.net/p/cppcheck/discussion/development/thread/1cf7f0973e/?limit=25#d2e2</link><description>I wrote a couple of bash scripts to run over the weekend to do code coverage of the released 2.22.0 version of cppcheck with debian packages (It's still running). I wasn't sure how you knows a package had C/C++ code in them, so I just pulled from the following 9 PR's below and hopped for the best. 2026-02-18_12-13-45-d234d745fefe-results.txt 2026-10-05_07-31-15-7f232989d1f9-results.txt 2026-10-09_20-01-23-da724f2e5700-results.txt 2026-09-08_13-51-12-2a0c507aec8b-results.txt 2026-10-05_14-59-08-c5bef2ae24cd-results.txt...</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">john borland</dc:creator><pubDate>Mon, 19 Oct 2026 15:54:04 -0000</pubDate><guid>https://sourceforge.net/p/cppcheck/discussion/development/thread/1cf7f0973e/?limit=25#d2e2</guid></item><item><title>XHATN posted a comment on discussion General Discussion</title><link>https://sourceforge.net/p/cppcheck/discussion/general/thread/cddcede947/?limit=25#4e09</link><description>I found that cppcheck’s addon dump can produce MISRA diagnostics in a non-source order. In SymbolDatabase::printXml() (lib/symboldatabase.cpp), variables are collected in std::set&lt;const Variable*&gt; before the &lt;variables&gt; XML section is written. This orders records by object-pointer address instead of a stable source key. The MISRA addon reads that XML order into data.variables, and Rule 9.3 then iterates data.variables directly. Therefore Rule 9.3 diagnostics can be reported in a different order from...</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">XHATN</dc:creator><pubDate>Wed, 14 Oct 2026 07:54:48 -0000</pubDate><guid>https://sourceforge.net/p/cppcheck/discussion/general/thread/cddcede947/?limit=25#4e09</guid></item><item><title>CHR posted a comment on discussion General Discussion</title><link>https://sourceforge.net/p/cppcheck/discussion/general/thread/dba00ceeff/?limit=25#5c31</link><description>Thanks for reporting, ticket is here: https://trac.cppcheck.net/ticket/15103</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">CHR</dc:creator><pubDate>Mon, 12 Oct 2026 12:16:59 -0000</pubDate><guid>https://sourceforge.net/p/cppcheck/discussion/general/thread/dba00ceeff/?limit=25#5c31</guid></item><item><title>Dan Workman posted a comment on discussion General Discussion</title><link>https://sourceforge.net/p/cppcheck/discussion/general/thread/dba00ceeff/?limit=25#335e</link><description>Found in cppcheck 2.22 Running cppcheck --enable=style --std=c++17 --template=gcc repro.cpp on #include &lt;functional&gt; #include &lt;vector&gt; struct Item {}; void example() { Item value; auto&amp; ref = value; std::vector&lt;std::reference_wrapper&lt;Item&gt;&gt; refs{ref}; } gives Variable 'ref' can be declared as reference to const [constVariableReference]</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Dan Workman</dc:creator><pubDate>Mon, 12 Oct 2026 11:34:59 -0000</pubDate><guid>https://sourceforge.net/p/cppcheck/discussion/general/thread/dba00ceeff/?limit=25#335e</guid></item><item><title>john borland posted a comment on discussion Development</title><link>https://sourceforge.net/p/cppcheck/discussion/development/thread/1cf7f0973e/?limit=25#0e1c</link><description>Depending on how many tokens you want to use here are other things you can ask AI about a PR. Will this PR require the cppcheck manual to change? if yes which sections. What unit test cover these changes? if no unit test is found can please write one. What do you think the intent of this PR is?</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">john borland</dc:creator><pubDate>Sat, 10 Oct 2026 01:13:06 -0000</pubDate><guid>https://sourceforge.net/p/cppcheck/discussion/development/thread/1cf7f0973e/?limit=25#0e1c</guid></item><item><title>john borland posted a comment on discussion Development</title><link>https://sourceforge.net/p/cppcheck/discussion/development/thread/7a9474d703/?limit=25#50ed</link><description>To me this talk has lived rent free in my brain since 2012 https://youtu.be/5wwKjdvPxa8 its about how CI can be used as a code reviewer. Most CI systems are pass fail. But there tea leaves that often go unnoticed. I think in the age of AI its probably a good idea to use AI as a first pass aproach to keep from getting overwhelmed. I even know of an open source project that is talking internally about poising their skill file to say all issues must be written using Shakespearen English. That way they...</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">john borland</dc:creator><pubDate>Fri, 09 Oct 2026 23:22:33 -0000</pubDate><guid>https://sourceforge.net/p/cppcheck/discussion/development/thread/7a9474d703/?limit=25#50ed</guid></item><item><title>CHR posted a comment on discussion Development</title><link>https://sourceforge.net/p/cppcheck/discussion/development/thread/1cf7f0973e/?limit=25#bedf/3aec</link><description>Please provide feedback. Do you think I should tweak the reports or output somehow? Having a link to the actual PR would be nice (instead of/additional to linking to the AWS files). How is reanalysis supposed to work? E.g. for #8918, the latest commit shown is from Oct 5, while there is a newer commit from Oct 7 already (https://github.com/cppcheck-opensource/cppcheck/pull/8918/changes/97161058bc8dbc7b18acf69ae1cf324a21507f65).</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">CHR</dc:creator><pubDate>Thu, 08 Oct 2026 07:49:55 -0000</pubDate><guid>https://sourceforge.net/p/cppcheck/discussion/development/thread/1cf7f0973e/?limit=25#bedf/3aec</guid></item><item><title>john borland posted a comment on discussion Development</title><link>https://sourceforge.net/p/cppcheck/discussion/development/thread/1cf7f0973e/?limit=25#72d1</link><description>I think one thing that matters a lot is how easy is it for you to integrate into your workflow. For me given that I learned to code inside a unix terminal and never evolved to using an IDE to code with AI isnt to difficult to record my interactions with. The script command https://www.redhat.com/en/blog/linux-script-command does alot of the heavy lifting. I also write a bit of data like starting and stopping git hash as well as the ai model version and token usage to a file. That way I can restore...</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">john borland</dc:creator><pubDate>Thu, 08 Oct 2026 01:44:51 -0000</pubDate><guid>https://sourceforge.net/p/cppcheck/discussion/development/thread/1cf7f0973e/?limit=25#72d1</guid></item><item><title>Daniel Marjamäki posted a comment on discussion Development</title><link>https://sourceforge.net/p/cppcheck/discussion/development/thread/1cf7f0973e/?limit=25#f1ec/6278</link><description>One thing I recomend when it comes to AI is to keep internal metrics so that you can better help you evluete AI future solutions how do you suggest that I do that?</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Daniel Marjamäki</dc:creator><pubDate>Wed, 07 Oct 2026 19:25:32 -0000</pubDate><guid>https://sourceforge.net/p/cppcheck/discussion/development/thread/1cf7f0973e/?limit=25#f1ec/6278</guid></item><item><title>john borland posted a comment on discussion Development</title><link>https://sourceforge.net/p/cppcheck/discussion/development/thread/1cf7f0973e/?limit=25#f1ec</link><description>One thing I recomend when it comes to AI is to keep internal metrics so that you can better help you evluete AI future solutions. That includes keeping track of the work done by AI which you can put a tag in an issue or a tag in the git commit message. You will want to be able to match that tag to a prompt, token usage and model version number. That way if you want to make changes later to your AI process you can test it aginst past solutions to see if the change adds value. On a side note one thing...</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">john borland</dc:creator><pubDate>Wed, 07 Oct 2026 16:28:29 -0000</pubDate><guid>https://sourceforge.net/p/cppcheck/discussion/development/thread/1cf7f0973e/?limit=25#f1ec</guid></item><item><title>CHR modified a comment on discussion Development</title><link>https://sourceforge.net/p/cppcheck/discussion/development/thread/1cf7f0973e/?limit=25#3934</link><description>Good idea 👍 Having the user name in a column would be nice. Also, some PRs seem to be missing. Are they still being processed?</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">CHR</dc:creator><pubDate>Wed, 07 Oct 2026 11:53:10 -0000</pubDate><guid>https://sourceforge.net/p/cppcheck/discussion/development/thread/1cf7f0973e/?limit=25#3934</guid></item><item><title>Daniel Marjamäki posted a comment on discussion Development</title><link>https://sourceforge.net/p/cppcheck/discussion/development/thread/7a9474d703/?limit=25#3d5a</link><description>I am adding AI reviews in opensource cppcheck AI is not perfect there is some bad review comments. As a PR author you can reject such comments by resolving them. My idea going forward is that I will not review a PR manually if there are open AI reviews. I want to limit the amount of manual reviews because; for reviewers it takes a lot of time. I don't want to waste time on nits that we could avoid automatically. I have to re-review the whole PR every time I see some nits. for developers manual reviews...</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Daniel Marjamäki</dc:creator><pubDate>Wed, 07 Oct 2026 08:47:56 -0000</pubDate><guid>https://sourceforge.net/p/cppcheck/discussion/development/thread/7a9474d703/?limit=25#3d5a</guid></item><item><title>Daniel Marjamäki posted a comment on discussion Development</title><link>https://sourceforge.net/p/cppcheck/discussion/development/thread/1cf7f0973e/?limit=25#9c1d</link><description>It's still being processed. If we will have trouble to keep up with open PRs I think we can launch more runner VMs. It might be low with 100/1000 .. I will see if it makes sense to increase these values later. At least if a runner is idle it could fill up more packages..</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Daniel Marjamäki</dc:creator><pubDate>Wed, 07 Oct 2026 08:30:30 -0000</pubDate><guid>https://sourceforge.net/p/cppcheck/discussion/development/thread/1cf7f0973e/?limit=25#9c1d</guid></item><item><title>CHR modified a comment on discussion Development</title><link>https://sourceforge.net/p/cppcheck/discussion/development/thread/1cf7f0973e/?limit=25#3934</link><description>Good idea 🆙 Having the user name in a column would be nice. Also, some PRs seem to be missing. Are they still being processed?</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">CHR</dc:creator><pubDate>Wed, 07 Oct 2026 07:57:22 -0000</pubDate><guid>https://sourceforge.net/p/cppcheck/discussion/development/thread/1cf7f0973e/?limit=25#3934</guid></item><item><title>CHR posted a comment on discussion Development</title><link>https://sourceforge.net/p/cppcheck/discussion/development/thread/1cf7f0973e/?limit=25#3934</link><description>Good idea 🆙 Having the user name in a column would be nice.</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">CHR</dc:creator><pubDate>Wed, 07 Oct 2026 07:26:27 -0000</pubDate><guid>https://sourceforge.net/p/cppcheck/discussion/development/thread/1cf7f0973e/?limit=25#3934</guid></item><item><title>Daniel Marjamäki modified a comment on discussion Development</title><link>https://sourceforge.net/p/cppcheck/discussion/development/thread/1cf7f0973e/?limit=25#bedf</link><description>I am experimenting with a webserver that will execute the test-my-pr script on PRs. I want more or less that it will provide daca@home feedback directly when somebody works on a PR. http://ec2-16-170-140-253.eu-north-1.compute.amazonaws.com/ It is only executed on open non-draft PRs that have a successful CI. It will execute on 1000 packages if the PR modifies tokenizer or valueflow. Otherwise it will execute on 100 packages. When I started it , it would count packages even if they did not have C/C++...</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Daniel Marjamäki</dc:creator><pubDate>Tue, 06 Oct 2026 11:08:46 -0000</pubDate><guid>https://sourceforge.net/p/cppcheck/discussion/development/thread/1cf7f0973e/?limit=25#bedf</guid></item><item><title>Daniel Marjamäki posted a comment on discussion Development</title><link>https://sourceforge.net/p/cppcheck/discussion/development/thread/1cf7f0973e/?limit=25#bedf</link><description>I am experimenting with a webserver that will execute the test-my-pr script on PRs: http://ec2-16-170-140-253.eu-north-1.compute.amazonaws.com/ It will execute on 1000 packages if the PR modifies tokenizer or valueflow. Otherwise it will execute on 100 packages. When I started it , it would count packages even if they did not have C/C++ code that is fixed now.. AI-generated verdicts will be provided for a random subset of the warnings (up to 20 or so). Those should be taken with a grain of salt for...</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Daniel Marjamäki</dc:creator><pubDate>Tue, 06 Oct 2026 11:07:13 -0000</pubDate><guid>https://sourceforge.net/p/cppcheck/discussion/development/thread/1cf7f0973e/?limit=25#bedf</guid></item><item><title>CHR posted a comment on discussion General Discussion</title><link>https://sourceforge.net/p/cppcheck/discussion/general/thread/700cb0669a/?limit=25#a8ad</link><description>Thanks for reporting, ticket is here: https://trac.cppcheck.net/ticket/15089</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">CHR</dc:creator><pubDate>Mon, 05 Oct 2026 06:57:11 -0000</pubDate><guid>https://sourceforge.net/p/cppcheck/discussion/general/thread/700cb0669a/?limit=25#a8ad</guid></item><item><title>CHR posted a comment on discussion General Discussion</title><link>https://sourceforge.net/p/cppcheck/discussion/general/thread/f8ab273b73/?limit=25#10b4</link><description>Thanks for reporting, ticket is here: https://trac.cppcheck.net/ticket/15088</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">CHR</dc:creator><pubDate>Mon, 05 Oct 2026 06:51:18 -0000</pubDate><guid>https://sourceforge.net/p/cppcheck/discussion/general/thread/f8ab273b73/?limit=25#10b4</guid></item><item><title>CHR posted a comment on discussion General Discussion</title><link>https://sourceforge.net/p/cppcheck/discussion/general/thread/4bd473913e/?limit=25#7c77</link><description>Thanks for reporting, ticket is here: https://trac.cppcheck.net/ticket/15087</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">CHR</dc:creator><pubDate>Mon, 05 Oct 2026 06:41:19 -0000</pubDate><guid>https://sourceforge.net/p/cppcheck/discussion/general/thread/4bd473913e/?limit=25#7c77</guid></item><item><title>CHR posted a comment on discussion General Discussion</title><link>https://sourceforge.net/p/cppcheck/discussion/general/thread/b0e8d6fdfd/?limit=25#8784</link><description>Thanks for reporting, ticket is here: https://trac.cppcheck.net/ticket/15086</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">CHR</dc:creator><pubDate>Sun, 04 Oct 2026 18:48:36 -0000</pubDate><guid>https://sourceforge.net/p/cppcheck/discussion/general/thread/b0e8d6fdfd/?limit=25#8784</guid></item><item><title>CJ Wood posted a comment on discussion General Discussion</title><link>https://sourceforge.net/p/cppcheck/discussion/general/thread/4bd473913e/?limit=25#af2a</link><description>I see a false positive running cppcheck 2.22.0 against the following code. Note the parameter cannot be declared as reference to const because its job is to match both const and mutable references, and return a reference to a member which retains the const-ness of the first argument (similar to the 'deduce this' pattern). The static asserts demonstrate the intended use cases. Note also that the false positive goes away if the concept is inlined as a template requires clause on the function itself...</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">CJ Wood</dc:creator><pubDate>Sun, 04 Oct 2026 11:25:53 -0000</pubDate><guid>https://sourceforge.net/p/cppcheck/discussion/general/thread/4bd473913e/?limit=25#af2a</guid></item><item><title>CJ Wood posted a comment on discussion General Discussion</title><link>https://sourceforge.net/p/cppcheck/discussion/general/thread/700cb0669a/?limit=25#9307</link><description>I see a false positive running cppcheck 2.22.0 against the following code. Note the function itself cannot be static because it's an explicit member function (deducing this). #include &lt;array&gt; #include &lt;cstddef&gt; #include &lt;ranges&gt; #include &lt;span&gt; constexpr std::size_t GridSize{19}; class board { public: auto rows(this auto&amp;&amp; self) { auto* cells = self.data.data(); return std::views::iota(0zu, GridSize) | std::views::transform([cells](std::size_t row) { return std::span{cells + row * GridSize, GridSize};...</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">CJ Wood</dc:creator><pubDate>Sat, 03 Oct 2026 21:56:20 -0000</pubDate><guid>https://sourceforge.net/p/cppcheck/discussion/general/thread/700cb0669a/?limit=25#9307</guid></item><item><title>Dan Workman modified a comment on discussion General Discussion</title><link>https://sourceforge.net/p/cppcheck/discussion/general/thread/f8ab273b73/?limit=25#40d3</link><description>We've had this issue for many releases so can't provide a version that it started Running cppcheck --std=c++20 --enable=style,warning --template=gcc repro.cpp on namespace Legacy { struct Base { int Count() const; virtual void Print() const; virtual ~Base() = default; }; struct Position : Base { }; } using namespace Legacy; namespace Modern { struct Position { int Count() const; void Print() const; }; } gives repro.cpp:21:7: warning: The struct 'Position' defines member function with name 'Count'...</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Dan Workman</dc:creator><pubDate>Fri, 02 Oct 2026 13:13:04 -0000</pubDate><guid>https://sourceforge.net/p/cppcheck/discussion/general/thread/f8ab273b73/?limit=25#40d3</guid></item><item><title>Dan Workman posted a comment on discussion General Discussion</title><link>https://sourceforge.net/p/cppcheck/discussion/general/thread/f8ab273b73/?limit=25#40d3</link><description>We've had this issue for many releases so can't provide a version that it started Running cppcheck --std=c++20 --enable=style,warning --template=gcc repro.cpp on namespace Legacy { struct Base { int Count() const; virtual void Print() const; virtual ~Base() = default; }; struct Position : Base { }; } using namespace Legacy; namespace Modern { struct Position { int Count() const; void Print() const; }; } gives repro.cpp:21:7: warning: The struct 'Position' defines member function with name 'Count'...</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Dan Workman</dc:creator><pubDate>Fri, 02 Oct 2026 13:07:32 -0000</pubDate><guid>https://sourceforge.net/p/cppcheck/discussion/general/thread/f8ab273b73/?limit=25#40d3</guid></item><item><title>CHR posted a comment on discussion General Discussion</title><link>https://sourceforge.net/p/cppcheck/discussion/general/thread/b0e8d6fdfd/?limit=25#4f99</link><description>Reduced: struct S { bool f() const; int g() const; int x, y; }; bool S::f() const { const bool b = x ? g() &lt; 0 : 0 &gt; y; return b; }</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">CHR</dc:creator><pubDate>Fri, 02 Oct 2026 11:02:36 -0000</pubDate><guid>https://sourceforge.net/p/cppcheck/discussion/general/thread/b0e8d6fdfd/?limit=25#4f99</guid></item><item><title>Dan Workman modified a comment on discussion General Discussion</title><link>https://sourceforge.net/p/cppcheck/discussion/general/thread/b0e8d6fdfd/?limit=25#2d6d</link><description>Came in when upgrading from 2.21 to 2.22 Running cppcheck --std=c++20 --template=gcc on #include &lt;algorithm&gt; #include &lt;vector&gt; struct Box { float xMin, yMin, xMax, yMax; float Height() const { return yMax - yMin; } }; struct Processor { std::vector&lt;Box&gt; Update(const std::vector&lt;Box&gt;&amp; input, int begin, int end) const; }; std::vector&lt;Box&gt; Processor::Update(const std::vector&lt;Box&gt;&amp; input, int begin, int end) const { std::vector&lt;Box&gt; output; const auto visit = [&amp;](int first, int last) { for (const auto&amp;...</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Dan Workman</dc:creator><pubDate>Fri, 02 Oct 2026 10:35:41 -0000</pubDate><guid>https://sourceforge.net/p/cppcheck/discussion/general/thread/b0e8d6fdfd/?limit=25#2d6d</guid></item><item><title>Dan Workman modified a comment on discussion General Discussion</title><link>https://sourceforge.net/p/cppcheck/discussion/general/thread/b0e8d6fdfd/?limit=25#2d6d</link><description>Came in when upgrading from 2.21 to 2.22 Running cppcheck --std=c++20 --template=gcc on #include &lt;algorithm&gt; #include &lt;vector&gt; struct Box { float xMin, yMin, xMax, yMax; float Height() const { return yMax - yMin; } }; struct Processor { std::vector&lt;Box&gt; Update(const std::vector&lt;Box&gt;&amp; input, int begin, int end) const; }; std::vector&lt;Box&gt; Processor::Update(const std::vector&lt;Box&gt;&amp; input, int begin, int end) const { std::vector&lt;Box&gt; output; const auto visit = [&amp;](int first, int last) { for (const auto&amp;...</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Dan Workman</dc:creator><pubDate>Fri, 02 Oct 2026 10:31:12 -0000</pubDate><guid>https://sourceforge.net/p/cppcheck/discussion/general/thread/b0e8d6fdfd/?limit=25#2d6d</guid></item><item><title>Dan Workman modified a comment on discussion General Discussion</title><link>https://sourceforge.net/p/cppcheck/discussion/general/thread/b0e8d6fdfd/?limit=25#2d6d</link><description>Came in when upgrading from 2.21 to 2.22 Running cppcheck --std=c++20 --template=gcc --error-exitcode=2 repro.cpp on #include &lt;algorithm&gt; #include &lt;vector&gt; struct Box { float xMin, yMin, xMax, yMax; float Height() const { return yMax - yMin; } }; struct Processor { std::vector&lt;Box&gt; Update(const std::vector&lt;Box&gt;&amp; input, int begin, int end) const; }; std::vector&lt;Box&gt; Processor::Update(const std::vector&lt;Box&gt;&amp; input, int begin, int end) const { std::vector&lt;Box&gt; output; const auto visit = [&amp;](int first,...</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Dan Workman</dc:creator><pubDate>Fri, 02 Oct 2026 10:30:52 -0000</pubDate><guid>https://sourceforge.net/p/cppcheck/discussion/general/thread/b0e8d6fdfd/?limit=25#2d6d</guid></item><item><title>Dan Workman posted a comment on discussion General Discussion</title><link>https://sourceforge.net/p/cppcheck/discussion/general/thread/b0e8d6fdfd/?limit=25#2d6d</link><description>Came in when upgrading from 2.21 to 2.22 Running cppcheck --std=c++20 --template=gcc --error-exitcode=2 repro.cpp on #include &lt;algorithm&gt; #include &lt;vector&gt; struct Box { float xMin, yMin, xMax, yMax; float Height() const { return yMax - yMin; } }; struct Processor { std::vector&lt;Box&gt; Update(const std::vector&lt;Box&gt;&amp; input, int begin, int end) const; }; std::vector&lt;Box&gt; Processor::Update(const std::vector&lt;Box&gt;&amp; input, int begin, int end) const { std::vector&lt;Box&gt; output; const auto visit = [&amp;](int first,...</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Dan Workman</dc:creator><pubDate>Fri, 02 Oct 2026 10:30:02 -0000</pubDate><guid>https://sourceforge.net/p/cppcheck/discussion/general/thread/b0e8d6fdfd/?limit=25#2d6d</guid></item><item><title>lamoda modified a comment on discussion General Discussion</title><link>https://sourceforge.net/p/cppcheck/discussion/general/thread/170605db86/?limit=25#28b0/cf59</link><description>i got this error and point to first { open braces when i use this code in my sources cppcheck run this check from myproject.cppcheck but i have no any error when i check this file or dir with my sources</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">lamoda</dc:creator><pubDate>Fri, 02 Oct 2026 06:49:21 -0000</pubDate><guid>https://sourceforge.net/p/cppcheck/discussion/general/thread/170605db86/?limit=25#28b0/cf59</guid></item><item><title>lamoda modified a comment on discussion General Discussion</title><link>https://sourceforge.net/p/cppcheck/discussion/general/thread/170605db86/?limit=25#28b0/cf59</link><description>i got this error and point to first { open braces when i use this code in my sources cppcheck run this check from myproject.cppcheck but i have no any error when i just this file</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">lamoda</dc:creator><pubDate>Fri, 02 Oct 2026 06:48:10 -0000</pubDate><guid>https://sourceforge.net/p/cppcheck/discussion/general/thread/170605db86/?limit=25#28b0/cf59</guid></item><item><title>lamoda posted a comment on discussion General Discussion</title><link>https://sourceforge.net/p/cppcheck/discussion/general/thread/170605db86/?limit=25#28b0/cf59</link><description>i got this error and point to { open braces when i use this code in my sources cppcheck run this check from myproject.cppcheck but i have no any error when i just this file</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">lamoda</dc:creator><pubDate>Fri, 02 Oct 2026 05:43:01 -0000</pubDate><guid>https://sourceforge.net/p/cppcheck/discussion/general/thread/170605db86/?limit=25#28b0/cf59</guid></item><item><title>Penguin posted a comment on discussion General Discussion</title><link>https://sourceforge.net/p/cppcheck/discussion/general/thread/244acadbd0/?limit=25#d704</link><description>Hello, I found a preprocessing cache issue and have prepared a fix and regression test locally. Could a team member please create a Trac ticket so I can reference it in a pull request? Issue With --cppcheck-build-dir, unchanged input can be analyzed again on the immediate second run because the preprocessing hash depends on header load order. I reproduced this on commit fa6c1f1327057cb8ad4764df236daf6d3c70e359, using Windows x64 and an MSVC 2022 Debug build. Minimal reproduction Create these three...</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Penguin</dc:creator><pubDate>Thu, 01 Oct 2026 16:19:56 -0000</pubDate><guid>https://sourceforge.net/p/cppcheck/discussion/general/thread/244acadbd0/?limit=25#d704</guid></item><item><title>CHR posted a comment on discussion General Discussion</title><link>https://sourceforge.net/p/cppcheck/discussion/general/thread/22d82d68ea/?limit=25#0300</link><description>Thanks for reporting, ticket is here: https://trac.cppcheck.net/ticket/15076</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">CHR</dc:creator><pubDate>Wed, 30 Sep 2026 08:11:01 -0000</pubDate><guid>https://sourceforge.net/p/cppcheck/discussion/general/thread/22d82d68ea/?limit=25#0300</guid></item><item><title>CHR posted a comment on discussion General Discussion</title><link>https://sourceforge.net/p/cppcheck/discussion/general/thread/86715f4043/?limit=25#efd6</link><description>Thanks for reporting, ticket is here: https://trac.cppcheck.net/ticket/15075</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">CHR</dc:creator><pubDate>Wed, 30 Sep 2026 07:57:57 -0000</pubDate><guid>https://sourceforge.net/p/cppcheck/discussion/general/thread/86715f4043/?limit=25#efd6</guid></item><item><title>CHR posted a comment on discussion General Discussion</title><link>https://sourceforge.net/p/cppcheck/discussion/general/thread/716e9ce042/?limit=25#4d95</link><description>See https://trac.cppcheck.net/ticket/14677</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">CHR</dc:creator><pubDate>Wed, 30 Sep 2026 07:53:59 -0000</pubDate><guid>https://sourceforge.net/p/cppcheck/discussion/general/thread/716e9ce042/?limit=25#4d95</guid></item><item><title>CHR posted a comment on discussion General Discussion</title><link>https://sourceforge.net/p/cppcheck/discussion/general/thread/dfa53e1917/?limit=25#1d21</link><description>Thanks for reporting, ticket is here: https://trac.cppcheck.net/ticket/15074</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">CHR</dc:creator><pubDate>Wed, 30 Sep 2026 07:51:11 -0000</pubDate><guid>https://sourceforge.net/p/cppcheck/discussion/general/thread/dfa53e1917/?limit=25#1d21</guid></item><item><title>CHR posted a comment on discussion General Discussion</title><link>https://sourceforge.net/p/cppcheck/discussion/general/thread/7c69982aba/?limit=25#759a</link><description>Thanks for reporting, ticket is here: https://trac.cppcheck.net/ticket/15073</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">CHR</dc:creator><pubDate>Wed, 30 Sep 2026 06:41:10 -0000</pubDate><guid>https://sourceforge.net/p/cppcheck/discussion/general/thread/7c69982aba/?limit=25#759a</guid></item><item><title>CHR posted a comment on discussion General Discussion</title><link>https://sourceforge.net/p/cppcheck/discussion/general/thread/d8b17df0a1/?limit=25#2604</link><description>Looks like a special case of https://trac.cppcheck.net/ticket/1606</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">CHR</dc:creator><pubDate>Wed, 30 Sep 2026 06:29:20 -0000</pubDate><guid>https://sourceforge.net/p/cppcheck/discussion/general/thread/d8b17df0a1/?limit=25#2604</guid></item><item><title>CHR posted a comment on discussion General Discussion</title><link>https://sourceforge.net/p/cppcheck/discussion/general/thread/0e96823cef/?limit=25#73e0</link><description>See https://trac.cppcheck.net/ticket/9921 and others.</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">CHR</dc:creator><pubDate>Wed, 30 Sep 2026 06:23:31 -0000</pubDate><guid>https://sourceforge.net/p/cppcheck/discussion/general/thread/0e96823cef/?limit=25#73e0</guid></item><item><title>CHR posted a comment on discussion General Discussion</title><link>https://sourceforge.net/p/cppcheck/discussion/general/thread/72832ae6be/?limit=25#8e4f</link><description>See https://trac.cppcheck.net/ticket/2853</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">CHR</dc:creator><pubDate>Wed, 30 Sep 2026 06:21:00 -0000</pubDate><guid>https://sourceforge.net/p/cppcheck/discussion/general/thread/72832ae6be/?limit=25#8e4f</guid></item><item><title>CHR posted a comment on discussion General Discussion</title><link>https://sourceforge.net/p/cppcheck/discussion/general/thread/1dc2d65422/?limit=25#0538</link><description>See https://trac.cppcheck.net/ticket/10201</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">CHR</dc:creator><pubDate>Wed, 30 Sep 2026 06:18:05 -0000</pubDate><guid>https://sourceforge.net/p/cppcheck/discussion/general/thread/1dc2d65422/?limit=25#0538</guid></item><item><title>Rodri posted a comment on discussion General Discussion</title><link>https://sourceforge.net/p/cppcheck/discussion/general/thread/0e96823cef/?limit=25#d4d0</link><description>Hi, I found a false negative regarding the rule arrayIndexOutOfBounds. Cppcheck misses an out-of-bounds write when the array is accessed through a pointer alias. int a[2]; void f() { int *p = a; p[2] = 0; } Actual result Cppcheck does not report arrayIndexOutOfBounds. Replacing p[2] = 0 with a[2] = 0 produces the warning. Expected result Cppcheck should report the out-of-bounds write through the alias. Verification The issue was reproduced with: cppcheck --output-format=xmlv2 --enable=all array_alias.cpp...</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Rodri</dc:creator><pubDate>Tue, 29 Sep 2026 15:51:33 -0000</pubDate><guid>https://sourceforge.net/p/cppcheck/discussion/general/thread/0e96823cef/?limit=25#d4d0</guid></item><item><title>Rodri posted a comment on discussion General Discussion</title><link>https://sourceforge.net/p/cppcheck/discussion/general/thread/dfa53e1917/?limit=25#6eba</link><description>Hi, I found a false negative regarding the rule arrayIndexOutOfBounds. Cppcheck misses an out-of-bounds write when the array expression is written as the address of its first element. int a[2]; void f() { (&amp;a[0])[2] = 0; } Actual result Cppcheck does not report arrayIndexOutOfBounds. Replacing (&amp;a[0])[2] = 0 with a[2] = 0 produces the warning. The form ((int *)a)[2] = 0 is also missed. Expected result Cppcheck should report the out-of-bounds write in these equivalent subscript forms. Verification...</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Rodri</dc:creator><pubDate>Tue, 29 Sep 2026 15:50:26 -0000</pubDate><guid>https://sourceforge.net/p/cppcheck/discussion/general/thread/dfa53e1917/?limit=25#6eba</guid></item><item><title>Rodri posted a comment on discussion General Discussion</title><link>https://sourceforge.net/p/cppcheck/discussion/general/thread/72832ae6be/?limit=25#101d</link><description>Hi, I found a false negative regarding the rule resourceLeak. Cppcheck misses the resource leak when the null check uses a local alias of the file pointer. #include &lt;cstdio&gt; int f() { const FILE *a = fopen("input.txt", "r"); const FILE *b = a; if (!b) return 0; return 0; } Actual result Cppcheck does not report resourceLeak. Removing b and changing the condition to if (!a) produces the warning. Expected result Cppcheck should report the missing fclose in both forms. Verification The issue was reproduced...</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Rodri</dc:creator><pubDate>Tue, 29 Sep 2026 15:27:15 -0000</pubDate><guid>https://sourceforge.net/p/cppcheck/discussion/general/thread/72832ae6be/?limit=25#101d</guid></item><item><title>Rodri posted a comment on discussion General Discussion</title><link>https://sourceforge.net/p/cppcheck/discussion/general/thread/d8b17df0a1/?limit=25#785d</link><description>Hi, I found a false negative regarding the rule memleak. Cppcheck misses the leak when the allocated buffer is accessed through a pointer-to-pointer alias. #include &lt;stdlib.h&gt; int f(void) { int result = 0; char *a = malloc(10); char **b = &amp;a; if (*b) { (*b)[0] = 0; result = (*b)[0]; } return result; } Actual result Cppcheck does not report memleak. Removing b and replacing each *b access with a produces the warning. Expected result Cppcheck should report the missing free in both forms. Verification...</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Rodri</dc:creator><pubDate>Tue, 29 Sep 2026 15:23:42 -0000</pubDate><guid>https://sourceforge.net/p/cppcheck/discussion/general/thread/d8b17df0a1/?limit=25#785d</guid></item><item><title>Rodri posted a comment on discussion General Discussion</title><link>https://sourceforge.net/p/cppcheck/discussion/general/thread/716e9ce042/?limit=25#8d8b</link><description>Hi, I found a false negative regarding the rule invalidContainer. Cppcheck misses the use of an invalidated iterator when the vector is accessed through a reference alias. #include &lt;vector&gt; void f() { std::vector&lt;int&gt; items{1, 2, 3}; std::vector&lt;int&gt; &amp;values = items; auto iter = values.begin(); values.erase(iter); ++iter; } Actual result Cppcheck does not report invalidContainer. Removing the reference declaration and replacing values with items produces the warning. Expected result Cppcheck should...</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Rodri</dc:creator><pubDate>Tue, 29 Sep 2026 15:17:17 -0000</pubDate><guid>https://sourceforge.net/p/cppcheck/discussion/general/thread/716e9ce042/?limit=25#8d8b</guid></item><item><title>Rodri posted a comment on discussion General Discussion</title><link>https://sourceforge.net/p/cppcheck/discussion/general/thread/22d82d68ea/?limit=25#7897</link><description>Hi, I found a false negative regarding the rule invalidContainer. Cppcheck misses the use of an invalidated vector iterator when the increment is written as an explicit operator call. #include &lt;vector&gt; void f() { std::vector&lt;int&gt; items{1, 2, 3}; std::vector&lt;int&gt;::iterator iter; for (iter = items.begin(); iter != items.end(); iter.operator++()) { if (*iter == 2) items.erase(iter); } } Actual result Cppcheck does not report invalidContainer. Replacing iter.operator++() with ++iter produces the warning....</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Rodri</dc:creator><pubDate>Tue, 29 Sep 2026 15:12:21 -0000</pubDate><guid>https://sourceforge.net/p/cppcheck/discussion/general/thread/22d82d68ea/?limit=25#7897</guid></item><item><title>Rodri posted a comment on discussion General Discussion</title><link>https://sourceforge.net/p/cppcheck/discussion/general/thread/7c69982aba/?limit=25#129c</link><description>Hi, I found a false negative regarding the rule autoVariables. Cppcheck misses an escaping local address when it passes through a pointer temporary. void f(int **out) { int local = 1; int *temporary = &amp;local; *out = temporary; } Actual result Cppcheck does not report autoVariables. Replacing the last two statements with *out = &amp;local; produces the warning. Expected result Cppcheck should report that the address of the local variable is assigned through the output parameter in both forms. Verification...</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Rodri</dc:creator><pubDate>Tue, 29 Sep 2026 15:08:37 -0000</pubDate><guid>https://sourceforge.net/p/cppcheck/discussion/general/thread/7c69982aba/?limit=25#129c</guid></item><item><title>Rodri posted a comment on discussion General Discussion</title><link>https://sourceforge.net/p/cppcheck/discussion/general/thread/1dc2d65422/?limit=25#60ab</link><description>Hi, I found a false negative regarding the rule arrayIndexOutOfBounds. Cppcheck misses an out-of-bounds write when array indexing is written as pointer arithmetic. int a[2]; void f() { *(a + 2) = 0; } Actual result Cppcheck does not report arrayIndexOutOfBounds. Replacing *(a + 2) = 0 with a[2] = 0 produces the warning. Expected result Cppcheck should report the out-of-bounds write in both forms. Verification The issue was reproduced with: cppcheck --output-format=xmlv2 --enable=all array_pointer.cpp...</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Rodri</dc:creator><pubDate>Tue, 29 Sep 2026 15:04:21 -0000</pubDate><guid>https://sourceforge.net/p/cppcheck/discussion/general/thread/1dc2d65422/?limit=25#60ab</guid></item><item><title>Rodri posted a comment on discussion General Discussion</title><link>https://sourceforge.net/p/cppcheck/discussion/general/thread/86715f4043/?limit=25#3d8c</link><description>Hi, I found a false negative regarding the rule AssignmentAddressToInteger. Cppcheck misses the pointer-to-integer conversion when it is written as a compound assignment. int f(int *p) { int a = 0; a += p; return a + 4; } Actual result Cppcheck does not report AssignmentAddressToInteger. Replacing a += p with a = a + p produces the warning. Expected result Cppcheck should also report the pointer-to-integer conversion in the compound assignment. Verification The issue was reproduced with: cppcheck...</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Rodri</dc:creator><pubDate>Tue, 29 Sep 2026 15:01:19 -0000</pubDate><guid>https://sourceforge.net/p/cppcheck/discussion/general/thread/86715f4043/?limit=25#3d8c</guid></item><item><title>CHR posted a comment on discussion General Discussion</title><link>https://sourceforge.net/p/cppcheck/discussion/general/thread/62a983a472/?limit=25#f3a0</link><description>Thanks for reporting, ticket is here: https://trac.cppcheck.net/ticket/15070</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">CHR</dc:creator><pubDate>Mon, 28 Sep 2026 06:34:08 -0000</pubDate><guid>https://sourceforge.net/p/cppcheck/discussion/general/thread/62a983a472/?limit=25#f3a0</guid></item><item><title>tsteven posted a comment on discussion General Discussion</title><link>https://sourceforge.net/p/cppcheck/discussion/general/thread/62a983a472/?limit=25#6dec</link><description>The syntaxError comes from Tokenizer::findGarbageCode. (line numbers from eb4b6526b3502ee779a74019f814d45d890427ba) Breakpoint 1.1, Tokenizer::syntaxError (this=0x7fffffffc550, tok=0x555556240920, code="") at /home/tsteven4/work/cppcheck/lib/tokenize.cpp:8441 8441 { (gdb) bt #0 Tokenizer::syntaxError (this=0x7fffffffc550, tok=0x555556240920, code="") at /home/tsteven4/work/cppcheck/lib/tokenize.cpp:8441 #1 0x00005555556f183f in Tokenizer::findGarbageCode (this=0x7fffffffc550) at /home/tsteven4/work/cppcheck/lib/tokenize.cpp:9113...</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">tsteven</dc:creator><pubDate>Sat, 26 Sep 2026 22:52:04 -0000</pubDate><guid>https://sourceforge.net/p/cppcheck/discussion/general/thread/62a983a472/?limit=25#6dec</guid></item><item><title>tsteven posted a comment on discussion General Discussion</title><link>https://sourceforge.net/p/cppcheck/discussion/general/thread/62a983a472/?limit=25#12fa</link><description>cppcheck reports a false positive syntaxError on c++20 bitfields that contain both a size and a brace initializer, which were allowed in c++20. A test case below includes sizes from more complex integral constant expressions, but handling the simple case "int m5:5{55};" would allow the most common usage to proceed in cppcheck. I reproduced this with 2.19.0 on ubuntu 26.04, but it also fails with main@eb4b6526b3502ee779a74019f814d45d890427ba cppcheck --enable=all --std=c++20 test.cc Checking test.cc...</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">tsteven</dc:creator><pubDate>Sat, 26 Sep 2026 20:09:49 -0000</pubDate><guid>https://sourceforge.net/p/cppcheck/discussion/general/thread/62a983a472/?limit=25#12fa</guid></item><item><title>CHR posted a comment on discussion General Discussion</title><link>https://sourceforge.net/p/cppcheck/discussion/general/thread/2a77b49dd0/?limit=25#eac2</link><description>Thanks for reporting, ticket is here: https://trac.cppcheck.net/ticket/15061</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">CHR</dc:creator><pubDate>Wed, 23 Sep 2026 07:52:04 -0000</pubDate><guid>https://sourceforge.net/p/cppcheck/discussion/general/thread/2a77b49dd0/?limit=25#eac2</guid></item><item><title>CHR posted a comment on discussion General Discussion</title><link>https://sourceforge.net/p/cppcheck/discussion/general/thread/8153adffbd/?limit=25#e245</link><description>Added here: https://trac.cppcheck.net/ticket/11563</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">CHR</dc:creator><pubDate>Tue, 22 Sep 2026 13:44:53 -0000</pubDate><guid>https://sourceforge.net/p/cppcheck/discussion/general/thread/8153adffbd/?limit=25#e245</guid></item><item><title>CHR posted a comment on discussion General Discussion</title><link>https://sourceforge.net/p/cppcheck/discussion/general/thread/27c47ba02a/?limit=25#7fc6</link><description>The false negative with visible function definition looks similar to https://trac.cppcheck.net/ticket/14804</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">CHR</dc:creator><pubDate>Tue, 22 Sep 2026 11:05:05 -0000</pubDate><guid>https://sourceforge.net/p/cppcheck/discussion/general/thread/27c47ba02a/?limit=25#7fc6</guid></item></channel></rss>