<div dir="ltr">Hello,<div><br></div><div>I have been trying to find the system file dependencies for a part of the code within a single c file. A sample scenario will be-</div><div><br></div><div>-There are 3 functions in file f1.c- func1(), func2() and func3()</div><div>-the file f1.c had a number of system header files included</div><div>-I use clang to take func2() from f1.c and move it to a new file f2.c</div><div>-To do this I need  to understand which all system headers present in f1.c are being used by func2() so that I can add these also to f2.c</div><div><br></div><div><br></div><div>I have looked at all functions which I could use from the clang API and I cannot see any way I can get this information. Does anyone know of any functionality which will help achieve this??</div><div><br></div><div><br></div><div>Regards,</div><div>Deepak </div></div>