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 1606bf6 commit ed673a9Copy full SHA for ed673a9
cpp/autosar/src/rules/M0-1-4/SingleUsePODVariable.qll
@@ -51,7 +51,6 @@ Expr getIndirectSubObjectAssignedValue(MemberVariable subobject) {
51
/** Gets a "use" count according to rule M0-1-4. */
52
int getUseCount(Variable v) {
53
// We enforce that it's a POD type variable, so if it has an initializer it is explicit
54
- //v.getFile().getBaseName() = "test_member.cpp" and
55
result =
56
count(getAUserInitializedValue(v)) +
57
count(VariableAccess access | access = v.getAnAccess() and not access.isCompilerGenerated()) +
0 commit comments