| /llvm-project-15.0.7/clang/test/Parser/ |
| H A D | attr-order.cpp | 12 [[noreturn]] __attribute__((cdecl)) __declspec(dllexport) void a(); // ok 13 [[noreturn]] __declspec(dllexport) __attribute__((cdecl)) void b(); // ok 14 [[]] [[noreturn]] __attribute__((cdecl)) __declspec(dllexport) void c(); // ok 17 __declspec(dllexport) [[noreturn]] __attribute__((cdecl)) void d(); // expected-error {{an attribut… 18 __declspec(dllexport) __attribute__((cdecl)) [[noreturn]] void e(); // expected-error {{an attribut… 19 __attribute__((cdecl)) __declspec(dllexport) [[noreturn]] void f(); // expected-error {{an attribut… 20 __attribute__((cdecl)) [[noreturn]] __declspec(dllexport) void g(); // expected-error {{an attribut… 22 [[noreturn]] __attribute__((cdecl))
|
| H A D | x64-windows-calling-convention-handling.c | 3 int __cdecl cdecl(int a, int b, int c, int d) { // expected-no-diagnostics in cdecl() function
|
| H A D | arm-windows-calling-convention-handling.c | 4 int __cdecl cdecl(int a, int b, int c, int d) { // expected-no-diagnostics in cdecl() function
|
| /llvm-project-15.0.7/clang/test/Sema/ |
| H A D | callingconv.c | 26 void __attribute__((cdecl)) ctest0() {} in ctest0() 28 void __attribute__((cdecl(1))) ctest1(float x) {} // expected-error {{'cdecl' attribute takes no ar… in ctest1() 34 void (__attribute__((cdecl)) *ptest1)(void) = test1; // expected-warning {{incompatible function po… 39 void (__attribute__((cdecl)) *pctest2)() = ctest2; 61 void __attribute__((cdecl)) ctest3() {} in ctest3() 65 PROC __attribute__((cdecl)) ctest4(const char *x) {} in ctest4()
|
| H A D | callingconv-iamcu.c | 19 void __attribute__((cdecl)) ctest0() {} in ctest0() 21 void __attribute__((cdecl(1))) ctest1(float x) {} // expected-error {{'cdecl' attribute takes no ar… in ctest1() 30 void (__attribute__((cdecl)) *pctest2)() = ctest2; 46 void __attribute__((cdecl)) ctest3() {} in ctest3() 49 PROC __attribute__((cdecl)) ctest4(const char *x) {} in ctest4()
|
| H A D | stdcall-fastcall.c | 13 void rdar8876096foo1(int i, int j) __attribute__((fastcall, cdecl)); // expected-error {{not compat… 16 void rdar8876096foo4(int i, int j) __attribute__((stdcall, cdecl)); // expected-error {{not compati… 18 void rdar8876096foo6(int i, int j) __attribute__((cdecl, fastcall)); // expected-error {{not compat… 19 void rdar8876096foo7(int i, int j) __attribute__((cdecl, stdcall)); // expected-error {{not compati…
|
| H A D | stdcall-fastcall-x64.c | 13 void rdar8876096foo1(int i, int j) __attribute__((fastcall, cdecl)); // expected-warning{{'fastcall… 16 void rdar8876096foo4(int i, int j) __attribute__((stdcall, cdecl)); // expected-warning{{'stdcall' … 18 void rdar8876096foo6(int i, int j) __attribute__((cdecl, fastcall)); // expected-warning {{'fastcal… 19 void rdar8876096foo7(int i, int j) __attribute__((cdecl, stdcall)); // expected-warning{{'stdcall' …
|
| H A D | ms_abi-sysv_abi.c | 13 void bar(int i, int j) __attribute__((ms_abi, cdecl)); // expected-error{{cdecl and ms_abi attribut… 14 void bar2(int i, int j) __attribute__((sysv_abi, cdecl)); // no-error
|
| H A D | mrtd.c | 24 __attribute__((cdecl)) extern void (*a)(int, int); 27 __attribute__((cdecl)) extern void (*b)(int, ...);
|
| H A D | preserve-call-conv.c | 17 void (__attribute__((cdecl)) *pfoo2)(void *) = foo; // expected-warning {{incompatible function poi… 33 void (__attribute__((cdecl)) *pboo2)(void *) = boo; // expected-warning {{incompatible function poi…
|
| H A D | knr-def-call.c | 47 void func(short d) __attribute__((cdecl)); // expected-note{{previous declaration is here}} 48 void __attribute__((cdecl)) func(d) // expected-warning {{a function definition without a prototype… in func()
|
| H A D | aarch64-vpcs.c | 9 void __attribute__((cdecl)) foo2(void); // expected-note {{previous declaration is h…
|
| H A D | aarch64-svepcs.c | 9 void __attribute__((cdecl)) foo2(void); // expected-note {{previous declaration is here…
|
| /llvm-project-15.0.7/clang/test/SemaCXX/ |
| H A D | lambda-conversion-op-cc.cpp | 15 auto cdecl = [](int, float, double) __attribute__((cdecl)){}; in useage() local 26 (void)+cdecl; in useage() 181 void (*cdecl_ptr)(int, float, double) = cdecl; in useage()
|
| H A D | type-attrs.cpp | 3 void f() [[gnu::cdecl]] {} // expected-warning {{GCC does not allow the 'cdecl' attribute to be wr… in f()
|
| H A D | virtual-override-x86.cpp | 11 …void __attribute__((cdecl)) f(); // expected-error{{virtual function 'f' has different calling co…
|
| H A D | virtual-override-x64.cpp | 14 void __attribute__((cdecl)) f();
|
| /llvm-project-15.0.7/llvm/test/DebugInfo/PDB/ |
| H A D | pdb-type-ref-stats.test | 12 CHECK: calling conv = cdecl, options = None 18 CHECK: calling conv = cdecl, options = None 26 CHECK: calling conv = cdecl, options = None 407 CHECK: calling conv = cdecl, options = None 430 CHECK: calling conv = cdecl, options = None 455 CHECK: calling conv = cdecl, options = None 473 CHECK: calling conv = cdecl, options = None 480 CHECK: calling conv = cdecl, options = None 487 CHECK: calling conv = cdecl, options = None 494 CHECK: calling conv = cdecl, options = None [all …]
|
| H A D | every-type.test | 43 TYPES-NEXT: calling conv = cdecl, options = None 66 TYPES-NEXT: calling conv = cdecl, options = None 72 TYPES-NEXT: calling conv = cdecl, options = None 129 TYPES-NEXT: calling conv = cdecl, options = None 133 TYPES-NEXT: calling conv = cdecl, options = None 184 TYPES-NEXT: calling conv = cdecl, options = None 188 TYPES-NEXT: calling conv = cdecl, options = None 217 TYPES-NEXT: calling conv = cdecl, options = None 224 TYPES-NEXT: calling conv = cdecl, options = None 230 TYPES-NEXT: calling conv = cdecl, options = None [all …]
|
| /llvm-project-15.0.7/clang/test/CodeGenCXX/ |
| H A D | 2007-01-06-PtrMethodInit.cpp | 36 __attribute__ ((regparm (0), cdecl)) HandleEvent (nsIDOMEvent * event) = 48 cdecl)) MouseDown (nsIDOMEvent * aMouseEvent) = 0;
|
| H A D | microsoft-abi-default-cc.cpp | 7 # define METHOD_CC __attribute__ ((cdecl))
|
| /llvm-project-15.0.7/llvm/test/CodeGen/X86/ |
| H A D | tailcall-msvc-conventions.ll | 10 ; Don't allow tail calling these cdecl functions, because we need to clear the 145 ; stdcall to cdecl works if no arguments need popping. 153 ; vectorcall to cdecl works if no arguments need popping. 161 ; fastcall to cdecl works if no arguments need popping.
|
| /llvm-project-15.0.7/clang-tools-extra/test/clang-tidy/checkers/modernize/ |
| H A D | use-trailing-return-type.cpp | 344 int unsigned g3() __attribute__((cdecl)); // FunctionTypeLoc is null. 346 int unsigned __attribute__((cdecl)) g3() ; // FunctionTypeLoc is null. 348 __attribute__((cdecl)) int unsigned g3() ; // FunctionTypeLoc is null.
|
| /llvm-project-15.0.7/clang/test/AST/ |
| H A D | ast-dump-types-json.cpp | 15 #define CDECL __attribute__((cdecl))
|
| H A D | ast-print-attr.c | 12 using C = int (*)() [[gnu::cdecl]];
|