We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bb6a485 commit dcc2b0cCopy full SHA for dcc2b0c
clang/lib/Analysis/UnsafeBufferUsage.cpp
@@ -1081,11 +1081,16 @@ class UUCAddAssignGadget : public FixableGadget {
1081
}
1082
1083
static Matcher matcher() {
1084
+ // clang-format off
1085
return stmt(isInUnspecifiedUntypedContext(expr(ignoringImpCasts(
1086
binaryOperator(hasOperatorName("+="),
- hasLHS(declRefExpr(toSupportedVariable())),
1087
+ hasLHS(
1088
+ declRefExpr(
1089
+ hasPointerType(),
1090
+ toSupportedVariable())),
1091
hasRHS(expr().bind(OffsetTag)))
1092
.bind(UUCAddAssignTag)))));
1093
+ // clang-format on
1094
1095
1096
virtual std::optional<FixItList> getFixits(const Strategy &S) const override;
0 commit comments