reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced
    1
    2
    3
    4
    5
    6
    7
    8
    9
   10
   11
   12
   13
   14
   15
   16
   17
   18
   19
   20
   21
   22
   23
   24
   25
   26
   27
   28
   29
   30
   31
   32
   33
   34
   35
   36
   37
   38
   39
   40
   41
   42
   43
   44
   45
   46
   47
   48
   49
   50
   51
   52
   53
   54
   55
   56
   57
   58
   59
   60
   61
   62
   63
   64
   65
   66
   67
   68
   69
   70
   71
   72
   73
   74
   75
   76
   77
   78
   79
   80
   81
   82
   83
   84
   85
   86
   87
   88
   89
   90
   91
   92
   93
   94
   95
   96
   97
   98
   99
  100
  101
  102
  103
  104
  105
  106
  107
  108
  109
  110
  111
  112
  113
  114
  115
  116
  117
  118
  119
  120
  121
  122
  123
  124
  125
  126
  127
  128
  129
  130
  131
  132
  133
  134
  135
  136
  137
  138
  139
  140
  141
  142
  143
  144
  145
  146
  147
  148
  149
  150
  151
  152
  153
  154
  155
  156
  157
  158
  159
  160
  161
  162
  163
  164
  165
  166
  167
  168
  169
  170
  171
  172
  173
  174
  175
  176
  177
  178
  179
  180
  181
  182
  183
  184
  185
  186
  187
  188
  189
  190
  191
  192
  193
  194
  195
  196
  197
  198
  199
  200
  201
  202
  203
  204
  205
  206
  207
  208
  209
  210
  211
  212
  213
  214
  215
  216
  217
  218
  219
  220
  221
  222
  223
  224
  225
  226
  227
  228
  229
  230
  231
  232
  233
  234
  235
  236
  237
  238
  239
  240
  241
  242
  243
  244
  245
  246
  247
  248
  249
  250
  251
  252
  253
  254
  255
  256
  257
  258
  259
  260
  261
  262
  263
  264
  265
  266
  267
  268
  269
  270
  271
  272
  273
  274
  275
  276
  277
  278
  279
  280
  281
  282
  283
  284
  285
  286
  287
  288
  289
  290
  291
  292
  293
  294
  295
  296
  297
  298
  299
  300
  301
; These tests are based on clang/test/CodeGenCXX/mangle-ms-arg-qualifiers.cpp
; RUN: llvm-undname < %s | FileCheck %s

; CHECK-NOT: Invalid mangled name

?foo@@YAXI@Z
; CHECK: void __cdecl foo(unsigned int)

?foo@@YAXN@Z  
; CHECK: void __cdecl foo(double)

?foo_pad@@YAXPAD@Z
; CHECK: void __cdecl foo_pad(char *)
?foo_pad@@YAXPEAD@Z
; CHECK: void __cdecl foo_pad(char *)

?foo_pbd@@YAXPBD@Z
; CHECK: void __cdecl foo_pbd(char const *)
?foo_pbd@@YAXPEBD@Z
; CHECK: void __cdecl foo_pbd(char const *)

?foo_pcd@@YAXPCD@Z
; CHECK: void __cdecl foo_pcd(char volatile *)
?foo_pcd@@YAXPECD@Z
; CHECK: void __cdecl foo_pcd(char volatile *)

?foo_qad@@YAXQAD@Z
; CHECK: void __cdecl foo_qad(char *const)
?foo_qad@@YAXQEAD@Z
; CHECK: void __cdecl foo_qad(char *const)

?foo_rad@@YAXRAD@Z
; CHECK: void __cdecl foo_rad(char *volatile)
?foo_rad@@YAXREAD@Z
; CHECK: void __cdecl foo_rad(char *volatile)

?foo_sad@@YAXSAD@Z
; CHECK: void __cdecl foo_sad(char *const volatile)
?foo_sad@@YAXSEAD@Z
; CHECK: void __cdecl foo_sad(char *const volatile)

?foo_piad@@YAXPIAD@Z
; CHECK: void __cdecl foo_piad(char *__restrict)
?foo_piad@@YAXPEIAD@Z
; CHECK: void __cdecl foo_piad(char *__restrict)

?foo_qiad@@YAXQIAD@Z
; CHECK: void __cdecl foo_qiad(char *const __restrict)
?foo_qiad@@YAXQEIAD@Z
; CHECK: void __cdecl foo_qiad(char *const __restrict)

?foo_riad@@YAXRIAD@Z
; CHECK: void __cdecl foo_riad(char *volatile __restrict)
?foo_riad@@YAXREIAD@Z
; CHECK: void __cdecl foo_riad(char *volatile __restrict)

