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?
check isInMainFile to make sure it isn't in the original .c/.cpp/.whatever file. You can also check whether it is in a system header or in the 'builtin' 'file'.
Anything that isn't in the Main or 'builtin' files I would expect to have come in via a module import or #include.