Adding a new stmt node

Hi

I tried to add a new AST stmt node called oclSync. I have implemented a oclSync class and add the definition to StmtNodes.td.

When compiling clang, I got an error as:

undefined reference to `clang::RecursiveASTVisitor<(anonymous namespace)::BoostConASTConsumer>::TraverseOclSync(clang::OclSync*)’

I realise that I need to implement the TraverseOclSync() method. But where should I implement it?

Cheers,
Zheng

http://codesearch.google.com/#search/&q=RecursiveASTVisitor&type=cs
include/clang/AST/RecursiveASTVisitor.h