[cfe-dev] preprocessor callbacks

madil90 madil90 at gmail.com
Sat Feb 9 08:15:39 PST 2013


Hi,
   I am implementing a preprocessor callback. I use the virtual function
InclusionDirective( .. , ..) to stop whenever a #include is found. What I
want is to stop whenever a new file is entered and get the location of the
first line in that file. I tried using FileChanged() and checked
FileChangeReason == EnterFile but it stops at some unexpected locations too.
Is there a way to find the first location of the first line of the file
being included when you stop at InclusionDirective?

Regards,
Adil



--
View this message in context: http://clang-developers.42468.n3.nabble.com/preprocessor-callbacks-tp4030386.html
Sent from the Clang Developers mailing list archive at Nabble.com.



More information about the cfe-dev mailing list