Markus Zimmermann

Results 96 comments of Markus Zimmermann

1.) I do not think we should use a slice at all since the array already defines the its size by definition e.g. "uintptr_t ptr_data[2]" has a size of 2....

ad 1: Go has arrays https://golang.org/ref/spec#Array_types I would use them for the Go binding. They are even from a memory point of view the same as in C or did...

ad 2: yep ad 4: sounds good

It would be enormously helpful if you would contribute a solution for this issue :-) Do not worry about the binary size, it is statically linked after all. I tried...

There is a libclang.a in the libdir directory: ``` ls -lh /usr/lib/llvm-3.4/lib/libclang.a -rw-r--r-- 1 root root 1.1M Sep 5 2014 /usr/lib/llvm-3.4/lib/libclang.a ```

Maybe it is a good idea to post the output of the command ``` # CC=clang-3.4 CGO_LDFLAGS="$(command ls /usr/lib/llvm-3.4/lib/*.a | grep -v {unwind,lldb,libc++})" go build -a -x -tags=static -ldflags "-extldflags...

The development environment of go-clang is still on Ubuntu Trusty (14.04) see https://github.com/go-clang/gen/#how-to-contribute

``` ls -1 /usr/lib/llvm-3.4/lib/clang/3.4.2/lib/linux/*.a /usr/lib/llvm-3.4/lib/clang/3.4.2/lib/linux/libclang_rt.asan-x86_64.a /usr/lib/llvm-3.4/lib/clang/3.4.2/lib/linux/libclang_rt.dfsan-x86_64.a /usr/lib/llvm-3.4/lib/clang/3.4.2/lib/linux/libclang_rt.full-x86_64.a /usr/lib/llvm-3.4/lib/clang/3.4.2/lib/linux/libclang_rt.lsan-x86_64.a /usr/lib/llvm-3.4/lib/clang/3.4.2/lib/linux/libclang_rt.msan-x86_64.a /usr/lib/llvm-3.4/lib/clang/3.4.2/lib/linux/libclang_rt.profile-x86_64.a /usr/lib/llvm-3.4/lib/clang/3.4.2/lib/linux/libclang_rt.san-x86_64.a /usr/lib/llvm-3.4/lib/clang/3.4.2/lib/linux/libclang_rt.tsan-x86_64.a /usr/lib/llvm-3.4/lib/clang/3.4.2/lib/linux/libclang_rt.ubsan_cxx-x86_64.a /usr/lib/llvm-3.4/lib/clang/3.4.2/lib/linux/libclang_rt.ubsan-x86_64.a vagrant@vagrant-ubuntu-trusty-64:~/go/src/github.com/go-clang/gen$ ls -1 /usr/lib/llvm-3.4/lib/ Display all 169 possibilities? (y or n) vagrant@vagrant-ubuntu-trusty-64:~/go/src/github.com/go-clang/gen$ ls -1 /usr/lib/llvm-3.4/lib/*.a /usr/lib/llvm-3.4/lib/libclang.a...

Maybe this thread helps https://groups.google.com/forum/#!msg/golang-nuts/hs8Gj1Ukqmc/hkskTVllEQAJ

A general question, do we need repositories that are go-getable? I mean at the moment we say that users should use `CGO_LDFLAGS="-L`llvm-config --libdir`" go get -u github.com/go-clang/v3.7/...` That is go-getable...