<div dir="ltr"><div class="gmail_default" style="font-family:'courier new',monospace;font-size:small;color:rgb(11,83,148)">Hello,</div><div class="gmail_default" style="font-family:'courier new',monospace;font-size:small;color:rgb(11,83,148)">
<br></div><div class="gmail_default" style="font-family:'courier new',monospace;font-size:small;color:rgb(11,83,148)">I am trying to *always* inline my functions (do not care about speed, performance etc). Currently I am doing it the way it has been suggested:</div>
<div class="gmail_default" style="font-family:'courier new',monospace;font-size:small;color:rgb(11,83,148)"><br></div><div class="gmail_default"><div class="gmail_default"><font color="#0b5394" face="courier new, monospace">static inline int add(int i, int j) { return i + j; }</font></div>
<div class="gmail_default"><font color="#0b5394" face="courier new, monospace"><br></font></div><div class="gmail_default"><font color="#0b5394" face="courier new, monospace">int main() {</font></div><div class="gmail_default">
<font color="#0b5394" face="courier new, monospace"> int i = add(4, 5);</font></div><div class="gmail_default"><font color="#0b5394" face="courier new, monospace"> return i;</font></div><div class="gmail_default"><font color="#0b5394" face="courier new, monospace">}</font></div>
<div class="gmail_default"><font color="#0b5394" face="courier new, monospace"><br></font></div><div class="gmail_default"><font color="#0b5394" face="courier new, monospace">However if I print the AST of the program (clang -cc1 ast-dump program.c), it shows two functions, NOT the add inlined into main. Am I missing something?</font></div>
</div></div>