[PATCH] D76196: [ASTMatchers] Extend hasReturnValue to GNU StmtExpr
Aaron Ballman via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Sun Mar 15 13:23:33 PDT 2020
aaron.ballman added a comment.
I don't think this is a natural fit for the functionality. A statement expression doesn't have a return value so much as it is a value expression that can contain multiple statements. To me, at least, this is a bit like saying the comma operator has a return value because you can do `int i; i = 1, 2, 3;` and it "returns" 3.
Can you explain a bit about why you need this matcher functionality?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D76196/new/
https://reviews.llvm.org/D76196
More information about the cfe-commits
mailing list