ΒΆunsigned int getLLVMFieldNumber(
    clang::CodeGen::CodeGenModule& CGM,
    const clang::RecordDecl* RD,
    const clang::FieldDecl* FD)

Description

Given a non-bitfield struct field, return its index within the elements of the struct's converted type. The returned index refers to a field number in the complete object type which is returned by convertTypeForMemory. FD must be a field in RD directly (i.e. not an inherited field).

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

Parameters

clang::CodeGen::CodeGenModule& CGM
const clang::RecordDecl* RD
const clang::FieldDecl* FD