User Activity

  • Posted a comment on discussion Development on cppcheck

    When running 2.14 the following line gives an Analysis failed ..\internalError.h:16:66: error: Analysis failed (variable without scope). If the code is valid then please report this failure. [internalError] TypedValue_DataObject::TypedValue_DataObject( const DataObject & value ) With 2.13 I don;t have the error I run cppcheck.exe --project=internalError.cppcheck in the build folder of the attached minimal example

  • Posted a comment on discussion Development on cppcheck

    With 2.9 I get the following error ASTError.cpp:5:1: error: Syntax Error: AST broken, '->' doesn't have two operands. [internalAstError] target->~T_StateAdminPtr(); On this code typedef D_StateAdmin * T_StateAdminPtr; static void destroy( T_StateAdminPtr * target ) { target->~T_StateAdminPtr(); }

  • Posted a comment on discussion General Discussion on cppcheck

    Hi, I get a syntax error on the following code template<class T> class matrix { template <class U = T, class std::enable_if<std::is_trivial<U>::value && std::is_standard_layout<U>::value>::type* = nullptr> matrix<T> clone(bool a_SelectionOnly=true) const; // creates a deep copy } matrix.cpp:4:64: error: SymbolDatabase bailout; unhandled code [syntaxError] class std::enable_if<std::is_pod<u>::value>::type* = nullptr></std::is_pod<u>

  • Posted a comment on discussion General Discussion on cppcheck

    It is a bit of code from my work. I will provide some context after the holidays vacation

  • Posted a comment on discussion General Discussion on cppcheck

    Hi, I'm not sure if this should be marked as false positive or not. I have the following code if (exceptions != nullptr) { std::lock_guard<FAIC_Mutex> l_MutexLocker(exceptionsMutex); if (exceptions != nullptr) { ((*exceptions).*a_Function)(a_Args...); } } I get the warning identicalInnerCondition on the second if statement. But in this case the two ifs are needed. The firts is to check if we actual need to aquire the lock (is someone else has it, it can take some time). The second is to be sure that...

  • Posted a comment on discussion General Discussion on cppcheck

    I'm getting a false positive (Unusual pointer arithmetic. A value of type 'char' is added to a string literal. [strPlusChar]) on the follwing code void function(void) { std::string l_Test; l_Test = "FooBar"s + 'a'; } Although “FooBar”s returns a std::string which has a valid operator+ for char

View All

Personal Data

Username:
robke
Joined:
2020-06-23 18:12:58

Projects

  • No projects to display.

Personal Tools