I am writing a prototype check that needs source file and line numbers to map code to external data. As far as I know, the only way to achieve that is to expose the SourceManager which is so far only used to emit diagnostics.
Test Plan:
On a blank new check, MatchedDecl->getBeginLoc().dump(Context->getSourceManager()); does properly show the matched declaration's origin filename and line number.