Menu

New rule to code regarding smart pointers

2020-05-14
2020-05-14
  • -Shanti Schul_

    -Shanti Schul_ - 2020-05-14

    I am new to the project, and trying my luck with adding my first rule . Goal is to to optimize some pointers passing to functions.

    Would like to know if it is possible to detect passing a pointer to a thread?

    Could not find anything in cppcheck regarding threads, can you advise on a way?

     
  • Daniel Marjamäki

    welcome. not sure what to answer for this. I think at the moment you need to know more specifically what pattern in the code to look for. i.e. you can look for QThreads or std::threads .. etc but you need to do it specifically currently.

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.