@@ -46,7 +46,7 @@ class BasicStringMemberFunctionDereferencedExpr extends BasicStringDereferencedE
46
46
// basic_string::basic_string(const charT *, const Allocator &)
47
47
f instanceof Constructor and
48
48
f .getNumberOfParameters ( ) <= 2 and
49
- f .getParameter ( 0 ) .getType ( ) = stringType .getConstCharTPointer ( ) and
49
+ f .getParameter ( 0 ) .getType ( ) = stringType .getValueType ( ) and
50
50
(
51
51
f .getNumberOfParameters ( ) = 2
52
52
implies
@@ -58,23 +58,23 @@ class BasicStringMemberFunctionDereferencedExpr extends BasicStringDereferencedE
58
58
// basic_string &basic_string::assign(const charT *)
59
59
f .hasName ( [ "append" , "assign" ] ) and
60
60
f .getNumberOfParameters ( ) = 1 and
61
- fc . getArgument ( 0 ) .getType ( ) = stringType .getConstCharTPointer ( ) and
61
+ f . getParameter ( 0 ) .getType ( ) = stringType .getValueType ( ) and
62
62
this = fc .getArgument ( 0 )
63
63
or
64
64
// basic_string &basic_string::insert(size_type, const charT *)
65
65
f .hasName ( "insert" ) and
66
66
f .getNumberOfParameters ( ) = 2 and
67
- fc . getArgument ( 0 ) .getType ( ) = stringType .getSizeType ( ) and
68
- fc . getArgument ( 1 ) .getType ( ) = stringType .getConstCharTPointer ( ) and
67
+ f . getParameter ( 0 ) .getType ( ) = stringType .getSizeType ( ) and
68
+ f . getParameter ( 1 ) .getType ( ) = stringType .getValueType ( ) and
69
69
this = fc .getArgument ( 1 )
70
70
or
71
71
// basic_string &basic_string::replace(size_type, size_type, const charT *)
72
72
// basic_string &basic_string::replace(const_iterator, const_iterator, const charT *)
73
73
f .hasName ( "replace" ) and
74
74
f .getNumberOfParameters ( ) = 3 and
75
- fc . getArgument ( 0 ) .getType ( ) = [ stringType .getSizeType ( ) , stringType .getConstIteratorType ( ) ] and
76
- fc . getArgument ( 1 ) .getType ( ) = [ stringType .getSizeType ( ) , stringType .getConstIteratorType ( ) ] and
77
- fc . getArgument ( 2 ) .getType ( ) = stringType .getConstCharTPointer ( ) and
75
+ f . getParameter ( 0 ) .getType ( ) = [ stringType .getSizeType ( ) , stringType .getConstIteratorType ( ) ] and
76
+ f . getParameter ( 1 ) .getType ( ) = [ stringType .getSizeType ( ) , stringType .getConstIteratorType ( ) ] and
77
+ f . getParameter ( 2 ) .getType ( ) = stringType .getValueType ( ) and
78
78
this = fc .getArgument ( 2 )
79
79
or
80
80
// size_type basic_string::find(const charT *, size_type)
@@ -87,24 +87,24 @@ class BasicStringMemberFunctionDereferencedExpr extends BasicStringDereferencedE
87
87
"find" , "rfind" , "find_first_of" , "find_last_of" , "find_first_not_of" , "find_last_not_of"
88
88
] ) and
89
89
f .getNumberOfParameters ( ) = 2 and
90
- fc . getArgument ( 0 ) .getType ( ) = stringType .getConstCharTPointer ( ) and
91
- fc . getArgument ( 1 ) .getType ( ) = stringType .getSizeType ( ) and
90
+ f . getParameter ( 0 ) .getType ( ) = stringType .getValueType ( ) and
91
+ f . getParameter ( 1 ) .getType ( ) = stringType .getSizeType ( ) and
92
92
this = fc .getArgument ( 0 )
93
93
or
94
94
// int basic_string::compare(const charT *)
95
95
// basic_string &basic_string::operator=(const charT *)
96
96
// basic_string &basic_string::operator+=(const charT *)
97
97
f .hasName ( [ "compare" , "operator=" , "operator+=" ] ) and
98
98
f .getNumberOfParameters ( ) = 1 and
99
- fc . getArgument ( 0 ) .getType ( ) = stringType .getConstCharTPointer ( ) and
99
+ f . getParameter ( 0 ) .getType ( ) = stringType .getValueType ( ) and
100
100
this = fc .getArgument ( 0 )
101
101
or
102
102
// int basic_string::compare(size_type, size_type, const charT *)
103
103
f .hasName ( "compare" ) and
104
104
f .getNumberOfParameters ( ) = 3 and
105
- fc . getArgument ( 0 ) .getType ( ) = stringType .getSizeType ( ) and
106
- fc . getArgument ( 1 ) .getType ( ) = stringType .getSizeType ( ) and
107
- fc . getArgument ( 2 ) .getType ( ) = stringType .getConstCharTPointer ( ) and
105
+ f . getParameter ( 0 ) .getType ( ) = stringType .getSizeType ( ) and
106
+ f . getParameter ( 1 ) .getType ( ) = stringType .getSizeType ( ) and
107
+ f . getParameter ( 2 ) .getType ( ) = stringType .getValueType ( ) and
108
108
this = fc .getArgument ( 2 )
109
109
)
110
110
}
@@ -136,7 +136,7 @@ class BasicStringNonMemberFunctionDereferencedExpr extends BasicStringDereferenc
136
136
] ) and
137
137
f .getAParameter ( ) .getType ( ) .( ReferenceType ) .getBaseType ( ) .getUnspecifiedType ( ) = stringType and
138
138
exists ( int param |
139
- fc . getArgument ( param ) .getType ( ) = stringType .getConstCharTPointer ( ) and
139
+ f . getParameter ( param ) .getType ( ) = stringType .getValueType ( ) and
140
140
this = fc .getArgument ( param )
141
141
)
142
142
)
0 commit comments