A3-1-5
: Tweak definition of trivial member function
#611
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
Phase III
Standard-AUTOSAR
user-report
Issue reported by an end user of CodeQL Coding Standards
Affected rules
A3-1-5
Description
This AUTOSAR rule is not strictly specified, only requiring that functions are included in class bodies when "intended to be inlined".
Our current heuristics aim to highlight non-trivial functions in class bodies as a proxy - essentially, we expect functions that occur in the body of the class to be "compact" - e.g. have few statements. However, feedback suggests we are flagging functions unnecessarily frequently, so we want to tweak the heuristics in the following way:
The text was updated successfully, but these errors were encountered: