codeql-coding-standards icon indicating copy to clipboard operation
codeql-coding-standards copied to clipboard

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

Open lcartey opened this issue 1 year ago • 1 comments

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);
}

lcartey avatar Oct 02 '23 11:10 lcartey

Reassigning and re-categorising to High impact based on https://github.com/github/codeql-coding-standards/issues/91.

lcartey avatar Jan 18 '24 22:01 lcartey