Skip to content

Add support for lambda captures in assignment-related predicates in misra BuiltInTypeRules #957

Description

@MichaelRFairhurst

It looks like we should make sure these predicates are working correctly for lambda captures.

For instance:

[x = y]() { ... }

But also, all lambda captures are assignments fields of the lambda class instance.

https://github.com/github/codeql-coding-standards/blob/main/cpp/misra/src/codingstandards/cpp/misra/BuiltInTypeRules.qll#L179

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Difficulty-MediumA false positive or false negative report which is expected to take 1-5 days effort to addressImpact-LowStardard-MISRA-C++taskHow We Work work item type: 1 day or less long effort.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions