I found the problem!
I forgot to update my make file to link against the ARCMigrate library.
I realized that after adding -I$(LLVM_SRC_PATH)/tools/clang/lib/ARCMigrate to my CLANG_INCLUDES, I also had to add -lclangARCMigrate to my CLANG_LIBS, which solved the problem.
I wonder why Transforms.h isn't included in clang's tools build directory?
So, in conclusion, answering my first question, the following code can be used to find the location just after the semicolon:
SourceLocation SemiLoc = clang::arcmt::trans::findSemiAfterLocation(D->getLocEnd(), D->getASTContext());
Regards,
Fred
_______________________________________________
cfe-dev mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev