<div dir="ltr">Hi,<div><br></div><div>I am have generated a clang AST by running these commands on Windows on the Visual Studio command-line:</div><div><br></div><div>clang-cl <header-name> -Xclang -ast-dump -fsyntax-only -fno-color-diagnostics -w</div><div><br></div><div> And saved it in a file f.ast</div><div><br></div><div>I now want to take that file as input into a Python script, so I wrote this code:</div><div><br></div><div>Config.set_library_fie(libclang_path)</div><div>index = Index.create()</div><div>logging.debug( "Reading AST file...")</div><div>tu = index.read("f.ast")</div><div>logging.debug( "done parsing AST" )</div><div># other stuff below</div><div><br></div><div>When I run this, I see command-line output:</div><div>"Reading AST file..."</div><div><br></div><div>And I get a popup indicating a C/C++ error in libclang.dll:</div><div>"Expression: ((End-Start) & 3) == 0 && "Bitcode stream not a multiple of 4 bytes""</div><div><br></div><div>Do you know why this happens, and how to fix?</div><div><br></div><div>- Daniel</div><div><br></div></div>