Menu

Display (optionally) stack trace with function names, and template resolution

Tal
2025-07-27
2025-07-29
  • Tal

    Tal - 2025-07-27

    Currently as far as I know, you can ask cppcheck to display in the warning message the file/line trace that called it.
    I'd like to have also the function name, but more importantly - the template variable assignment (and auto types resolutions) that caused the errors, both for the templates of a function and struct/class.

    Alternatively, do you know how to deduce which template instantiation had caused a particular warning?

     
  • Daniel Marjamäki

    it sounds good to clarify the output. could you give us some more details. which warning message do you see?
    maybe you can write some example code that resemble your code somewhat so we get an idea what we need to tweak.

     

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.