Closed
Description
Affected rules
M9-3-3
Description
Uninstantiated templates may not have resolved all the calls, which prevents this analysis from determining whether non-const functions are further called.
Example
template<typename T>
class Wrapper {
public:
T& Top() { return elements.back(); } // Likely NON_COMPLIANT, but cannot be determined until instantiation.
private:
vector<T> elements;
};
Metadata
Metadata
Assignees
Labels
A false positive or false negative report which is expected to take 1-5 days effort to addressA false positive or false negative report which is expected to take 1-5 days effort to addressAn issue related to observed false positives or false negatives.An issue related to observed false positives or false negatives.Issue reported by an end user of CodeQL Coding StandardsIssue reported by an end user of CodeQL Coding Standards
Type
Projects
Status
Done