Skip to content

A15-4-2: Only report the first noexcept function that throws #159

Closed
@lcartey

Description

@lcartey

Affected rules

  • A15-4-2
  • ERR55-CPP

Description

noexcept functions frequently call other noexcept functions. If a noexcept function throws an exception, then we currently report that as a violation in every noexcept function that calls that function. This creates multiple alerts for one issues. We should instead report the original instance and not the others.

Example

void f1() noexcept {
  throw foo(); // report this case
}

void f2() noexcept {
  f1(); // do not report this case
}

Metadata

Metadata

Assignees

Labels

Difficulty-MediumA false positive or false negative report which is expected to take 1-5 days effort to addressImpact-Highfalse positive/false negativeAn issue related to observed false positives or false negatives.top-25-fpsuser-reportIssue reported by an end user of CodeQL Coding Standards

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions