[PATCH] D76196: [ASTMatchers] Extend hasReturnValue to GNU StmtExpr

Nathan James via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Sun Mar 15 08:00:53 PDT 2020


njames93 created this revision.
njames93 added reviewers: aaron.ballman, klimek.
Herald added a project: clang.
Herald added a subscriber: cfe-commits.

Extend hasReturnValue to match the last statement in a gnu statement expression if the last statement is an expression.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D76196

Files:
  clang/docs/LibASTMatchersReference.html
  clang/include/clang/ASTMatchers/ASTMatchers.h
  clang/include/clang/ASTMatchers/ASTMatchersInternal.h
  clang/unittests/ASTMatchers/ASTMatchersTraversalTest.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D76196.250420.patch
Type: text/x-patch
Size: 5381 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20200315/2e4e9ebd/attachment.bin>


More information about the cfe-commits mailing list