Skip to content

Commit 4a85fa3

Browse files
committed
fix control flow reaching end of function without return
1 parent b01fe73 commit 4a85fa3

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

clang/unittests/ASTMatchers/ASTMatchersTest.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -649,6 +649,8 @@ template <typename T> class VerifyBoundNodeMatch : public BoundNodesCallback {
649649
case MatchKind::TypeStr:
650650
return getTypeStrText(Node, EmitFailures);
651651
}
652+
653+
return std::nullopt;
652654
}
653655

654656
bool isMatch(const T *const Node, const ASTContext &Context) const {

0 commit comments

Comments
 (0)