[cfe-dev] Quick question: how to check that Decl belongs to included file

via cfe-dev cfe-dev at lists.llvm.org
Wed Nov 27 08:31:29 PST 2019


Hi folks! I'm currently trying to check whether declaration belongs to included file by #include directive.

I'm currently about to call Decl::getLocation() and run through bunch of checks with FileID and MacroID. But perhaps there is exist similar function or method?

Thanks!
-Stepan



More information about the cfe-dev mailing list