[cfe-dev] Check if inside a header file
Nikola Smiljanic
popizdeh at gmail.com
Fri Jan 17 16:50:13 PST 2014
Is there a way to know if I'm inside a header file in the Preprocessor
class. I've only been able to find warn_using_directive_in_header that does
a similar check, only to realize that it's not 100% correct. It
uses SourceMgr.isInMainFile which is not right if you pass a header file
directly, no warning is generated in that case.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20140118/957a025d/attachment.html>
More information about the cfe-dev
mailing list