ΒΆllvm::Function*
getNonTrivialCStructCopyConstructor(
    clang::CodeGen::CodeGenModule& CGM,
    clang::CharUnits DstAlignment,
    clang::CharUnits SrcAlignment,
    bool IsVolatile,
    clang::QualType QT)

Description

Returns the copy constructor for a C struct with non-trivially copyable fields, generating it if necessary. The returned function uses the `cdecl` calling convention, returns void, and takes two arguments: pointers to the addresses of the destination and source structs, respectively.

Declared at: clang/include/clang/CodeGen/CodeGenABITypes.h:139

Parameters

clang::CodeGen::CodeGenModule& CGM
clang::CharUnits DstAlignment
clang::CharUnits SrcAlignment
bool IsVolatile
clang::QualType QT