Skip to content

Commit a37f6c7

Browse files
committed
Address TODO
The workaround is no longer required.
1 parent c530b59 commit a37f6c7

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

cpp/autosar/src/rules/A2-7-3/UndocumentedUserDefinedType.ql

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,10 +50,8 @@ class DocumentableDeclaration extends Declaration {
5050
declarationType = "member variable" and
5151
// Exclude memeber variables in instantiated templates, which cannot reasonably be documented.
5252
not this.(MemberVariable).isFromTemplateInstantiation(_) and
53-
// Exclude anonymous lambda functions.
54-
// TODO: replace with the following when support is added.
55-
// not this.(MemberVariable).isCompilerGenerated()
56-
not exists(LambdaExpression lc | lc.getACapture().getField() = this)
53+
// Exclude compiler generated variables, such as those for anonymous lambda functions
54+
not this.(MemberVariable).isCompilerGenerated()
5755
}
5856

5957
/** Gets a `DeclarationEntry` for this declaration that should be documented. */

0 commit comments

Comments
 (0)