We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e1f822a commit 2029a18Copy full SHA for 2029a18
cpp/autosar/src/rules/M9-3-3/MemberFunctionConstIfPossible.ql
@@ -54,7 +54,10 @@ class ConstMemberFunctionCandidate extends NonConstMemberFunction {
54
not this instanceof Destructor and
55
not this instanceof Operator and
56
//less interested in MemberFunctions with no definition
57
- this.hasDefinition()
+ this.hasDefinition() and
58
+ // For uninstantiated templates we have only partial information that prevents us from determining
59
+ // if the candidate calls non-const functions. Therefore we exclude these.
60
+ not this.isFromUninstantiatedTemplate(_)
61
}
62
63
/**
0 commit comments