[cfe-dev] Finding CXFiles across different TUs

jaytee aloha_arts at yahoo.com
Mon Aug 6 09:19:45 PDT 2012


Is there a fast way in libclang to find CXFiles across different TUs other
then getting the string name (clang_getFileName) of a CXFile and
string-comparing it with the string name of all the other CXFiles included
in a different TU?

bad way:
fileCXStr = clang_getFileName(cxFile);
fileStringName = clang_getCString(fileCXStr);
// Compare fileStringName with every cxFile.fileStringName from a different
TU,
// to find the same CXFile also included in a different TU.

There doesn't seem to be a clang_getUniqueFileId(cxFile) function returning
a unique file Id across TUs.

Thank you!



--
View this message in context: http://clang-developers.42468.n3.nabble.com/Finding-CXFiles-across-different-TUs-tp4025975.html
Sent from the Clang Developers mailing list archive at Nabble.com.



More information about the cfe-dev mailing list