Is there a way to have a global configuration that says leak-ignore for all functions ? None of the parameters to passed to any function are deallocated by the function. I know we can plugin every function [with leak-ignore set] to a .cfg file but that would be a huge effort if cppcheck is to be used over an existing code base.
I read the manual but didn't find anything there.
Thanks
Siddharth
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
As far as i know it is not possible to globally enable leak-ignore for all functions.
I do not see any use case at the moment. Could you describe your use case and the need for such an option?
Maybe it is useful to add this functionality to Cppcheck, then we could create a ticket for it.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Is there a way to have a global configuration that says leak-ignore for all functions ? None of the parameters to passed to any function are deallocated by the function. I know we can plugin every function [with leak-ignore set] to a .cfg file but that would be a huge effort if cppcheck is to be used over an existing code base.
I read the manual but didn't find anything there.
Thanks
Siddharth
As far as i know it is not possible to globally enable
leak-ignore
for all functions.I do not see any use case at the moment. Could you describe your use case and the need for such an option?
Maybe it is useful to add this functionality to Cppcheck, then we could create a ticket for it.