This patch adds another typename parameter to MatchSwitch class: Result (defaults to void), corresponding to the return type of the function. This necessitates a couple minor changes to the MatchSwitchBuilder class, and is tested via a new ReturnNonVoid test in clang/unittests/Analysis/FlowSensitive/MatchSwitchTest.cpp.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
WDYT? like a "function result"