[cfe-dev] Clang Semantic Analysis for Beginner

Jeffrey Morgan jeffreymorgan1321 at gmail.com
Fri May 9 19:40:58 PDT 2014


Hi,

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.

For example, if I had the following function declarations (where matrix is
a type I added into c++):

void Foo(matrix);
void Foo(float);


1) How would I teach clang about overloading the Foo function to take the
correct types.

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?

Thanks, I've google for information but I oculdn't find much.

I appreciate your time/knowledge.

Thanks!

Jeff
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20140509/c4f14b6f/attachment.html>


More information about the cfe-dev mailing list