The crash was reproduced by the included test case. It was initially
found through a crash of clang-tidy's misc-misplaced-widening-cast
check.
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
| include/clang/ASTMatchers/ASTMatchers.h | ||
|---|---|---|
| 5018 ↗ | (On Diff #53311) | nit: might be a bit clearer, if you reverse the condition: if (const auto *RetValue = Node.getRetValue()) return InnerMatcher.matches(*RetValue, Finder, Builder); return false; |