[cfe-dev] Clang - path of a header

Vojtěch Král via cfe-dev cfe-dev at lists.llvm.org
Wed Mar 2 04:26:23 PST 2016

   suppose I have a C hader name/path in the shape that is used in source 
codes, such as:
<sys/time.h> , <mysql/mysql.h> or something similar (with or without the 
angle brackets, that doesn't matter).

Can I somehow use clang to figure out the actual path to the file for 
I reckon preprocessor could be used for that maybe, but I'm not sure how 
to exactly tell clang to do it...

Thanks and sorry if that's a silly question
Vojtech Kral

More information about the cfe-dev mailing list