<div dir="ltr">Hi, <div><br></div><div>I'm looking for resources or advice on how to get started with adding to a type system for a C like language in clang.<br><br>For example, if I had the following function declarations (where matrix is a type I added into c++):<br>
<br>void Foo(matrix);</div><div>void Foo(float);<br> <br><br>1) How would I teach clang about overloading the Foo function to take the correct types. </div><div><br></div><div>2) I see a SemaConsumer class that seems to work like the ASTConsumer, but allows me to modify the AST. If I was implementing a type system (or additions to one), would I work mostly with this class?<br>
<br>Thanks, I've google for information but I oculdn't find much.<br><br>I appreciate your time/knowledge.</div><div><br></div><div>Thanks!</div><div><br></div><div>Jeff</div></div>