[cfe-dev] Check if inside a header file
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...
More information about the cfe-dev