caide-cpp-inliner icon indicating copy to clipboard operation
caide-cpp-inliner copied to clipboard

Complex macros are not supported

Open AlCash07 opened this issue 8 years ago • 2 comments

Most of the code gets removed, so the result doesn't compile http://ideone.com/7yQH6L

AlCash07 avatar Jun 24 '17 18:06 AlCash07

Multiline thing is unrelated, you'll get the same result if you put it all on a single line. The problem is that macros creating new declarations are generally unsupported. I may try to fix some simple cases, but no promise on that: macros, especially complex ones, are too rare.

slycelote avatar Jun 27 '17 04:06 slycelote

Partial class creation using macros, probably, isn't a good style, and I'll rework that. But, in case there are a lot of similar functions, macros can really shorten the code, for example with template point class. Looks like, the inliner works in that case. The only thing is that it leaves all the comments, for some reason.

AlCash07 avatar Jun 27 '17 06:06 AlCash07