105 references to Cdecl
Microsoft.CodeAnalysis (2)
Symbols\PlatformInvokeInformation.cs (2)
110return CallingConvention.Cdecl; 204case CallingConvention.Cdecl:
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (1)
CodeGen\CodeGenLocalFunctionTests.cs (1)
5852Assert.Equal(CallingConvention.Cdecl, importData.CallingConvention);
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (1)
Attributes\AttributeTests_WellKnownAttributes.cs (1)
2858new { attr = MakeDllImport(cc: CallingConvention.Cdecl), expected = MethodImportAttributes.CallingConventionCDecl }, // M1
Microsoft.CodeAnalysis.CSharp.Scripting.UnitTests (1)
InteractiveSessionTests.cs (1)
282Assert.Equal(CallingConvention.Cdecl, dllImport.CallingConvention);
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (1)
Semantics\TopLevelStatementsTests.cs (1)
6207Assert.Equal(CallingConvention.Cdecl, importData.CallingConvention);
Microsoft.CodeAnalysis.VisualBasic.Emit.UnitTests (1)
Attributes\AttributeTests_WellKnownAttributes.vb (1)
1879New With {.n = 1, .attr = MakeDllImport(cc:=CallingConvention.Cdecl), .expected = MethodImportAttributes.CallingConventionCDecl},
Microsoft.CodeAnalysis.Workspaces.MSBuild (2)
src\Workspaces\MSBuild\BuildHost\Rpc\Contracts\MonoMSBuildDiscovery.cs (2)
41[DllImport("libc", EntryPoint = "realpath", CharSet = CharSet.Ansi, ExactSpelling = true, CallingConvention = CallingConvention.Cdecl)] 45[DllImport("libc", EntryPoint = "free", ExactSpelling = true, CallingConvention = CallingConvention.Cdecl)]
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (2)
Rpc\Contracts\MonoMSBuildDiscovery.cs (2)
41[DllImport("libc", EntryPoint = "realpath", CharSet = CharSet.Ansi, ExactSpelling = true, CallingConvention = CallingConvention.Cdecl)] 45[DllImport("libc", EntryPoint = "free", ExactSpelling = true, CallingConvention = CallingConvention.Cdecl)]
Microsoft.Interop.LibraryImportGenerator (1)
Analyzers\ConvertToLibraryImportFixer.cs (1)
593CallingConvention.Cdecl => editor.SemanticModel.Compilation.ObjectType.ContainingAssembly.
Microsoft.ML.Mkl.Components (7)
OlsLinearRegression.cs (3)
552[DllImport(MklPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LAPACKE_dpptrf"), SuppressUnmanagedCodeSecurity] 587[DllImport(MklPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LAPACKE_dpptrs"), SuppressUnmanagedCodeSecurity] 634[DllImport(MklPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LAPACKE_dpptri"), SuppressUnmanagedCodeSecurity]
SymSgdClassificationTrainer.cs (1)
932[DllImport(MklPath, EntryPoint = "DftiErrorMessage", CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Auto), SuppressUnmanagedCodeSecurity]
VectorWhitening.cs (3)
532[DllImport(MklPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "cblas_sgemv"), SuppressUnmanagedCodeSecurity] 537[DllImport(MklPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "cblas_sgemm"), SuppressUnmanagedCodeSecurity] 542[DllImport(MklPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LAPACKE_sgesvd"), SuppressUnmanagedCodeSecurity]
Microsoft.ML.TestFrameworkCommon (1)
Attributes\AttributeHelpers.cs (1)
40[DllImport("libc", ExactSpelling = true, CallingConvention = CallingConvention.Cdecl)]
Microsoft.ML.TimeSeries (11)
EigenUtils.cs (8)
474[DllImport(MklPath, EntryPoint = "LAPACKE_shseqr", CallingConvention = CallingConvention.Cdecl), SuppressUnmanagedCodeSecurity] 479[DllImport(MklPath, EntryPoint = "LAPACKE_dhseqr", CallingConvention = CallingConvention.Cdecl), SuppressUnmanagedCodeSecurity] 484[DllImport(MklPath, EntryPoint = "LAPACKE_ssytrd", CallingConvention = CallingConvention.Cdecl), SuppressUnmanagedCodeSecurity] 489[DllImport(MklPath, EntryPoint = "LAPACKE_dsytrd", CallingConvention = CallingConvention.Cdecl), SuppressUnmanagedCodeSecurity] 494[DllImport(MklPath, EntryPoint = "LAPACKE_ssteqr", CallingConvention = CallingConvention.Cdecl), SuppressUnmanagedCodeSecurity] 499[DllImport(MklPath, EntryPoint = "LAPACKE_dsteqr", CallingConvention = CallingConvention.Cdecl), SuppressUnmanagedCodeSecurity] 504[DllImport(MklPath, EntryPoint = "LAPACKE_sorgtr", CallingConvention = CallingConvention.Cdecl), SuppressUnmanagedCodeSecurity] 508[DllImport(MklPath, EntryPoint = "LAPACKE_dorgtr", CallingConvention = CallingConvention.Cdecl), SuppressUnmanagedCodeSecurity]
FftUtils.cs (3)
174[DllImport(MklPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "DftiCommitDescriptor"), SuppressUnmanagedCodeSecurity] 178[DllImport(MklPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "DftiFreeDescriptor"), SuppressUnmanagedCodeSecurity] 202[DllImport(MklPath, EntryPoint = "DftiErrorMessage", CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Auto), SuppressUnmanagedCodeSecurity]
Microsoft.ML.Vision (5)
ImageClassificationTrainer.cs (5)
1524[DllImport("tensorflow", CallingConvention = CallingConvention.Cdecl)] 1527[DllImport("tensorflow", CallingConvention = CallingConvention.Cdecl)] 1530[DllImport("tensorflow", CallingConvention = CallingConvention.Cdecl)] 1536[UnmanagedFunctionPointer(CallingConvention.Cdecl)] 1580[DllImport("tensorflow", CallingConvention = CallingConvention.Cdecl)]
PresentationCore (20)
src\Microsoft.DotNet.Wpf\src\Shared\System\Windows\Interop\OSVersionHelper.cs (20)
126[DllImport(DllImport.PresentationNative, CallingConvention = CallingConvention.Cdecl)] 130[DllImport(DllImport.PresentationNative, CallingConvention = CallingConvention.Cdecl)] 134[DllImport(DllImport.PresentationNative, CallingConvention = CallingConvention.Cdecl)] 138[DllImport(DllImport.PresentationNative, CallingConvention = CallingConvention.Cdecl)] 142[DllImport(DllImport.PresentationNative, CallingConvention = CallingConvention.Cdecl)] 146[DllImport(DllImport.PresentationNative, CallingConvention = CallingConvention.Cdecl)] 150[DllImport(DllImport.PresentationNative, CallingConvention = CallingConvention.Cdecl)] 154[DllImport(DllImport.PresentationNative, CallingConvention = CallingConvention.Cdecl)] 158[DllImport(DllImport.PresentationNative, CallingConvention = CallingConvention.Cdecl)] 162[DllImport(DllImport.PresentationNative, CallingConvention = CallingConvention.Cdecl)] 166[DllImport(DllImport.PresentationNative, CallingConvention = CallingConvention.Cdecl)] 170[DllImport(DllImport.PresentationNative, CallingConvention = CallingConvention.Cdecl)] 174[DllImport(DllImport.PresentationNative, CallingConvention = CallingConvention.Cdecl)] 178[DllImport(DllImport.PresentationNative, CallingConvention = CallingConvention.Cdecl)] 182[DllImport(DllImport.PresentationNative, CallingConvention = CallingConvention.Cdecl)] 186[DllImport(DllImport.PresentationNative, CallingConvention = CallingConvention.Cdecl)] 190[DllImport(DllImport.PresentationNative, CallingConvention = CallingConvention.Cdecl)] 194[DllImport(DllImport.PresentationNative, CallingConvention = CallingConvention.Cdecl)] 198[DllImport(DllImport.PresentationNative, CallingConvention = CallingConvention.Cdecl)] 202[DllImport(DllImport.PresentationNative, CallingConvention = CallingConvention.Cdecl)]
PresentationFramework (20)
src\Microsoft.DotNet.Wpf\src\Shared\System\Windows\Interop\OSVersionHelper.cs (20)
126[DllImport(DllImport.PresentationNative, CallingConvention = CallingConvention.Cdecl)] 130[DllImport(DllImport.PresentationNative, CallingConvention = CallingConvention.Cdecl)] 134[DllImport(DllImport.PresentationNative, CallingConvention = CallingConvention.Cdecl)] 138[DllImport(DllImport.PresentationNative, CallingConvention = CallingConvention.Cdecl)] 142[DllImport(DllImport.PresentationNative, CallingConvention = CallingConvention.Cdecl)] 146[DllImport(DllImport.PresentationNative, CallingConvention = CallingConvention.Cdecl)] 150[DllImport(DllImport.PresentationNative, CallingConvention = CallingConvention.Cdecl)] 154[DllImport(DllImport.PresentationNative, CallingConvention = CallingConvention.Cdecl)] 158[DllImport(DllImport.PresentationNative, CallingConvention = CallingConvention.Cdecl)] 162[DllImport(DllImport.PresentationNative, CallingConvention = CallingConvention.Cdecl)] 166[DllImport(DllImport.PresentationNative, CallingConvention = CallingConvention.Cdecl)] 170[DllImport(DllImport.PresentationNative, CallingConvention = CallingConvention.Cdecl)] 174[DllImport(DllImport.PresentationNative, CallingConvention = CallingConvention.Cdecl)] 178[DllImport(DllImport.PresentationNative, CallingConvention = CallingConvention.Cdecl)] 182[DllImport(DllImport.PresentationNative, CallingConvention = CallingConvention.Cdecl)] 186[DllImport(DllImport.PresentationNative, CallingConvention = CallingConvention.Cdecl)] 190[DllImport(DllImport.PresentationNative, CallingConvention = CallingConvention.Cdecl)] 194[DllImport(DllImport.PresentationNative, CallingConvention = CallingConvention.Cdecl)] 198[DllImport(DllImport.PresentationNative, CallingConvention = CallingConvention.Cdecl)] 202[DllImport(DllImport.PresentationNative, CallingConvention = CallingConvention.Cdecl)]
System.Private.CoreLib (6)
src\libraries\Common\src\Interop\Interop.HostPolicy.cs (2)
11[UnmanagedFunctionPointer(CallingConvention.Cdecl)] 15[UnmanagedFunctionPointer(CallingConvention.Cdecl)]
src\System\Reflection\Emit\RuntimeTypeBuilder.cs (1)
1157case CallingConvention.Cdecl:
src\System\Reflection\Emit\SignatureHelper.cs (1)
84if (unmanagedCallConv == CallingConvention.Cdecl)
src\System\Reflection\RuntimeCustomAttributeData.cs (2)
2202CallingConvention callingConvention = CallingConvention.Cdecl; 2207case PInvokeAttributes.CallConvCdecl: callingConvention = CallingConvention.Cdecl; break;
System.Reflection.Emit (2)
System\Reflection\Emit\ModuleBuilderImpl.cs (1)
1380CallingConvention.Cdecl => SignatureCallingConvention.CDecl,
System\Reflection\Emit\PseudoCustomAttributesData.cs (1)
121CallingConvention.Cdecl => MethodImportAttributes.CallingConventionCDecl,
System.Reflection.MetadataLoadContext (1)
System\Reflection\TypeLoading\MethodBase\Ecma\EcmaMethodDecoder.cs (1)
133MethodImportAttributes.CallingConventionCDecl => CallingConvention.Cdecl,
UIAutomationTypes (20)
src\Microsoft.DotNet.Wpf\src\Shared\System\Windows\Interop\OSVersionHelper.cs (20)
126[DllImport(DllImport.PresentationNative, CallingConvention = CallingConvention.Cdecl)] 130[DllImport(DllImport.PresentationNative, CallingConvention = CallingConvention.Cdecl)] 134[DllImport(DllImport.PresentationNative, CallingConvention = CallingConvention.Cdecl)] 138[DllImport(DllImport.PresentationNative, CallingConvention = CallingConvention.Cdecl)] 142[DllImport(DllImport.PresentationNative, CallingConvention = CallingConvention.Cdecl)] 146[DllImport(DllImport.PresentationNative, CallingConvention = CallingConvention.Cdecl)] 150[DllImport(DllImport.PresentationNative, CallingConvention = CallingConvention.Cdecl)] 154[DllImport(DllImport.PresentationNative, CallingConvention = CallingConvention.Cdecl)] 158[DllImport(DllImport.PresentationNative, CallingConvention = CallingConvention.Cdecl)] 162[DllImport(DllImport.PresentationNative, CallingConvention = CallingConvention.Cdecl)] 166[DllImport(DllImport.PresentationNative, CallingConvention = CallingConvention.Cdecl)] 170[DllImport(DllImport.PresentationNative, CallingConvention = CallingConvention.Cdecl)] 174[DllImport(DllImport.PresentationNative, CallingConvention = CallingConvention.Cdecl)] 178[DllImport(DllImport.PresentationNative, CallingConvention = CallingConvention.Cdecl)] 182[DllImport(DllImport.PresentationNative, CallingConvention = CallingConvention.Cdecl)] 186[DllImport(DllImport.PresentationNative, CallingConvention = CallingConvention.Cdecl)] 190[DllImport(DllImport.PresentationNative, CallingConvention = CallingConvention.Cdecl)] 194[DllImport(DllImport.PresentationNative, CallingConvention = CallingConvention.Cdecl)] 198[DllImport(DllImport.PresentationNative, CallingConvention = CallingConvention.Cdecl)] 202[DllImport(DllImport.PresentationNative, CallingConvention = CallingConvention.Cdecl)]