Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add bool to PrimType #317

Open
phadej opened this issue Nov 28, 2024 · 0 comments · May be fixed by #321
Open

Add bool to PrimType #317

phadej opened this issue Nov 28, 2024 · 0 comments · May be fixed by #321

Comments

@phadej
Copy link
Collaborator

phadej commented Nov 28, 2024

C99 extended this set by adding the Boolean type _Bool

(and stdbool.h contains #define bool _Bool)

more recent libclang also treat bool as a keyword.

EDIT: we see something like

    = MkCATypedefStruct {cATypedefStruct_field_0 :: CBool',

in distilled_lib_1 test case. That field is bool.

This is related to #134, while uint64_t is usually a typedef, bool is a macro define at least in musl and glibc on my machine (maybe it's even standard saying it has to be CPP macro?)

@phadej phadej linked a pull request Dec 2, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant