I had a problem with understanding that sentence from the manual. (maybe because I'm not English native)
I tried to test this. First I wanted to peek into the generated .cpp and .o files, but I somehow couldn't really get a clue from that.
Then I just created a test project which called a function 100 times (function contains 100 lines) and built different .apks and compared the sizes of apks:
The first apk is much bigger, so I guess that is where inline-ing happend.
Apparently this is the way to go:
Having "forceinline" outside of function doesn't do anything, I guess, because it generates the same apk size like when having no "forceinline" at all.
Sorry if it was obvious!
But why bulding with "forceinline"takes SO MUCH longer? Why this is so difficult for compiler/linker ???
A build with "inline" took around 7 minutes, while the other two were built almost instantly! (all builds were Android yyc)