cpp2cxx icon indicating copy to clipboard operation
cpp2cxx copied to clipboard

Can't find a clang version to build successfully

Open ghost opened this issue 7 years ago • 5 comments

Hello !

Thanks for sharing this software that is very interesting for source to source transformation. I've tried many llvm/clang versions but I can't find any with which I was able to succeffuly build cpp2cxx :( What version do you recommand please ?

ghost avatar Dec 26 '17 13:12 ghost

clang-3.8 will work.

hiraditya avatar Jan 03 '18 22:01 hiraditya

Ive successfully built cpp2cxx with llvm/clang-3.8 although

  • I've had to change ClangInterface/ASTConsumer.cpp @460 to

PP.getBuiltinInfo().initializeBuiltins(PP.getIdentifierTable(),

  • Also I've had to remove dependency on library LLVMipa (It seem to be fixed with llvm/clang-3.8.1 but I did not test)

Thank you !

ghost avatar Jan 08 '18 12:01 ghost

That's great!, i'll apply your patch and let you know. Are you working on this as a hobby or a project?

hiraditya avatar Jan 08 '18 18:01 hiraditya

It's a hobby as of now

ghost avatar Jan 09 '18 11:01 ghost

ok, if you are planning to extend it, there are some improvements mentioned in the paper which were not implemented. I'd be glad to discuss with you. Also, it will be great to integrate this as a clang-plugin and get rid of boost-library dependencies. clang already has a very good ast visitor so dependency on boost::wave is not required.

hiraditya avatar Jan 09 '18 17:01 hiraditya