User Activity

  • Posted a comment on discussion General Discussion on cppcheck

    The text and XML outputs report unmatchedSuppression errors, but the SARIF output does not. This makes it harder to debug failures when using --enable=all --error-exitcode=1 --output-format=sarif together. It seems like this behavior might be by design to accommodate GitHub: https://github.com/cppcheck-opensource/cppcheck/blob/9a00e4a1050abdd7452f9afe7d5b323aed0e789a/lib/sarifreport.cpp#L44-L46 The SARIF spec seems to allow for results without locations, but I'm not sure if that plays well with GitHub:...

  • Posted a comment on discussion General Discussion on cppcheck

    Hm, I still see the syntaxError with -isystem. I also tried -i/usr/ and -igtkenums.h and got the same error. I guess the /usr/include/gtk-3.0/gtk/gtkenums.h header gets checked indirectly? I investigated the false positives with g_assert and found that a GLib header (glib/gtestutils.h) has a g_assert definition that seems to take precedence over the definition from the gtk.cfg file. Is there any way to make the library definition take precedence? During my testing, I accidentally created an invalid...

  • Posted a comment on discussion General Discussion on cppcheck

    Removing -I helps for this simplified case. I saw this issue while trying to run cppcheck on larger projects like xfce4-places-plugin. For those projects, I run cppcheck --enable=all --library=gtk --project=builddir/compile_commands.json. The -I directories seem to get picked up automatically from the JSON data: "command": "clang -Ipanel-plugin/libplaces.so.p -Ipanel-plugin -I../panel-plugin -I. -I.. -I/usr/local/include -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include -I/usr/include/libmount...

  • Posted a comment on discussion General Discussion on cppcheck

    Hi, I am seeing a false positive syntaxError when I run cppcheck -I /usr/include/gtk-3.0/ --library=gtk on this simplified code: #include <gtk/gtkenums.h> int main() { return 0; } Output: /usr/include/gtk-3.0/gtk/gtkenums.h:825:1: error: syntax error: 0 = [syntaxError] Here is the relevant code from gtkenums.h: 824 typedef enum 825 { 826 GTK_SIZE_REQUEST_HEIGHT_FOR_WIDTH = 0, 827 GTK_SIZE_REQUEST_WIDTH_FOR_HEIGHT, 828 GTK_SIZE_REQUEST_CONSTANT_SIZE 829 } GtkSizeRequestMode; And here is the relevant...

View All

Personal Data

Username:
correctmost
Joined:
2026-05-07 04:10:34.987000

Projects

  • No projects to display.

Personal Tools

MongoDB Logo MongoDB