?foo_siad@@YAXSIAD@Z
; CHECK: void __cdecl foo_siad(char *const volatile __restrict)
?foo_siad@@YAXSEIAD@Z
; CHECK: void __cdecl foo_siad(char *const volatile __restrict)

?foo_papad@@YAXPAPAD@Z
; CHECK: void __cdecl foo_papad(char **)
?foo_papad@@YAXPEAPEAD@Z
; CHECK: void __cdecl foo_papad(char **)

?foo_papbd@@YAXPAPBD@Z
; CHECK: void __cdecl foo_papbd(char const **)
?foo_papbd@@YAXPEAPEBD@Z
; CHECK: void __cdecl foo_papbd(char const **)

?foo_papcd@@YAXPAPCD@Z
; CHECK: void __cdecl foo_papcd(char volatile **)
?foo_papcd@@YAXPEAPECD@Z
; CHECK: void __cdecl foo_papcd(char volatile **)

?foo_pbqad@@YAXPBQAD@Z
; CHECK: void __cdecl foo_pbqad(char *const *)
?foo_pbqad@@YAXPEBQEAD@Z
; CHECK: void __cdecl foo_pbqad(char *const *)

?foo_pcrad@@YAXPCRAD@Z
; CHECK: void __cdecl foo_pcrad(char *volatile *)
?foo_pcrad@@YAXPECREAD@Z
; CHECK: void __cdecl foo_pcrad(char *volatile *)

?foo_qapad@@YAXQAPAD@Z
; CHECK: void __cdecl foo_qapad(char **const)
?foo_qapad@@YAXQEAPEAD@Z
; CHECK: void __cdecl foo_qapad(char **const)

?foo_rapad@@YAXRAPAD@Z
; CHECK: void __cdecl foo_rapad(char **volatile)
?foo_rapad@@YAXREAPEAD@Z
; CHECK: void __cdecl foo_rapad(char **volatile)

?foo_pbqbd@@YAXPBQBD@Z
; CHECK: void __cdecl foo_pbqbd(char const *const *)
?foo_pbqbd@@YAXPEBQEBD@Z
; CHECK: void __cdecl foo_pbqbd(char const *const *)

?foo_pbqcd@@YAXPBQCD@Z
; CHECK: void __cdecl foo_pbqcd(char volatile *const *)
?foo_pbqcd@@YAXPEBQECD@Z
; CHECK: void __cdecl foo_pbqcd(char volatile *const *)

?foo_pcrbd@@YAXPCRBD@Z
; CHECK: void __cdecl foo_pcrbd(char const *volatile *)
?foo_pcrbd@@YAXPECREBD@Z
; CHECK: void __cdecl foo_pcrbd(char const *volatile *)

?foo_pcrcd@@YAXPCRCD@Z
; CHECK: void __cdecl foo_pcrcd(char volatile *volatile *)
?foo_pcrcd@@YAXPECRECD@Z
; CHECK: void __cdecl foo_pcrcd(char volatile *volatile *)

?foo_aad@@YAXAAD@Z
?foo_aad@@YAXAEAD@Z
; CHECK: void __cdecl foo_aad(char &)

?foo_abd@@YAXABD@Z
; CHECK: void __cdecl foo_abd(char const &)
?foo_abd@@YAXAEBD@Z
; CHECK: void __cdecl foo_abd(char const &)

?foo_aapad@@YAXAAPAD@Z
; CHECK: void __cdecl foo_aapad(char *&)
?foo_aapad@@YAXAEAPEAD@Z
; CHECK: void __cdecl foo_aapad(char *&)

?foo_aapbd@@YAXAAPBD@Z
; CHECK: void __cdecl foo_aapbd(char const *&)
?foo_aapbd@@YAXAEAPEBD@Z
; CHECK: void __cdecl foo_aapbd(char const *&)

?foo_abqad@@YAXABQAD@Z
; CHECK: void __cdecl foo_abqad(char *const &)
?foo_abqad@@YAXAEBQEAD@Z
; CHECK: void __cdecl foo_abqad(char *const &)

?foo_abqbd@@YAXABQBD@Z
; CHECK: void __cdecl foo_abqbd(char const *const &)
?foo_abqbd@@YAXAEBQEBD@Z
; CHECK: void __cdecl foo_abqbd(char const *const &)

?foo_aay144h@@YAXAAY144H@Z
; CHECK: void __cdecl foo_aay144h(int (&)[5][5])
?foo_aay144h@@YAXAEAY144H@Z
; CHECK: void __cdecl foo_aay144h(int (&)[5][5])

