A7-1-2
: Consider constexpr
function behaviour
#466
Labels
Difficulty-Low
A false positive or false negative report which is expected to take <1 day effort to address
false positive/false negative
An issue related to observed false positives or false negatives.
Impact-Medium
user-report
Issue reported by an end user of CodeQL Coding Standards
Affected rules
A7-1-2
Description
A
constexpr
function only returns a compile-time constant when provided with compile-time constants as arguments. The query currently incorrectly considersconstexpr
functions to always return constants.Example
This function should only be considerd
The text was updated successfully, but these errors were encountered: