A3-9-1
: Incorrectly alerts on template functions instantiated with fix-width integers
#540
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
Standard-AUTOSAR
user-report
Issue reported by an end user of CodeQL Coding Standards
Affected rules
Description
Template instantiations store the template argument after type definitions have been resolved.
This results in argument types with variable width integer types even though the template is instantiated with fixed-width integers.
Additionally, we want to change the location of the alerts in case of template instantiations to the location where the template is instantiated because that is where the rule violation happens.
Example
The text was updated successfully, but these errors were encountered: