Getting function argument types
问题 Suppose I have a call to a function which takes a variable number of arguments in my source code. I want to do some kind of static analysis on this source code to find the type of the arguments being actually passed to the function. For example, if my function call is - foo(a, b, c) I want to find the data type of a, b and c and store this information. 回答1: You pretty well have to do the parse-and-build-a-symbol-table part of compiling the program. Which means running the preprocessor, and