<div dir="ltr">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.</div>