?foo_aay144cbh@@YAXAAY144$$CBH@Z
; CHECK: void __cdecl foo_aay144cbh(int const (&)[5][5])
?foo_aay144cbh@@YAXAEAY144$$CBH@Z
; CHECK: void __cdecl foo_aay144cbh(int const (&)[5][5])

?foo_qay144h@@YAX$$QAY144H@Z
; CHECK: void __cdecl foo_qay144h(int (&&)[5][5])
?foo_qay144h@@YAX$$QEAY144H@Z
; CHECK: void __cdecl foo_qay144h(int (&&)[5][5])

?foo_qay144cbh@@YAX$$QAY144$$CBH@Z
; CHECK: void __cdecl foo_qay144cbh(int const (&&)[5][5])
?foo_qay144cbh@@YAX$$QEAY144$$CBH@Z
; CHECK: void __cdecl foo_qay144cbh(int const (&&)[5][5])

?foo_p6ahxz@@YAXP6AHXZ@Z
; CHECK: void __cdecl foo_p6ahxz(int (__cdecl *)(void))
?foo_p6ahxz@@YAXP6AHXZ@Z
; CHECK: void __cdecl foo_p6ahxz(int (__cdecl *)(void))

?foo_a6ahxz@@YAXA6AHXZ@Z
; CHECK: void __cdecl foo_a6ahxz(int (__cdecl &)(void))
?foo_a6ahxz@@YAXA6AHXZ@Z
; CHECK: void __cdecl foo_a6ahxz(int (__cdecl &)(void))

?foo_q6ahxz@@YAX$$Q6AHXZ@Z
; CHECK: void __cdecl foo_q6ahxz(int (__cdecl &&)(void))
?foo_q6ahxz@@YAX$$Q6AHXZ@Z
; CHECK: void __cdecl foo_q6ahxz(int (__cdecl &&)(void))

?foo_qay04h@@YAXQAY04H@Z
?foo_qay04h@@YAXQEAY04H@Z
; CHECK: void __cdecl foo_qay04h(int (*const)[5])

?foo_qay04cbh@@YAXQAY04$$CBH@Z
; CHECK: void __cdecl foo_qay04cbh(int const (*const)[5])
?foo_qay04cbh@@YAXQEAY04$$CBH@Z
; CHECK: void __cdecl foo_qay04cbh(int const (*const)[5])

?foo@@YAXPAY02N@Z
; CHECK: void __cdecl foo(double (*)[3])
?foo@@YAXPEAY02N@Z
; CHECK: void __cdecl foo(double (*)[3])

?foo@@YAXQAN@Z
; CHECK: void __cdecl foo(double *const)
?foo@@YAXQEAN@Z
; CHECK: void __cdecl foo(double *const)

?foo_const@@YAXQBN@Z
; CHECK: void __cdecl foo_const(double const *const)
?foo_const@@YAXQEBN@Z
; CHECK: void __cdecl foo_const(double const *const)

?foo_volatile@@YAXQCN@Z
; CHECK: void __cdecl foo_volatile(double volatile *const)
?foo_volatile@@YAXQECN@Z
; CHECK: void __cdecl foo_volatile(double volatile *const)

?foo@@YAXPAY02NQBNN@Z
; CHECK: void __cdecl foo(double (*)[3], double const *const, double)
?foo@@YAXPEAY02NQEBNN@Z
; CHECK: void __cdecl foo(double (*)[3], double const *const, double)

?foo_fnptrconst@@YAXP6AXQAH@Z@Z
; CHECK: void __cdecl foo_fnptrconst(void (__cdecl *)(int *const))
?foo_fnptrconst@@YAXP6AXQEAH@Z@Z
; CHECK: void __cdecl foo_fnptrconst(void (__cdecl *)(int *const))

?foo_fnptrarray@@YAXP6AXQAH@Z@Z
; CHECK: void __cdecl foo_fnptrarray(void (__cdecl *)(int *const))
?foo_fnptrarray@@YAXP6AXQEAH@Z@Z
; CHECK: void __cdecl foo_fnptrarray(void (__cdecl *)(int *const))

?foo_fnptrbackref1@@YAXP6AXQAH@Z1@Z
; CHECK: void __cdecl foo_fnptrbackref1(void (__cdecl *)(int *const), void (__cdecl *)(int *const))
?foo_fnptrbackref1@@YAXP6AXQEAH@Z1@Z
; CHECK: void __cdecl foo_fnptrbackref1(void (__cdecl *)(int *const), void (__cdecl *)(int *const))

?foo_fnptrbackref2@@YAXP6AXQAH@Z1@Z
; CHECK: void __cdecl foo_fnptrbackref2(void (__cdecl *)(int *const), void (__cdecl *)(int *const))
?foo_fnptrbackref2@@YAXP6AXQEAH@Z1@Z
; CHECK: void __cdecl foo_fnptrbackref2(void (__cdecl *)(int *const), void (__cdecl *)(int *const))

