commit | 88b5ab25f8711e17130f0dbdeae99f2ce605bfd2 | [log] [tgz] |
---|---|---|
author | FĂ©lix-Antoine Constantin <60141446+felix642@users.noreply.github.com> | Tue Mar 26 15:39:05 2024 -0400 |
committer | Copybara-Service <copybara-worker@google.com> | Tue Mar 26 12:41:41 2024 -0700 |
tree | 78ac8439423e22f965fd364327a634a12e373408 | |
parent | f069feeea289b18ed0015ac53e0913ee4b304c85 [diff] |
[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