[PATCH] D96080: format
Lukas Hänel via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Thu Feb 4 14:38:54 PST 2021
LukasHanel created this revision.
Herald added a subscriber: nullptr.cpp.
LukasHanel requested review of this revision.
Herald added a project: clang.
Herald added a subscriber: cfe-commits.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D96080
Files:
clang-tools-extra/clang-tidy/readability/UselessReturnValueCheck.cpp
Index: clang-tools-extra/clang-tidy/readability/UselessReturnValueCheck.cpp
===================================================================
--- clang-tools-extra/clang-tidy/readability/UselessReturnValueCheck.cpp
+++ clang-tools-extra/clang-tidy/readability/UselessReturnValueCheck.cpp
@@ -30,14 +30,13 @@
forEachDescendant(
returnStmt(hasReturnValue(Int0Var)).bind("return-to-void")),
unless(hasDescendant(returnStmt(unless(hasReturnValue(Int0Var))))),
- unless(hasDescendant(
- binaryOperator(isAssignmentOperator(),
- hasLHS(declRefExpr(
- to(varDecl(equalsBoundNode("retvar")))))))),
- unless(hasDescendant(
- cxxOperatorCallExpr(isAssignmentOperator(),
- hasLHS(hasDescendant(declRefExpr(
- to(varDecl(equalsBoundNode("retvar"))))))))),
+ unless(hasDescendant(binaryOperator(
+ isAssignmentOperator(),
+ hasLHS(declRefExpr(to(varDecl(equalsBoundNode("retvar")))))))),
+ unless(hasDescendant(cxxOperatorCallExpr(
+ isAssignmentOperator(),
+ hasLHS(hasDescendant(
+ declRefExpr(to(varDecl(equalsBoundNode("retvar"))))))))),
unless(hasDescendant(
unaryOperator(hasAnyOperatorName("++", "--", "&"),
hasUnaryOperand(ignoringImplicit(declRefExpr(
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D96080.321569.patch
Type: text/x-patch
Size: 1493 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20210204/5cab7a73/attachment.bin>
More information about the cfe-commits
mailing list