Skip to content

FieldDecl::getBitWidthValue api change #153960

@lcarlier

Description

@lcarlier

Hello,

I'm the author of a tool which uses libclang.

My tool doesn't compile anymore because of the following pull request.

#117732

The function FieldDecl::getBitWidthValue has changed. Before it was taking a reference to a const ASTContext &Ctx now it does not.

I still would like to be able to compile my tools against earlier versions of libclang?

How to do? Is there any define or variable I can check at compile time? e.g. on the libclang version?
I see that CINDEX_VERSION_MINOR hasn't been updated for a while....

Kind regards,

Metadata

Metadata

Assignees

No one assigned

    Labels

    clang:frontendLanguage frontend issues, e.g. anything involving "Sema"questionA question, not bug report. Check out https://llvm.org/docs/GettingInvolved.html instead!

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions