@@ -10,10 +10,9 @@ private import semmle.code.cpp.internal.ResolveClass
10
10
* * UsingAliasTypedefType: using <name> = <type>;
11
11
*/
12
12
class TypedefType extends UserType {
13
-
14
13
TypedefType ( ) {
15
- usertypes ( underlyingElement ( this ) , _ , 5 ) or
16
- usertypes ( underlyingElement ( this ) , _ , 14 )
14
+ usertypes ( underlyingElement ( this ) , _ , 5 ) or
15
+ usertypes ( underlyingElement ( this ) , _ , 14 )
17
16
}
18
17
19
18
/**
@@ -52,28 +51,26 @@ class TypedefType extends UserType {
52
51
* A traditional C/C++ typedef type. See 4.9.1.
53
52
*/
54
53
class CTypedefType extends TypedefType {
55
-
56
- CTypedefType ( ) {
57
- usertypes ( underlyingElement ( this ) , _, 5 )
58
- }
54
+ CTypedefType ( ) { usertypes ( underlyingElement ( this ) , _, 5 ) }
59
55
60
56
override string getCanonicalQLClass ( ) { result = "CTypedefType" }
61
57
62
- override string explain ( ) { result = "typedef {" + this .getBaseType ( ) .explain ( ) + "} as \"" + this .getName ( ) + "\"" }
58
+ override string explain ( ) {
59
+ result = "typedef {" + this .getBaseType ( ) .explain ( ) + "} as \"" + this .getName ( ) + "\""
60
+ }
63
61
}
64
62
65
63
/**
66
64
* A using alias C++ typedef type.
67
65
*/
68
66
class UsingAliasTypedefType extends TypedefType {
69
-
70
- UsingAliasTypedefType ( ) {
71
- usertypes ( underlyingElement ( this ) , _, 14 )
72
- }
67
+ UsingAliasTypedefType ( ) { usertypes ( underlyingElement ( this ) , _, 14 ) }
73
68
74
69
override string getCanonicalQLClass ( ) { result = "UsingAliasTypedefType" }
75
70
76
- override string explain ( ) { result = "using {" + this .getBaseType ( ) .explain ( ) + "} as \"" + this .getName ( ) + "\"" }
71
+ override string explain ( ) {
72
+ result = "using {" + this .getBaseType ( ) .explain ( ) + "} as \"" + this .getName ( ) + "\""
73
+ }
77
74
}
78
75
79
76
/**
0 commit comments