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 155cbe1 commit 918fa9dCopy full SHA for 918fa9d
clang/lib/Analysis/UnsafeBufferUsage.cpp
@@ -1185,11 +1185,16 @@ class UUCAddAssignGadget : public FixableGadget {
1185
}
1186
1187
static Matcher matcher() {
1188
+ // clang-format off
1189
return stmt(isInUnspecifiedUntypedContext(expr(ignoringImpCasts(
1190
binaryOperator(hasOperatorName("+="),
- hasLHS(declRefExpr(toSupportedVariable())),
1191
+ hasLHS(
1192
+ declRefExpr(
1193
+ hasPointerType(),
1194
+ toSupportedVariable())),
1195
hasRHS(expr().bind(OffsetTag)))
1196
.bind(UUCAddAssignTag)))));
1197
+ // clang-format on
1198
1199
1200
virtual std::optional<FixItList> getFixits(const Strategy &S) const override;
0 commit comments