Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
229 views
in Technique[技术] by (71.8m points)

python 3.x - command to get only the calling function in cscope

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

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...