1

Say you have a complex compilation call with g++:

g++ -c -Wall -Werror -I/usr/include... bla bla

and you want the very same call to output exactly the same with clang:

clang -c -Wall -Werror -I/usr/include... bla bla

Is there an option for clang to compile exactly like g++?

The problem is that in our project we get no warnings/errors with the g++ call, but many warnings with the clang call.

It would be nice to have a switch which disables all default options of clang and just parses the actual call parameters.

1 Answer 1

1

First, take a look to Clang users manual, wikipedia Clang and to LibTooling. A good tutorial about using Clang API is compiling code Clang.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.