I would like to see the effects of inlining C/C++ functions at the source code level.

After some searchs it looks like IDEs like Eclipse can do that on Java code, but not in C/C++. Am I right?

Also I would like to control when to inline or not inline a function at the calling site. I understand that Intel's ICC "#pragma forceinline" is exactly addressing this, in contrast to the GCC "__attribute__((always_inline))" which is addressing all the function invocations.

I understand that it would be possible to implement such translation using clang. Do you foresee any major roadblock for that?

I am also wondering if anyone has done anything similar, or there exist other alternatives I haven't though of...

Similar questions and discussions