Hello! I'd like to report an issue with Cppcheck addons, but it seems the official Cppcheck issue tracker is closed for new registrations so I'm writing here. I'm experiencing a strange issue with Cppcheck and the CERT/MISRA addons. This setup cannot analyze the following code that contains a struct with a nested union. It fails with a traceback from some of the Cppcheck's python scripts: #include <stdio.h> typedef struct test_t_st { union { int block; char row; }; } test_t; int main() { test_t temp;...
Hello! I'd like to report an issue with Cppcheck addons, but it seems the official Cppcheck issue tracker is closed for new registrations so I'm writing here. I'm experiencing an strange issue with Cppcheck and the CERT/MISRA addons. This setup cannot analyze the following code that contains a struct with a nested union. It fails with a traceback from some of the Cppcheck's python scripts: #include <stdio.h> typedef struct test_t_st { union { int block; char row; }; } test_t; int main() { test_t...
Hello! It looks like I've run into code that Cppcheck is not able to compile. The original code can be found here. I prepared a stripped code snippet: #include <stdint.h> extern "C++" template <typename T, typename ...TConstructorArgs> T* test (int n, TConstructorArgs... TconstructorArgs) { /* Index out of bounds */ int arr[10]; for(int i=0; i < 11; i++) { arr[i] = 0; } return nullptr; } The latest Cppcheck reports the following error message: Checking core_esp8266_features.h ... Defines: Undefines:...
Hello! It looks like I've run into code that Cppcheck is not able to compile. The original code can be found here I prepared a stripped code snippet: #include <stdint.h> extern "C++" template <typename T, typename ...TConstructorArgs> T* test (int n, TConstructorArgs... TconstructorArgs) { /* Index out of bounds */ int arr[10]; for(int i=0; i < 11; i++) { arr[i] = 0; } return nullptr; } The latest Cppcheck reports the following error message: Checking core_esp8266_features.h ... Defines: Undefines:...