Menu

Which pointer analysis cppcheck is using

Jiaqi
2024-05-15
2024-05-22
  • Jiaqi

    Jiaqi - 2024-05-15

    I am just wondering which type of pointer analysis cppcheck is currently using? And is there any specific reason behind that? Do you think it would be beneficial to provide more powerful pointer analysis (e.g., flow-sensitive or context sensitive)?

     
  • Daniel Marjamäki

    It's not very easy to answer this. There is not a definite answer. We have flow sensitive analysis mostly. We can analyze function calls also however I would not say that the analysis is "context sensitive" and the analyzer does not go very deep. There is whole program analys for buffers passed as parameters but that is not "context sensitive".

    If more powerful analysis can be provided that is of course beneficial.

     

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.