Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

`M0-1-2` - `A3-1-5` - `A4-5-1` - `M0-1-1` : Poor lambda support

Open
#605 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
35/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
cpp
Domain
devtools

Research direction

Start by reproducing the C++ lambda examples for rules M0-1-2, A3-1-5, A4-5-1, and M0-1-1, then inspect the implementations of those affected rules. Done means the shown lambda cases no longer produce false alerts while the rules still report applicable violations.

Written by the indexing model from the issue text.

Description

Difficulty-Low false positive/false negative Impact-Medium Standard-AUTOSAR user-report
Affected rules
  • M0-1-2
  • A3-1-5
  • A4-5-1
  • M0-1-1
Description

Using lambda expression trigger various side effects alerts.

Example
A3-1-5
const auto lambda = []() -> void {} // Trigger A3-1-5
A4-5-1
enum Enum { A, B };

const auto lambda = [](const Enum e) -> void {}

const auto e = Enum::A;
lambda(e); // Triggers A4-5-1
M0-1-1 / M0-1-2
std::uint32_t u32{0};

const auto lambda = [&u32]() -> void {
  ++u32;
}

lambda();

if (u32 == 0) { // Triggers M0-1-2
  return;
}

foo(); // (could be any expression) Triggers M0-1-1
Dominant language
CodeQL
Stars
227
Forks
82
Avg merge
6d 7h
Merged PRs (30d)
9

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from github/codeql-coding-standards

All issues in github/codeql-coding-standards

Similar issues

More DevTools issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.