-
Notifications
You must be signed in to change notification settings - Fork 21
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
size_t getting TypeKind.INT instead of TypeKind.ULONG #53
Comments
Cannot reproduce. You could check |
Closing as answered. Feel free to reopen if you could provide minimal example that can reproduce this issue. |
I am encountering the same problem. For some files/headers, the library misinterpret I am in an Ubuntu 20.04 (Dockerized) with $ uname -a
Linux d3718923266e 5.15.0-73-generic #80~20.04.1-Ubuntu SMP Wed May 17 14:58:14 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux I made a minimal example here: libclang.zip To note that $ clang-12 --version
Ubuntu clang version 12.0.0-3ubuntu1~20.04.5
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/bin
$ clang-12 -I. -Xclang -ast-dump -fsyntax-only min.cc | grep aom_uleb_encode_fixed_size
| | | `-FunctionDecl 0x20ae310 <line:60:1, line:62:50> line:60:5 aom_uleb_encode_fixed_size 'int (uint64_t, size_t, size_t, uint8_t *, size_t *)' |
@sighingnow do you prefer I open a new issue? |
For the case of libc's malloc function I get the tokens:
and the parameter has the tokens:
However when I look at the type of the parameter with param.type I get
TypeKind.INT
instead of something resembling size_t.The text was updated successfully, but these errors were encountered: