Compiling the minimal libclang program attached above using:
clang refgen.cpp -std=c++11 -I"/usr/lib/llvm-3.4/include" -lclang-3.4 -lstdc++ -o refgen
(replacing clang by gcc here does not change anything)
Invoking the libclang program on the test file attached above using:
./refgen test.cpp -std=c++11
Compiling the minimal libclang program attached above using: lib/llvm- 3.4/include" -lclang-3.4 -lstdc++ -o refgen
clang refgen.cpp -std=c++11 -I"/usr/
(replacing clang by gcc here does not change anything)
Invoking the libclang program on the test file attached above using:
./refgen test.cpp -std=c++11