[PATCH] D133801: Extraction of a matcher for an unused value from an expression from the bugprone-unused-return-value check

Nathan James via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Sat Sep 17 02:28:24 PDT 2022


njames93 added a comment.

I feel like this matcher could do with some unit testing. I'd say create a test file in `clang-tools-extra/unittests/clang-tidy/MatchersTest.cpp`



================
Comment at: clang-tools-extra/clang-tidy/bugprone/UnusedReturnValueCheck.cpp:145
 
   auto UnusedInCompoundStmt =
       compoundStmt(forEach(MatchedCallExpr),
----------------
Can all these be removed now?


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D133801/new/

https://reviews.llvm.org/D133801



More information about the cfe-commits mailing list