[petsc-dev] tool to find potential static functions

Karl Rupp rupp at mcs.anl.gov
Thu Mar 7 06:52:23 CST 2013


Hi Barry,

 >     It would be nice to have a tool that would go through all the 
source code and find all functions that are only used (and not mentioned 
in some public include file) in the file they are declared in. Thus 
giving us a handle on what functions can be declared static.
>

That seems to be doable with at least 95% accuracy using a Ba.., err, 
Python script :-)

Best regards,
Karli




More information about the petsc-dev mailing list