Accessing llvm AST in golang

I am aware of the llvm bindings for go ( However, these do not seem to provide access to the llvm parser / AST modules. I wish to write Go program capable of parsing C++ source files. Is this possible using llvm?

(Alternatively, is there any other way for me to build a linting tool in Go that operates on C++ source files? Perhaps a c++ lexer written in Go?)

For accessing the C++ AST, you’d probably be better off with clang.


1 Like

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.