`EXP52-CPP`: Exclude uses of operators with unevaluated operands in already unevaluated contexts

Open
#369 1 comment 0 reactions 1 assignee View on GitHub

Nobody has claimed this yet.

Assessment

This issue has not been assessed yet.

Description

Difficulty-Low false positive/false negative Impact-High Stardard-CERT-C++ user-report
Affected rules
  • EXP52-CPP
Description

Exclude uses of operators with unevaluated operands where they are already in unevaluated contexts, as the scope for confusion is less.

Example
template<typename T>
void foo(T t) noexcept(noexcept(some_function(t))) {
  some_function(t);
}
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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.