C++: Omit assign case from cpp/non-constant-format

This commit is contained in:
Jeroen Ketema
2023-08-23 15:52:33 +02:00
parent 2b540e251a
commit 9f7413eded

View File

@@ -105,8 +105,6 @@ predicate isNonConst(DataFlow::Node node, boolean isIndirect) {
or
e instanceof NewArrayExpr
or
e instanceof AssignExpr
or
exists(Variable v | v = e.(VariableAccess).getTarget() |
v.getType().(ArrayType).getBaseType() instanceof CharType and
exists(AssignExpr ae |