Help regarding clang


I am very new to clang and llvm.I want to build a clang tool to give automated feedback by analyzing c++ source code.Input to the tool is a c++ code and output should be feedback related to small problems that i implement(like say modulus operation on floating point number).Feedback will be given input as a string.How to proceed with such a problem.Please help.Any example doing similar kind of thing will be very helpful.

IIT Bombay.

Can you give an example that actually compiles, and the expected output? (using % on a float value doesn’t compile, because both sides need to be integer).

Curtesy says that you should copy the list when you reply (in other words, use “reply to all”).

Thanks for that.
How can we create mutations of a given source code using clang?.Input to my tool will be c++ code and output will be some n mutations of that c++ code.