?foo_fnptrbackref3@@YAXP6AXQAH@Z1@Z
; CHECK: void __cdecl foo_fnptrbackref3(void (__cdecl *)(int *const), void (__cdecl *)(int *const))
?foo_fnptrbackref3@@YAXP6AXQEAH@Z1@Z
; CHECK: void __cdecl foo_fnptrbackref3(void (__cdecl *)(int *const), void (__cdecl *)(int *const))

?foo_fnptrbackref4@@YAXP6AXPAH@Z1@Z
; CHECK: void __cdecl foo_fnptrbackref4(void (__cdecl *)(int *), void (__cdecl *)(int *))
?foo_fnptrbackref4@@YAXP6AXPEAH@Z1@Z
; CHECK: void __cdecl foo_fnptrbackref4(void (__cdecl *)(int *), void (__cdecl *)(int *))

?ret_fnptrarray@@YAP6AXQAH@ZXZ
; CHECK: void (__cdecl * __cdecl ret_fnptrarray(void))(int *const)
?ret_fnptrarray@@YAP6AXQEAH@ZXZ
; CHECK: void (__cdecl * __cdecl ret_fnptrarray(void))(int *const)

; The first argument gets mangled as-if it were written int *const
; The second arg should not form a backref because it isn't qualified
?mangle_no_backref0@@YAXQAHPAH@Z
; CHECK: void __cdecl mangle_no_backref0(int *const, int *)
?mangle_no_backref0@@YAXQEAHPEAH@Z
; CHECK: void __cdecl mangle_no_backref0(int *const, int *)

?mangle_no_backref1@@YAXQAHQAH@Z
; CHECK: void __cdecl mangle_no_backref1(int *const, int *const)
?mangle_no_backref1@@YAXQEAHQEAH@Z
; CHECK: void __cdecl mangle_no_backref1(int *const, int *const)

; Pointer to function types don't backref with function types
?mangle_no_backref2@@YAXP6AXXZP6AXXZ@Z
; CHECK: void __cdecl mangle_no_backref2(void (__cdecl *)(void), void (__cdecl *)(void))
?mangle_no_backref2@@YAXP6AXXZP6AXXZ@Z
; CHECK: void __cdecl mangle_no_backref2(void (__cdecl *)(void), void (__cdecl *)(void))

?mangle_yes_backref0@@YAXQAH0@Z
; CHECK: void __cdecl mangle_yes_backref0(int *const, int *const)
?mangle_yes_backref0@@YAXQEAH0@Z
; CHECK: void __cdecl mangle_yes_backref0(int *const, int *const)

?mangle_yes_backref1@@YAXQAH0@Z
; CHECK: void __cdecl mangle_yes_backref1(int *const, int *const)
?mangle_yes_backref1@@YAXQEAH0@Z
; CHECK: void __cdecl mangle_yes_backref1(int *const, int *const)

?mangle_yes_backref2@@YAXQBQ6AXXZ0@Z
; CHECK: void __cdecl mangle_yes_backref2(void (__cdecl *const *const)(void), void (__cdecl *const *const)(void))
?mangle_yes_backref2@@YAXQEBQ6AXXZ0@Z
; CHECK: void __cdecl mangle_yes_backref2(void (__cdecl *const *const)(void), void (__cdecl *const *const)(void))

?mangle_yes_backref3@@YAXQAP6AXXZ0@Z
; CHECK: void __cdecl mangle_yes_backref3(void (__cdecl **const)(void), void (__cdecl **const)(void))
?mangle_yes_backref3@@YAXQEAP6AXXZ0@Z
; CHECK: void __cdecl mangle_yes_backref3(void (__cdecl **const)(void), void (__cdecl **const)(void))

?mangle_yes_backref4@@YAXQIAH0@Z
; CHECK: void __cdecl mangle_yes_backref4(int *const __restrict, int *const __restrict)
?mangle_yes_backref4@@YAXQEIAH0@Z
; CHECK: void __cdecl mangle_yes_backref4(int *const __restrict, int *const __restrict)

?pr23325@@YAXQBUS@@0@Z
; CHECK: void __cdecl pr23325(struct S const *const, struct S const *const)
?pr23325@@YAXQEBUS@@0@Z
; CHECK: void __cdecl pr23325(struct S const *const, struct S const *const)

; ?vla_arg@@YAXHQAY0A@H@Z
; FIXME: void __cdecl vla_arg(int i, int (*const)[0])
; ?vla_arg@@YAXHQEAY0A@H@Z
; FIXME: void __cdecl vla_arg(int i, int (*const)[0])