What is the command used to get only the calling function in cscope
? For ctags
to get only function header we use
Python code to get only function header in source file:
fcmd = [`ctags. exe' ',' '--C-types=f' ',', '--output-format=json']
P = subprocess. Popen(fcmd, stdout=subprocess.PIPE)
filewrite. write(stdout)
Similarly what command should we use to find only functions called using cscope. I'm using python code to get all the function calls in a c source file using cscope.
question from:
https://stackoverflow.com/questions/65881088/command-to-get-only-the-calling-function-in-cscope 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…