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 75ea78a commit e5cebecCopy full SHA for e5cebec
clang/lib/Analysis/UnsafeBufferUsage.cpp
@@ -1192,11 +1192,16 @@ class UUCAddAssignGadget : public FixableGadget {
1192
}
1193
1194
static Matcher matcher() {
1195
+ // clang-format off
1196
return stmt(isInUnspecifiedUntypedContext(expr(ignoringImpCasts(
1197
binaryOperator(hasOperatorName("+="),
- hasLHS(declRefExpr(toSupportedVariable())),
1198
+ hasLHS(
1199
+ declRefExpr(
1200
+ hasPointerType(),
1201
+ toSupportedVariable())),
1202
hasRHS(expr().bind(OffsetTag)))
1203
.bind(UUCAddAssignTag)))));
1204
+ // clang-format on
1205
1206
1207
virtual std::optional<FixItList> getFixits(const Strategy &S) const override;
0 commit comments