@@ -503,6 +503,8 @@ class FunctionDeclarationEntry extends DeclarationEntry, @fun_decl {
503503 /** Gets the function which is being declared or defined. */
504504 override Function getDeclaration ( ) { result = getFunction ( ) }
505505
506+ override string getCanonicalQLClass ( ) { result = "FunctionDeclarationEntry" }
507+
506508 /** Gets the function which is being declared or defined. */
507509 Function getFunction ( ) { fun_decls ( underlyingElement ( this ) , unresolveElement ( result ) , _, _, _) }
508510
@@ -707,7 +709,7 @@ class TopLevelFunction extends Function {
707709 TopLevelFunction ( ) {
708710 not this .isMember ( )
709711 }
710- /** Canonical QL class corresponding to this element. */
712+
711713 override string getCanonicalQLClass ( ) { result = "TopLevelFunction" }
712714}
713715
@@ -720,7 +722,6 @@ class MemberFunction extends Function {
720722 this .isMember ( )
721723 }
722724
723- /** Canonical QL class corresponding to this element. */
724725 override string getCanonicalQLClass ( ) { result = "MemberFunction" }
725726
726727 /**
@@ -774,7 +775,6 @@ class VirtualFunction extends MemberFunction {
774775 this .hasSpecifier ( "virtual" ) or purefunctions ( underlyingElement ( this ) )
775776 }
776777
777- /** Canonical QL class corresponding to this element. */
778778 override string getCanonicalQLClass ( ) { result = "VirtualFunction" }
779779
780780 /** Holds if this virtual function is pure. */
@@ -794,7 +794,6 @@ class PureVirtualFunction extends VirtualFunction {
794794
795795 PureVirtualFunction ( ) { purefunctions ( underlyingElement ( this ) ) }
796796
797- /** Canonical QL class corresponding to this element. */
798797 override string getCanonicalQLClass ( ) { result = "PureVirtualFunction" }
799798}
800799
@@ -807,7 +806,6 @@ class ConstMemberFunction extends MemberFunction {
807806
808807 ConstMemberFunction ( ) { this .hasSpecifier ( "const" ) }
809808
810- /** Canonical QL class corresponding to this element. */
811809 override string getCanonicalQLClass ( ) { result = "ConstMemberFunction" }
812810}
813811
@@ -818,7 +816,6 @@ class Constructor extends MemberFunction {
818816
819817 Constructor ( ) { functions ( underlyingElement ( this ) , _, 2 ) }
820818
821- /** Canonical QL class corresponding to this element. */
822819 override string getCanonicalQLClass ( ) { result = "Constructor" }
823820
824821 /**
@@ -866,7 +863,6 @@ class ConversionConstructor extends Constructor, ImplicitConversionFunction {
866863 and not ( this instanceof CopyConstructor )
867864 }
868865
869- /** Canonical QL class corresponding to this element. */
870866 override string getCanonicalQLClass ( ) { result = "ConversionConstructor" }
871867
872868 /** Gets the type this `ConversionConstructor` takes as input. */
@@ -924,7 +920,6 @@ class CopyConstructor extends Constructor {
924920 not exists ( getATemplateArgument ( ) )
925921 }
926922
927- /** Canonical QL class corresponding to this element. */
928923 override string getCanonicalQLClass ( ) { result = "CopyConstructor" }
929924
930925 /**
@@ -975,7 +970,6 @@ class MoveConstructor extends Constructor {
975970 not exists ( getATemplateArgument ( ) )
976971 }
977972
978- /** Canonical QL class corresponding to this element. */
979973 override string getCanonicalQLClass ( ) { result = "MoveConstructor" }
980974
981975 /**
@@ -1010,7 +1004,6 @@ class NoArgConstructor extends Constructor {
10101004class Destructor extends MemberFunction {
10111005 Destructor ( ) { functions ( underlyingElement ( this ) , _, 3 ) }
10121006
1013- /** Canonical QL class corresponding to this element. */
10141007 override string getCanonicalQLClass ( ) { result = "Destructor" }
10151008
10161009 /**
@@ -1038,6 +1031,8 @@ class ConversionOperator extends MemberFunction, ImplicitConversionFunction {
10381031
10391032 ConversionOperator ( ) { functions ( underlyingElement ( this ) , _, 4 ) }
10401033
1034+ override string getCanonicalQLClass ( ) { result = "ConversionOperator" }
1035+
10411036 override Type getSourceType ( ) { result = this .getDeclaringType ( ) }
10421037 override Type getDestType ( ) { result = this .getType ( ) }
10431038
@@ -1050,6 +1045,7 @@ class Operator extends Function {
10501045
10511046 Operator ( ) { functions ( underlyingElement ( this ) , _, 5 ) }
10521047
1048+ override string getCanonicalQLClass ( ) { result = "Operator" }
10531049}
10541050
10551051/**
@@ -1072,7 +1068,7 @@ class CopyAssignmentOperator extends Operator {
10721068 not exists ( this .getParameter ( 1 ) ) and
10731069 not exists ( getATemplateArgument ( ) )
10741070 }
1075- /** Canonical QL class corresponding to this element. */
1071+
10761072 override string getCanonicalQLClass ( ) { result = "CopyAssignmentOperator" }
10771073}
10781074
@@ -1093,7 +1089,7 @@ class MoveAssignmentOperator extends Operator {
10931089 not exists ( this .getParameter ( 1 ) ) and
10941090 not exists ( getATemplateArgument ( ) )
10951091 }
1096- /** Canonical QL class corresponding to this element. */
1092+
10971093 override string getCanonicalQLClass ( ) { result = "MoveAssignmentOperator" }
10981094}
10991095
@@ -1115,7 +1111,6 @@ class MoveAssignmentOperator extends Operator {
11151111class TemplateFunction extends Function {
11161112 TemplateFunction ( ) { is_function_template ( underlyingElement ( this ) ) and exists ( getATemplateArgument ( ) ) }
11171113
1118- /** Canonical QL class corresponding to this element. */
11191114 override string getCanonicalQLClass ( ) { result = "TemplateFunction" }
11201115 /**
11211116 * Gets a compiler-generated instantiation of this function template.
@@ -1148,7 +1143,6 @@ class FunctionTemplateInstantiation extends Function {
11481143 tf .getAnInstantiation ( ) = this
11491144 }
11501145
1151- /** Canonical QL class corresponding to this element. */
11521146 override string getCanonicalQLClass ( ) { result = "FunctionTemplateInstantiation" }
11531147
11541148 /**
@@ -1187,7 +1181,6 @@ class FunctionTemplateSpecialization extends Function {
11871181 this .isSpecialization ( )
11881182 }
11891183
1190- /** Canonical QL class corresponding to this element. */
11911184 override string getCanonicalQLClass ( ) { result = "FunctionTemplateSpecialization" }
11921185
11931186 /**
0 commit comments