[petsc-dev] tool to find potential static functions
Barry Smith
bsmith at mcs.anl.gov
Thu Mar 7 07:59:13 CST 2013
On Mar 7, 2013, at 6:52 AM, Karl Rupp <rupp at mcs.anl.gov> wrote:
> 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 :-)
Bash is fine.
In the good old days, PETSc had about 50% bash scripts and 50% csh scripts and even some makefiles that used csh scripts. I finally weaned myself off of csh
Barry
>
> Best regards,
> Karli
>
More information about the petsc-dev
mailing list