cppcheck icon indicating copy to clipboard operation
cppcheck copied to clipboard

fix #14117: --no-check-unused-templates does not apply to templated functions with declaration specifiers

Open ludviggunne opened this issue 4 months ago • 6 comments

ludviggunne avatar Sep 10 '25 08:09 ludviggunne

May need more work after #7800 and #7803, so I'm leaving it as a draft for now.

ludviggunne avatar Sep 10 '25 09:09 ludviggunne

Seems a bit convoluted but as I do not understand this kind of processing well I leave it up to others to comment.

Still some notes.

firewave avatar Sep 10 '25 09:09 firewave

May need more work after #7800 and #7803, so I'm leaving it as a draft for now.

For some additional extended manual testing you could use the invocation added in https://github.com/danmar/simplecpp/pull/438 and adjust it for Cppcheck and compare the output. The standard headers have lots of templates after all.

firewave avatar Sep 10 '25 09:09 firewave

May need more work after #7800 and #7803, so I'm leaving it as a draft for now.

For some additional extended manual testing you could use the invocation added in danmar/simplecpp#438 and adjust it for Cppcheck and compare the output. The standard headers have lots of templates after all.

Thanks, I'll take a look at that

ludviggunne avatar Sep 10 '25 12:09 ludviggunne

Not in the scope of this PR but I wonder if it would make sense to add a debug message if a function is being omitted from analysis.

firewave avatar Sep 15 '25 08:09 firewave