Use
- python shell
- ctags command line tool
to list all the global variables in the .c and .h files
- OS : Ubuntu (or Linux-Based)
- python libraries : subprocess, argparse, csv
- tool : ctags
python finder.py -f "your folder name"- A CSV file named report.csv
| ITEM | Variable Name | In Which Program |
|---|---|---|
| 0 | temp | swap.c |
| 1 | count | countNum.c |
| ... | ... | ... |