[cfe-dev] How to write plugin in CLANG

Vane, Edwin edwin.vane at intel.com
Wed Feb 6 08:35:59 PST 2013

Indeed there is! Check out http://clang.llvm.org/docs/ClangPlugins.html. You might want to read http://clang.llvm.org/docs/Tooling.html in case something other than the plugin interface is what you want.

From: cfe-dev-bounces at cs.uiuc.edu [mailto:cfe-dev-bounces at cs.uiuc.edu] On Behalf Of Nilesh Chatekar
Sent: Wednesday, February 06, 2013 3:39 AM
To: cfe-dev at cs.uiuc.edu
Subject: [cfe-dev] How to write plugin in CLANG

   I am new to LLVM and CLANG, I want to write plugin for printing detailed information about source code such as member function, function calls etc.
     I have referred PrintFunctionNames.cpp, and on line documentation for it, still i  am confused about implementation of functions
     ex:- from  CallGraph.cpp i want to use VisitCallExpr(CallExpr *E) and  void  CallGraph::print(raw_ostream &OS),
     also I am getting  different useful  functions regarding my purpose but not getting how to override those functions, is there tutorial available regarding this.

                                 Thanks & Regards
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20130206/5ba090af/attachment.html>

More information about the cfe-dev mailing list