User Activity

  • Modified a comment on discussion General Discussion on cppcheck

    cppcheck 2.11 claims that in the following snippet the construction of a string_view via c_str is redundant. std::string myLine; ... std::string_view myKey(myLine.data(), 13);

  • Modified a comment on discussion General Discussion on cppcheck

    cppcheck 2.11 claims that in the following snippet the construction of a string_view via c_str is redundant. ``` std::string myLine; std::string_view myKey(myLine.data(), 13); ...

  • Posted a comment on discussion General Discussion on cppcheck

    cppcheck 2.11 claims that in the following snippet the construction of a string_view via c_str is redundant. ``` std::string myLine; std::string_view myKey(myLine.data(), 13); ...

  • Posted a comment on discussion General Discussion on cppcheck

    cppcheck 2.11 claims that in the following snippet: std::istream& operator>>(std::istream& aStream, TimeBase& aT) { return aStream >> aT.theTime; } aT can be declared as const, ofc this is not true.

  • Posted a comment on discussion Development on cppcheck

    Backtrace: Program received signal SIGSEGV, Segmentation fault. 0x00005555557e7b23 in Token::tokAt(int) const () (gdb) bt #0 0x00005555557e7b23 in Token::tokAt(int) const () #1 0x000055555579b225 in isUnknownType(Token const*, Token const*) () #2 0x000055555579e89b in Function::returnsReference(Function const*, bool) () #3 0x00005555558792dd in valueFlowLifetimeFunction(Token*, TokenList*, ErrorLogger*, Settings const*) () #4 0x0000555555883bfb in valueFlowLifetime(TokenList*, SymbolDatabase*, ErrorLogger*,...

  • Posted a comment on discussion Development on cppcheck

    ~/Downloads/cppcheck-2.8/cppcheck --clang main.cpp Checking main.cpp... Segmentation fault (core dumped) $ clang --version Ubuntu clang version 15.0.0-++20220706104508+5d8077565e41-1~exp1~20220706104611.584 Target: x86_64-pc-linux-gnu Thread model: posix InstalledDir: /usr/bin

  • Modified a comment on discussion Development on cppcheck

    cppcheck (2.8) is not able to understand that a return type declared as: std::enable_if_t<sizeof(uint64_t_==8> is void.</sizeof(uint64_t_==8> Example: #include <type_traits> #include <stdint.h> std::enable_if_t<sizeof(uint64_t)==8> foo() { } int main() { foo(); } cppcheck reports: Found a exit path from function with non-void return type that has missing return statement note that if the return type is declared as: std::enable_if<sizeof(uint64_t)==8>::type then cppcheck recognize the return type...

  • Posted a comment on discussion Development on cppcheck

    The following snippet drives cppcheck to segfault when using it with --clang #include <type_traits> #include <stdint.h> std::enable_if_t<sizeof(uint64_t)==8> foo() { } float bar() { } int main() { foo(); bar(); }

View All

Personal Data

Username:
mendola
Joined:
2013-08-13 13:54:44

Projects

  • No projects to display.

Personal Tools

MongoDB Logo MongoDB