Closed tregua87 closed 10 months ago
tu = index.parse(tmp_file, args=[f"-I{include_folder}"])
+ for diag in tu.diagnostics:
+ print(diag)
You will see that there are some errors during parsing:
./min.cc
././aom/aomcx.h:19:10: fatal error: 'aom/aom.h' file not found
Hi, I reopen this issue.
I am encountering the same problem. For some files/headers, the libclang misinterpret size_t type.
I am in an Ubuntu 20.04 (Dockerized) with libclang==14.0.6 (installed from pip).
I made a minimal example here. You should just unzip and run ./sizet_error.py
To note that clang-12 seems to get the correct AST.