Skip to content

Commit dfe7dca

Browse files
lcarteyknewbury01
andauthored
Update cpp/common/src/codingstandards/cpp/Class.qll
Co-authored-by: Kristen Newbury <knewbury01@github.com>
1 parent 80ab9a6 commit dfe7dca

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

cpp/common/src/codingstandards/cpp/Class.qll

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -193,8 +193,11 @@ class TrivialMemberFunction extends IntrospectedMemberFunction {
193193
*/
194194
class TemplateOrTemplateClassMemberFunction extends MemberFunction {
195195
TemplateOrTemplateClassMemberFunction() {
196-
isFromUninstantiatedTemplate(_) or
197-
isFromTemplateInstantiation(_)
196+
(
197+
isFromUninstantiatedTemplate(_) or
198+
isFromTemplateInstantiation(_)
199+
) and
200+
not this.isCompilerGenerated()
198201
}
199202
}
200203

0 commit comments

Comments
 (0)