• Home
  • Raw
  • Download

Lines Matching refs:demangler

26   Demangler demangler;  in TEST()  local
28 ASSERT_EQ("_Zpp4FUNKK", demangler.Parse("_Zpp4FUNKK")); in TEST()
29 ASSERT_EQ("_Zpp4FUNVV", demangler.Parse("_Zpp4FUNVV")); in TEST()
33 Demangler demangler; in TEST() local
35 ASSERT_EQ("func()", demangler.Parse("_ZN4funcEv")); in TEST()
36 ASSERT_EQ("func(void&)", demangler.Parse("_ZN4funcERv")); in TEST()
37 ASSERT_EQ("func(void, void)", demangler.Parse("_ZN4funcEvv")); in TEST()
38 ASSERT_EQ("func(void*)", demangler.Parse("_ZN4funcEPv")); in TEST()
39 ASSERT_EQ("func(void const)", demangler.Parse("_ZN4funcEKv")); in TEST()
40 ASSERT_EQ("func(void volatile)", demangler.Parse("_ZN4funcEVv")); in TEST()
44 Demangler demangler; in TEST() local
46 ASSERT_EQ("func(char)", demangler.Parse("_ZN4funcEc")); in TEST()
47 ASSERT_EQ("func(char*)", demangler.Parse("_ZN4funcEPc")); in TEST()
48 ASSERT_EQ("func(char**)", demangler.Parse("_ZN4funcEPPc")); in TEST()
49 ASSERT_EQ("func(char***)", demangler.Parse("_ZN4funcEPPPc")); in TEST()
50 ASSERT_EQ("func(char&)", demangler.Parse("_ZN4funcERc")); in TEST()
51 ASSERT_EQ("func(char*&)", demangler.Parse("_ZN4funcERPc")); in TEST()
52 ASSERT_EQ("func(char&)", demangler.Parse("_ZN4funcERRc")); in TEST()
53 ASSERT_EQ("func(char*&*)", demangler.Parse("_ZN4funcEPRPc")); in TEST()
54 ASSERT_EQ("func(char**&)", demangler.Parse("_ZN4funcERRPPc")); in TEST()
55 ASSERT_EQ("func(char const)", demangler.Parse("_ZN4funcEKc")); in TEST()
56 ASSERT_EQ("func(char volatile)", demangler.Parse("_ZN4funcEVc")); in TEST()
57 ASSERT_EQ("func(char volatile const)", demangler.Parse("_ZN4funcEKVc")); in TEST()
58 ASSERT_EQ("func(char const volatile)", demangler.Parse("_ZN4funcEVKc")); in TEST()
59 ASSERT_EQ("func(char const* volatile&)", demangler.Parse("_ZN4funcERVPKc")); in TEST()
60 ASSERT_EQ("func(void, char, short)", demangler.Parse("_ZN4funcEvcs")); in TEST()
61 ASSERT_EQ("func(void*, char&, short&*)", demangler.Parse("_ZN4funcEPvRcPRs")); in TEST()
65 Demangler demangler; in TEST() local
67 ASSERT_EQ("func() const", demangler.Parse("_ZNK4funcEv")); in TEST()
68 ASSERT_EQ("func() volatile", demangler.Parse("_ZNV4funcEv")); in TEST()
69 ASSERT_EQ("func() volatile const", demangler.Parse("_ZNKV4funcEv")); in TEST()
70 ASSERT_EQ("func() const volatile", demangler.Parse("_ZNVK4funcEv")); in TEST()
74 Demangler demangler; in TEST() local
76 ASSERT_EQ("one::two()", demangler.Parse("_ZN3one3twoEv")); in TEST()
77 ASSERT_EQ("one::two::three()", demangler.Parse("_ZN3one3two5threeEv")); in TEST()
78 ASSERT_EQ("one::two::three::four()", demangler.Parse("_ZN3one3two5three4fourEv")); in TEST()
79 ASSERT_EQ("one::two::three::four::five()", demangler.Parse("_ZN3one3two5three4four4fiveEv")); in TEST()
80 ASSERT_EQ("one(two::three::four::five)", demangler.Parse("_ZN3oneEN3two5three4four4fiveE")); in TEST()
84 Demangler demangler; in TEST() local
86 ASSERT_EQ("(anonymous namespace)::two()", demangler.Parse("_ZN12_GLOBAL__N_13twoEv")); in TEST()
87 ASSERT_EQ("one::two((anonymous namespace))", demangler.Parse("_ZN3one3twoE12_GLOBAL__N_1")); in TEST()
91 Demangler demangler; in TEST() local
93 ASSERT_EQ("one::two::~two()", demangler.Parse("_ZN3one3twoD0Ev")); in TEST()
94 ASSERT_EQ("one::two::~two()", demangler.Parse("_ZN3one3twoD1Ev")); in TEST()
95 ASSERT_EQ("one::two::~two()", demangler.Parse("_ZN3one3twoD2Ev")); in TEST()
96 ASSERT_EQ("one::two::~two()", demangler.Parse("_ZN3one3twoD5Ev")); in TEST()
97 ASSERT_EQ("one::two::three::~three()", demangler.Parse("_ZN3one3two5threeD0Ev")); in TEST()
99 ASSERT_EQ("_ZN3one3twoD3Ev", demangler.Parse("_ZN3one3twoD3Ev")); in TEST()
100 ASSERT_EQ("_ZN3one3twoD4Ev", demangler.Parse("_ZN3one3twoD4Ev")); in TEST()
101 ASSERT_EQ("_ZN3one3twoD6Ev", demangler.Parse("_ZN3one3twoD6Ev")); in TEST()
102 ASSERT_EQ("_ZN3one3twoD7Ev", demangler.Parse("_ZN3one3twoD7Ev")); in TEST()
103 ASSERT_EQ("_ZN3one3twoD8Ev", demangler.Parse("_ZN3one3twoD8Ev")); in TEST()
104 ASSERT_EQ("_ZN3one3twoD9Ev", demangler.Parse("_ZN3one3twoD9Ev")); in TEST()
106 ASSERT_EQ("one::two<three::four>::~two()", demangler.Parse("_ZN3one3twoIN5three4fourEED2Ev")); in TEST()
110 Demangler demangler; in TEST() local
112 ASSERT_EQ("one::two::two()", demangler.Parse("_ZN3one3twoC1Ev")); in TEST()
113 ASSERT_EQ("one::two::two()", demangler.Parse("_ZN3one3twoC2Ev")); in TEST()
114 ASSERT_EQ("one::two::two()", demangler.Parse("_ZN3one3twoC3Ev")); in TEST()
115 ASSERT_EQ("one::two::two()", demangler.Parse("_ZN3one3twoC5Ev")); in TEST()
116 ASSERT_EQ("one::two::three::three()", demangler.Parse("_ZN3one3two5threeC1Ev")); in TEST()
118 ASSERT_EQ("_ZN3one3twoC0Ev", demangler.Parse("_ZN3one3twoC0Ev")); in TEST()
119 ASSERT_EQ("_ZN3one3twoC4Ev", demangler.Parse("_ZN3one3twoC4Ev")); in TEST()
120 ASSERT_EQ("_ZN3one3twoC6Ev", demangler.Parse("_ZN3one3twoC6Ev")); in TEST()
121 ASSERT_EQ("_ZN3one3twoC7Ev", demangler.Parse("_ZN3one3twoC7Ev")); in TEST()
122 ASSERT_EQ("_ZN3one3twoC8Ev", demangler.Parse("_ZN3one3twoC8Ev")); in TEST()
123 ASSERT_EQ("_ZN3one3twoC9Ev", demangler.Parse("_ZN3one3twoC9Ev")); in TEST()
125 ASSERT_EQ("one::two<three::four>::two()", demangler.Parse("_ZN3one3twoIN5three4fourEEC1Ev")); in TEST()
129 Demangler demangler; in TEST() local
131 ASSERT_EQ("operator&&()", demangler.Parse("_Zaav")); in TEST()
132 ASSERT_EQ("operator&()", demangler.Parse("_Zadv")); in TEST()
133 ASSERT_EQ("operator&()", demangler.Parse("_Zanv")); in TEST()
134 ASSERT_EQ("operator&=()", demangler.Parse("_ZaNv")); in TEST()
135 ASSERT_EQ("operator=()", demangler.Parse("_ZaSv")); in TEST()
136 ASSERT_EQ("operator()()", demangler.Parse("_Zclv")); in TEST()
137 ASSERT_EQ("operator,()", demangler.Parse("_Zcmv")); in TEST()
138 ASSERT_EQ("operator~()", demangler.Parse("_Zcov")); in TEST()
139 ASSERT_EQ("operator delete[]()", demangler.Parse("_Zdav")); in TEST()
140 ASSERT_EQ("operator*()", demangler.Parse("_Zdev")); in TEST()
141 ASSERT_EQ("operator delete()", demangler.Parse("_Zdlv")); in TEST()
142 ASSERT_EQ("operator/()", demangler.Parse("_Zdvv")); in TEST()
143 ASSERT_EQ("operator/=()", demangler.Parse("_ZdVv")); in TEST()
144 ASSERT_EQ("operator^()", demangler.Parse("_Zeov")); in TEST()
145 ASSERT_EQ("operator^=()", demangler.Parse("_ZeOv")); in TEST()
146 ASSERT_EQ("operator==()", demangler.Parse("_Zeqv")); in TEST()
147 ASSERT_EQ("operator>=()", demangler.Parse("_Zgev")); in TEST()
148 ASSERT_EQ("operator>()", demangler.Parse("_Zgtv")); in TEST()
149 ASSERT_EQ("operator[]()", demangler.Parse("_Zixv")); in TEST()
150 ASSERT_EQ("operator<=()", demangler.Parse("_Zlev")); in TEST()
151 ASSERT_EQ("operator<<()", demangler.Parse("_Zlsv")); in TEST()
152 ASSERT_EQ("operator<<=()", demangler.Parse("_ZlSv")); in TEST()
153 ASSERT_EQ("operator<()", demangler.Parse("_Zltv")); in TEST()
154 ASSERT_EQ("operator-()", demangler.Parse("_Zmiv")); in TEST()
155 ASSERT_EQ("operator-=()", demangler.Parse("_ZmIv")); in TEST()
156 ASSERT_EQ("operator*()", demangler.Parse("_Zmlv")); in TEST()
157 ASSERT_EQ("operator*=()", demangler.Parse("_ZmLv")); in TEST()
158 ASSERT_EQ("operator--()", demangler.Parse("_Zmmv")); in TEST()
159 ASSERT_EQ("operator new[]()", demangler.Parse("_Znav")); in TEST()
160 ASSERT_EQ("operator!=()", demangler.Parse("_Znev")); in TEST()
161 ASSERT_EQ("operator-()", demangler.Parse("_Zngv")); in TEST()
162 ASSERT_EQ("operator!()", demangler.Parse("_Zntv")); in TEST()
163 ASSERT_EQ("operator new()", demangler.Parse("_Znwv")); in TEST()
164 ASSERT_EQ("operator||()", demangler.Parse("_Zoov")); in TEST()
165 ASSERT_EQ("operator|()", demangler.Parse("_Zorv")); in TEST()
166 ASSERT_EQ("operator|=()", demangler.Parse("_ZoRv")); in TEST()
167 ASSERT_EQ("operator->*()", demangler.Parse("_Zpmv")); in TEST()
168 ASSERT_EQ("operator+()", demangler.Parse("_Zplv")); in TEST()
169 ASSERT_EQ("operator+=()", demangler.Parse("_ZpLv")); in TEST()
170 ASSERT_EQ("operator++()", demangler.Parse("_Zppv")); in TEST()
171 ASSERT_EQ("operator+()", demangler.Parse("_Zpsv")); in TEST()
172 ASSERT_EQ("operator->()", demangler.Parse("_Zptv")); in TEST()
173 ASSERT_EQ("operator?()", demangler.Parse("_Zquv")); in TEST()
174 ASSERT_EQ("operator%()", demangler.Parse("_Zrmv")); in TEST()
175 ASSERT_EQ("operator%=()", demangler.Parse("_ZrMv")); in TEST()
176 ASSERT_EQ("operator>>()", demangler.Parse("_Zrsv")); in TEST()
177 ASSERT_EQ("operator>>=()", demangler.Parse("_ZrSv")); in TEST()
180 ASSERT_EQ("operator&&()", demangler.Parse("_ZNaaEv")); in TEST()
181 ASSERT_EQ("operator++()", demangler.Parse("_ZNppEv")); in TEST()
182 ASSERT_EQ("one::operator++()", demangler.Parse("_ZN3oneppEv")); in TEST()
185 ASSERT_EQ("operator+(operator|=)", demangler.Parse("_ZNpsENoRE")); in TEST()
186 ASSERT_EQ("operator==()", demangler.Parse("_Zeqv")); in TEST()
188 demangler.Parse("_ZN3oneEN4arg1oREN4arg2eqE")); in TEST()
192 Demangler demangler; in TEST() local
194 ASSERT_EQ("value(char, int)", demangler.Parse("_Z5valueci")); in TEST()
195 ASSERT_EQ("abcdefjklmn(signed char)", demangler.Parse("_Z11abcdefjklmna")); in TEST()
196 ASSERT_EQ("value(one, signed char)", demangler.Parse("_Z5value3onea")); in TEST()
200 Demangler demangler; in TEST() local
202 ASSERT_EQ("value(char, int)", demangler.Parse("_ZL5valueci")); in TEST()
203 ASSERT_EQ("abcdefjklmn(signed char)", demangler.Parse("_ZL11abcdefjklmna")); in TEST()
204 ASSERT_EQ("value(one, signed char)", demangler.Parse("_ZL5value3onea")); in TEST()
208 Demangler demangler; in TEST() local
210 ASSERT_EQ("std::one", demangler.Parse("_ZNSt3oneE")); in TEST()
211 ASSERT_EQ("std::one(std::two)", demangler.Parse("_ZNSt3oneESt3two")); in TEST()
212 ASSERT_EQ("std::std::one(std::two)", demangler.Parse("_ZNStSt3oneESt3two")); in TEST()
213 ASSERT_EQ("std()", demangler.Parse("_ZNStEv")); in TEST()
215 demangler.Parse("_ZN3oneStSt3twoD0ES0_")); in TEST()
217 ASSERT_EQ("std::allocator", demangler.Parse("_ZNSaE")); in TEST()
218 ASSERT_EQ("std::basic_string", demangler.Parse("_ZNSbE")); in TEST()
219 ASSERT_EQ("_ZNScE", demangler.Parse("_ZNScE")); in TEST()
220 ASSERT_EQ("std::iostream", demangler.Parse("_ZNSdE")); in TEST()
221 ASSERT_EQ("_ZNSeE", demangler.Parse("_ZNSeE")); in TEST()
222 ASSERT_EQ("_ZNSfE", demangler.Parse("_ZNSfE")); in TEST()
223 ASSERT_EQ("_ZNSgE", demangler.Parse("_ZNSgE")); in TEST()
224 ASSERT_EQ("_ZNShE", demangler.Parse("_ZNShE")); in TEST()
225 ASSERT_EQ("std::istream", demangler.Parse("_ZNSiE")); in TEST()
226 ASSERT_EQ("_ZNSjE", demangler.Parse("_ZNSjE")); in TEST()
227 ASSERT_EQ("_ZNSkE", demangler.Parse("_ZNSkE")); in TEST()
228 ASSERT_EQ("_ZNSlE", demangler.Parse("_ZNSlE")); in TEST()
229 ASSERT_EQ("_ZNSmE", demangler.Parse("_ZNSmE")); in TEST()
230 ASSERT_EQ("_ZNSnE", demangler.Parse("_ZNSnE")); in TEST()
231 ASSERT_EQ("std::ostream", demangler.Parse("_ZNSoE")); in TEST()
232 ASSERT_EQ("_ZNSpE", demangler.Parse("_ZNSpE")); in TEST()
233 ASSERT_EQ("_ZNSqE", demangler.Parse("_ZNSqE")); in TEST()
234 ASSERT_EQ("_ZNSrE", demangler.Parse("_ZNSrE")); in TEST()
235 ASSERT_EQ("std::string", demangler.Parse("_ZNSsE")); in TEST()
236 ASSERT_EQ("_ZNSuE", demangler.Parse("_ZNSuE")); in TEST()
237 ASSERT_EQ("_ZNSvE", demangler.Parse("_ZNSvE")); in TEST()
238 ASSERT_EQ("_ZNSwE", demangler.Parse("_ZNSwE")); in TEST()
239 ASSERT_EQ("_ZNSxE", demangler.Parse("_ZNSxE")); in TEST()
240 ASSERT_EQ("_ZNSyE", demangler.Parse("_ZNSyE")); in TEST()
241 ASSERT_EQ("_ZNSzE", demangler.Parse("_ZNSzE")); in TEST()
245 Demangler demangler; in TEST() local
247 ASSERT_EQ("func(signed char)", demangler.Parse("_ZN4funcEa")); in TEST()
248 ASSERT_EQ("func(bool)", demangler.Parse("_ZN4funcEb")); in TEST()
249 ASSERT_EQ("func(char)", demangler.Parse("_ZN4funcEc")); in TEST()
250 ASSERT_EQ("func(double)", demangler.Parse("_ZN4funcEd")); in TEST()
251 ASSERT_EQ("func(long double)", demangler.Parse("_ZN4funcEe")); in TEST()
252 ASSERT_EQ("func(float)", demangler.Parse("_ZN4funcEf")); in TEST()
253 ASSERT_EQ("func(__float128)", demangler.Parse("_ZN4funcEg")); in TEST()
254 ASSERT_EQ("func(unsigned char)", demangler.Parse("_ZN4funcEh")); in TEST()
255 ASSERT_EQ("func(int)", demangler.Parse("_ZN4funcEi")); in TEST()
256 ASSERT_EQ("func(unsigned int)", demangler.Parse("_ZN4funcEj")); in TEST()
257 ASSERT_EQ("_ZN4funcEk", demangler.Parse("_ZN4funcEk")); in TEST()
258 ASSERT_EQ("func(long)", demangler.Parse("_ZN4funcEl")); in TEST()
259 ASSERT_EQ("func(unsigned long)", demangler.Parse("_ZN4funcEm")); in TEST()
260 ASSERT_EQ("func(__int128)", demangler.Parse("_ZN4funcEn")); in TEST()
261 ASSERT_EQ("func(unsigned __int128)", demangler.Parse("_ZN4funcEo")); in TEST()
262 ASSERT_EQ("_ZN4funcEp", demangler.Parse("_ZN4funcEp")); in TEST()
263 ASSERT_EQ("_ZN4funcEq", demangler.Parse("_ZN4funcEq")); in TEST()
264 ASSERT_EQ("_ZN4funcEr", demangler.Parse("_ZN4funcEr")); in TEST()
265 ASSERT_EQ("func(short)", demangler.Parse("_ZN4funcEs")); in TEST()
266 ASSERT_EQ("func(unsigned short)", demangler.Parse("_ZN4funcEt")); in TEST()
267 ASSERT_EQ("_ZN4funcEu", demangler.Parse("_ZN4funcEu")); in TEST()
268 ASSERT_EQ("func()", demangler.Parse("_ZN4funcEv")); in TEST()
269 ASSERT_EQ("func(wchar_t)", demangler.Parse("_ZN4funcEw")); in TEST()
270 ASSERT_EQ("func(long long)", demangler.Parse("_ZN4funcEx")); in TEST()
271 ASSERT_EQ("func(unsigned long long)", demangler.Parse("_ZN4funcEy")); in TEST()
272 ASSERT_EQ("func(...)", demangler.Parse("_ZN4funcEz")); in TEST()
276 Demangler demangler; in TEST() local
278 ASSERT_EQ("func(auto)", demangler.Parse("_ZN4funcEDa")); in TEST()
279 ASSERT_EQ("_ZN4funcEDb", demangler.Parse("_ZN4funcEDb")); in TEST()
280 ASSERT_EQ("_ZN4funcEDc", demangler.Parse("_ZN4funcEDc")); in TEST()
281 ASSERT_EQ("func(decimal64)", demangler.Parse("_ZN4funcEDd")); in TEST()
282 ASSERT_EQ("func(decimal128)", demangler.Parse("_ZN4funcEDe")); in TEST()
283 ASSERT_EQ("func(decimal32)", demangler.Parse("_ZN4funcEDf")); in TEST()
284 ASSERT_EQ("_ZN4funcEDg", demangler.Parse("_ZN4funcEDg")); in TEST()
285 ASSERT_EQ("func(half)", demangler.Parse("_ZN4funcEDh")); in TEST()
286 ASSERT_EQ("func(char32_t)", demangler.Parse("_ZN4funcEDi")); in TEST()
287 ASSERT_EQ("_ZN4funcEDj", demangler.Parse("_ZN4funcEDj")); in TEST()
288 ASSERT_EQ("_ZN4funcEDk", demangler.Parse("_ZN4funcEDk")); in TEST()
289 ASSERT_EQ("_ZN4funcEDl", demangler.Parse("_ZN4funcEDl")); in TEST()
290 ASSERT_EQ("_ZN4funcEDm", demangler.Parse("_ZN4funcEDm")); in TEST()
291 ASSERT_EQ("func(decltype(nullptr))", demangler.Parse("_ZN4funcEDn")); in TEST()
292 ASSERT_EQ("_ZN4funcEDo", demangler.Parse("_ZN4funcEDo")); in TEST()
293 ASSERT_EQ("_ZN4funcEDp", demangler.Parse("_ZN4funcEDp")); in TEST()
294 ASSERT_EQ("_ZN4funcEDq", demangler.Parse("_ZN4funcEDq")); in TEST()
295 ASSERT_EQ("_ZN4funcEDr", demangler.Parse("_ZN4funcEDr")); in TEST()
296 ASSERT_EQ("func(char16_t)", demangler.Parse("_ZN4funcEDs")); in TEST()
297 ASSERT_EQ("_ZN4funcEDt", demangler.Parse("_ZN4funcEDt")); in TEST()
298 ASSERT_EQ("_ZN4funcEDu", demangler.Parse("_ZN4funcEDu")); in TEST()
299 ASSERT_EQ("_ZN4funcEDv", demangler.Parse("_ZN4funcEDv")); in TEST()
300 ASSERT_EQ("_ZN4funcEDw", demangler.Parse("_ZN4funcEDw")); in TEST()
301 ASSERT_EQ("_ZN4funcEDx", demangler.Parse("_ZN4funcEDx")); in TEST()
302 ASSERT_EQ("_ZN4funcEDy", demangler.Parse("_ZN4funcEDy")); in TEST()
303 ASSERT_EQ("_ZN4funcEDz", demangler.Parse("_ZN4funcEDz")); in TEST()
307 Demangler demangler; in TEST() local
309 ASSERT_EQ("func(char ())", demangler.Parse("_ZN4funcEFcvE")); in TEST()
310 ASSERT_EQ("func(char (*)())", demangler.Parse("_ZN4funcEPFcvE")); in TEST()
311 ASSERT_EQ("func(char (&)())", demangler.Parse("_ZN4funcERFcvE")); in TEST()
312 ASSERT_EQ("func(char (&)())", demangler.Parse("_ZN4funcERFcvE")); in TEST()
313 ASSERT_EQ("func(char (*&)())", demangler.Parse("_ZN4funcERPFcvE")); in TEST()
314 ASSERT_EQ("func(char (*)(int) const)", demangler.Parse("_ZN4funcEPKFciE")); in TEST()
315 ASSERT_EQ("func(char (&)() const)", demangler.Parse("_ZN4funcERKFcvE")); in TEST()
316 ASSERT_EQ("func(char (&)() volatile)", demangler.Parse("_ZN4funcERVFcvE")); in TEST()
317 ASSERT_EQ("func(char (&)() volatile const)", demangler.Parse("_ZN4funcERKVFcvE")); in TEST()
318 ASSERT_EQ("func(char (&)() const volatile)", demangler.Parse("_ZN4funcERVKFcvE")); in TEST()
319 ASSERT_EQ("func(char (&)(int, signed char) const)", demangler.Parse("_ZN4funcERKFciaE")); in TEST()
321 demangler.Parse("_ZN4fakeEKVPRFcvvaEa")); in TEST()
325 Demangler demangler; in TEST() local
327 ASSERT_EQ("one<char>", demangler.Parse("_ZN3oneIcEE")); in TEST()
328 ASSERT_EQ("one<void>", demangler.Parse("_ZN3oneIvEE")); in TEST()
329 ASSERT_EQ("one<void*>", demangler.Parse("_ZN3oneIPvEE")); in TEST()
330 ASSERT_EQ("one<void const>", demangler.Parse("_ZN3oneIKvEE")); in TEST()
331 ASSERT_EQ("one<char, int, bool>", demangler.Parse("_ZN3oneIcibEE")); in TEST()
332 ASSERT_EQ("one::two<three>", demangler.Parse("_ZN3one3twoIN5threeEEE")); in TEST()
333 ASSERT_EQ("one<char, int, two::three>", demangler.Parse("_ZN3oneIciN3two5threeEEE")); in TEST()
335 ASSERT_EQ("one::two<three<char, int>>", demangler.Parse("_ZN3one3twoIN5threeIciEEEE")); in TEST()
336 …ASSERT_EQ("one::two<three<char, four<int>>>", demangler.Parse("_ZN3one3twoIN5threeIcN4fourIiEEEEEE… in TEST()
338 ASSERT_EQ("one<char>", demangler.Parse("_Z3oneIcE")); in TEST()
339 ASSERT_EQ("one<void>", demangler.Parse("_Z3oneIvE")); in TEST()
340 ASSERT_EQ("one<void*>", demangler.Parse("_Z3oneIPvE")); in TEST()
341 ASSERT_EQ("one<void const>", demangler.Parse("_Z3oneIKvE")); in TEST()
342 ASSERT_EQ("one<char, int, bool>", demangler.Parse("_Z3oneIcibE")); in TEST()
343 ASSERT_EQ("one(two<three>)", demangler.Parse("_Z3one3twoIN5threeEE")); in TEST()
344 ASSERT_EQ("one<char, int, two::three>", demangler.Parse("_Z3oneIciN3two5threeEE")); in TEST()
346 ASSERT_EQ("one(two<three<char, int>>)", demangler.Parse("_Z3one3twoIN5threeIciEEE")); in TEST()
348 demangler.Parse("_Z3one3twoIN5threeIcN4fourIiEEEEE")); in TEST()
352 Demangler demangler; in TEST() local
354 ASSERT_EQ("char one<int>(char)", demangler.Parse("_Z3oneIiEcc")); in TEST()
355 ASSERT_EQ("void one<int>()", demangler.Parse("_Z3oneIiEvv")); in TEST()
356 ASSERT_EQ("char one<int>()", demangler.Parse("_Z3oneIiEcv")); in TEST()
357 ASSERT_EQ("char one<int>(void, void)", demangler.Parse("_Z3oneIiEcvv")); in TEST()
358 ASSERT_EQ("char one<int>()", demangler.Parse("_ZN3oneIiEEcv")); in TEST()
359 ASSERT_EQ("char one<int>(void, void)", demangler.Parse("_ZN3oneIiEEcvv")); in TEST()
363 Demangler demangler; in TEST() local
365 ASSERT_EQ("one(two<char>)", demangler.Parse("_ZN3oneE3twoIcE")); in TEST()
366 ASSERT_EQ("one(two<char, void>)", demangler.Parse("_ZN3oneE3twoIcvE")); in TEST()
368 demangler.Parse("_ZN3oneE3twoIcv5threeI4fouriEE")); in TEST()
372 Demangler demangler; in TEST() local
374 ASSERT_EQ("a::a", demangler.Parse("_ZN1aS_E")); in TEST()
375 ASSERT_EQ("one::one", demangler.Parse("_ZN3oneS_E")); in TEST()
376 ASSERT_EQ("one::two::one", demangler.Parse("_ZN3one3twoS_E")); in TEST()
377 ASSERT_EQ("one::two::three::one", demangler.Parse("_ZN3one3two5threeS_E")); in TEST()
378 ASSERT_EQ("one::two(one)", demangler.Parse("_ZN3one3twoES_")); in TEST()
379 ASSERT_EQ("one::two(three::one)", demangler.Parse("_ZN3one3twoEN5threeS_E")); in TEST()
382 ASSERT_EQ("std::one::std::one", demangler.Parse("_ZNSt3oneS_E")); in TEST()
385 ASSERT_EQ("one::one(one, one)", demangler.Parse("_ZN3oneS_ES_S_")); in TEST()
386 ASSERT_EQ("std::one::two::std::one(std::one)", demangler.Parse("_ZNSt3one3twoS_ES_")); in TEST()
390 Demangler demangler; in TEST() local
393 ASSERT_EQ("a::b::c(a::b)", demangler.Parse("_ZN1a1b1cES0_")); in TEST()
394 ASSERT_EQ("_ZN1a1b1cES1_", demangler.Parse("_ZN1a1b1cES1_")); in TEST()
395 ASSERT_EQ("a::b::c::d(a::b::c)", demangler.Parse("_ZN1a1b1c1dES1_")); in TEST()
397 demangler.Parse("_ZN1a1b1c1d1e1f1g1h1i1j1k1l1m1n1o1p1qESA_")); in TEST()
399 demangler.Parse("_ZN1a1b1c1d1e1f1g1h1i1j1k1l1m1n1o1p1qESB_")); in TEST()
402 ASSERT_EQ("one::two(char&* volatile const, char&)", demangler.Parse("_ZN3one3twoEKVPRcS0_")); in TEST()
403 ASSERT_EQ("one::two(char&* volatile const, char&*)", demangler.Parse("_ZN3one3twoEKVPRcS1_")); in TEST()
405 demangler.Parse("_ZN3one3twoEKVPRcS2_")); in TEST()
406 ASSERT_EQ("one::two(int&* volatile* const, int&)", demangler.Parse("_ZN3one3twoEKPVPRiS0_")); in TEST()
407 ASSERT_EQ("one::two(int&* volatile const, int&*)", demangler.Parse("_ZN3one3twoEKVPRiS1_")); in TEST()
409 demangler.Parse("_ZN3one3twoEKVPRiS2_")); in TEST()
412 ASSERT_EQ("_ZN1a1bES0_", demangler.Parse("_ZN1a1bES0_")); in TEST()
413 ASSERT_EQ("a::b::b(a::b)", demangler.Parse("_ZN1a1bC1ES0_")); in TEST()
414 ASSERT_EQ("a::b::~b(a::b)", demangler.Parse("_ZN1a1bD0ES0_")); in TEST()
417 ASSERT_EQ("a::b::b(a::b, char*, char*)", demangler.Parse("_ZN1a1bC1ES0_PcS1_")); in TEST()
421 Demangler demangler; in TEST() local
423 ASSERT_EQ("one::two<one::three>::two()", demangler.Parse("_ZN3one3twoINS_5threeEEC1Ev")); in TEST()
425 demangler.Parse("_ZN3one3twoC2ERKS0_bPNS_5threeE")); in TEST()
427 demangler.Parse("_ZN3one3two5three4fourINS_4fiveEED2EPS0_")); in TEST()
429 demangler.Parse("_ZN3one3two5three4fourINS_4fiveEED2EPS1_")); in TEST()
431 demangler.Parse("_ZN3one3two5three4fourINS_4fiveEED2EPS2_")); in TEST()
433 demangler.Parse("_ZN3one3two5three4fourINS_4fiveEED2EPS3_")); in TEST()
437 Demangler demangler; in TEST() local
439 ASSERT_EQ("void one<int, double>(int)", demangler.Parse("_ZN3oneIidEEvT_")); in TEST()
440 ASSERT_EQ("void one<int, double>(double)", demangler.Parse("_ZN3oneIidEEvT0_")); in TEST()
441 ASSERT_EQ("void one<int, double, char, void>(char)", demangler.Parse("_ZN3oneIidcvEEvT1_")); in TEST()
443 ASSERT_EQ("void one<int, double>(int)", demangler.Parse("_Z3oneIidEvT_")); in TEST()
444 ASSERT_EQ("void one<int, double>(double)", demangler.Parse("_Z3oneIidEvT0_")); in TEST()
445 ASSERT_EQ("void one<int, double, char, void>(char)", demangler.Parse("_Z3oneIidcvEvT1_")); in TEST()
448 demangler.Parse("_ZN3oneI1a1b1c1d1e1f1g1h1i1j1k1l1m1n1o1p1q1rEEvT10_")); in TEST()
450 demangler.Parse("_ZN3oneI1a1b1c1d1e1f1g1h1i1j1k1l1m1n1o1p1q1rEEvT11_")); in TEST()
453 demangler.Parse("_Z3oneI1a1b1c1d1e1f1g1h1i1j1k1l1m1n1o1p1q1rEvT10_")); in TEST()
455 demangler.Parse("_Z3oneI1a1b1c1d1e1f1g1h1i1j1k1l1m1n1o1p1q1rEvT11_")); in TEST()
459 Demangler demangler; in TEST() local
462 demangler.Parse("_ZN3one3twoC2ERKS0_bPNS_5threeE", 10)); in TEST()
464 demangler.Parse("_ZN3one3twoC2ERKS0_bPNS_5threeE", 30)); in TEST()
466 demangler.Parse("_ZN3one3twoC2ERKS0_bPNS_5threeE", 31)); in TEST()
470 ASSERT_EQ("one::two(auto)", demangler.Parse("_ZN3one3twoEDa", 15)); in TEST()
471 ASSERT_EQ("one::two(auto)", demangler.Parse("_ZN3one3twoEDa", 14)); in TEST()
472 ASSERT_EQ("one::two(auto)", demangler.Parse("_ZN3one3twoEDa", 13)); in TEST()
473 ASSERT_EQ("_ZN3one3twoEDa", demangler.Parse("_ZN3one3twoEDa", 12)); in TEST()
477 Demangler demangler; in TEST() local
479 ASSERT_EQ("one<true>", demangler.Parse("_ZN3oneILb1EEE")); in TEST()
480 ASSERT_EQ("one<false>", demangler.Parse("_ZN3oneILb0EEE")); in TEST()
481 ASSERT_EQ("one<false, true>", demangler.Parse("_ZN3oneILb0ELb1EEE")); in TEST()
483 ASSERT_EQ("one<true>", demangler.Parse("_Z3oneILb1EE")); in TEST()
484 ASSERT_EQ("one<false>", demangler.Parse("_Z3oneILb0EE")); in TEST()
485 ASSERT_EQ("one<false, true>", demangler.Parse("_Z3oneILb0ELb1EE")); in TEST()
488 demangler.Parse("_ZN3oneE3twoI5threeI4fourELb0ELb1EE")); in TEST()
492 Demangler demangler; in TEST() local
494 ASSERT_EQ("non-virtual thunk to one", demangler.Parse("_ZThn0_N3oneE")); in TEST()
495 ASSERT_EQ("non-virtual thunk to two", demangler.Parse("_ZThn0_3two")); in TEST()
496 ASSERT_EQ("non-virtual thunk to three", demangler.Parse("_ZTh0_5three")); in TEST()
497 ASSERT_EQ("non-virtual thunk to four", demangler.Parse("_ZTh_4four")); in TEST()
498 ASSERT_EQ("non-virtual thunk to five", demangler.Parse("_ZTh0123456789_4five")); in TEST()
499 ASSERT_EQ("non-virtual thunk to six", demangler.Parse("_ZThn0123456789_3six")); in TEST()
501 ASSERT_EQ("_ZThn0N3oneE", demangler.Parse("_ZThn0N3oneE")); in TEST()
502 ASSERT_EQ("_ZThn03two", demangler.Parse("_ZThn03two")); in TEST()
503 ASSERT_EQ("_ZTh05three", demangler.Parse("_ZTh05three")); in TEST()
504 ASSERT_EQ("_ZTh4four", demangler.Parse("_ZTh4four")); in TEST()
505 ASSERT_EQ("_ZTh01234567894five", demangler.Parse("_ZTh01234567894five")); in TEST()
506 ASSERT_EQ("_ZThn01234567893six", demangler.Parse("_ZThn01234567893six")); in TEST()
507 ASSERT_EQ("_ZT_N3oneE", demangler.Parse("_ZT_N3oneE")); in TEST()
508 ASSERT_EQ("_ZT0_N3oneE", demangler.Parse("_ZT0_N3oneE")); in TEST()
509 ASSERT_EQ("_ZTH_N3oneE", demangler.Parse("_ZTH_N3oneE")); in TEST()
513 Demangler demangler; in TEST() local
517 demangler.Parse("_ZN7android21SurfaceComposerClient11Transaction5mergeEOS1_")); in TEST()
521 Demangler demangler; in TEST() local
522 EXPECT_EQ("std::state", demangler.Parse("_ZSt5state")); in TEST()
523 EXPECT_EQ("std::_In::ward", demangler.Parse("_ZNSt3_In4wardE")); in TEST()
524 EXPECT_EQ("std::__terminate(void (*)())", demangler.Parse("_ZSt11__terminatePFvvE")); in TEST()
528 Demangler demangler; in TEST() local
530 demangler.Parse("_Z25nfa_sys_ptim_timer_updateP8tPTIM_CB")); in TEST()
532 demangler.Parse("_Z25nfa_sys_ptim_timer_updateP8tPTIM_CB.cfi")); in TEST()