mirror of
https://github.com/github/codeql.git
synced 2026-05-27 01:21:23 +02:00
12 lines
420 B
Plaintext
12 lines
420 B
Plaintext
import semmle.code.cpp.models.interfaces.NonThrowing
|
|
|
|
/**
|
|
* A function that is annotated with a `noexcept` specifier (or the equivalent
|
|
* `throw()` specifier) guaranteeing that the function can not throw exceptions.
|
|
*
|
|
* Note: The `throw` specifier was deprecated in C++11 and removed in C++17.
|
|
*/
|
|
class NoexceptFunction extends NonThrowingFunction {
|
|
NoexceptFunction() { this.isNoExcept() or this.isNoThrow() }
|
|
}
|