[cfe-dev] Fwd: Fwd: I need help on how to build and run clang programs

Jonathan Roelofs via cfe-dev cfe-dev at lists.llvm.org
Thu Mar 24 09:43:05 PDT 2016


Oops. Sent it to the wrong list.


-------- Forwarded Message --------
Subject: Fwd: I need help on how to build and run clang programs
Date: Thu, 24 Mar 2016 10:42:05 -0600
From: Jonathan Roelofs <jonathan at codesourcery.com>
Organization: CodeSourcery / Mentor Embedded
To: erinfolamiayomide at gmail.com
CC: cfe-dev at cs.uiuc.edu Developers <cfe-dev at cs.uiuc.edu>




> -------- Forwarded Message --------
> Subject: I need help on how to build and run clang programs
> Date: Thu, 24 Mar 2016 03:32:01 -0700
> From: erinfolamiayomide at gmail.com
> To: jonathan at codesourcery.com
>
> I am very new to Clang. I want to write a clang program that helps me
> print all the methods including constructor of a c++ code. I am

Have a look at clang::ASTFrontendAction and clang::ASTConsumer.

> having problem identifying the right location to place my files, what
> exactly the cmakeList.txt should contain and also how to build the

It helps to look at other CMakeLists.txt files in the source tree are
doing. Usually copy+paste+modify does the trick.

> clang code to generate a .so file.

Can you elaborate what you're trying to do here?

>
> I need help, please.
>
> Thank you.
>
> _____________________________________ Sent from
> http://clang-developers.42468.n3.nabble.com









More information about the cfe-dev mailing list