help: from Stmt object to Decl


As I understand, you want to get a Decl for a function where you statement is located. You may try AnalysisDeclContext::getDecl() method to do this.
Maybe I could tell more if you tell what kind of checker do you write (path-sensitive or not) and what callbacks do you use.