[clang-tidy] Improved modernize-use-using by fixing a false-negative (#82947)

The check needs a parent decl to match but if the typedef is in a
function, the parent is a declStmt which is not a decl by itself.
Improved the matcher to match on either a decl or a declstmt and extract
the decl from the stmt in the latter case.

Fixes #72179

GitOrigin-RevId: 8ea94b614bd8ac74802867588129bcfd0a326620
3 files changed