[cfe-dev] clang library cycles

Sean Silva silvas at purdue.edu
Mon Aug 20 11:39:08 PDT 2012


Why don't you try a Clang plugin?

A while back I wrote a clang plugin that incidentally does most of the
setup you need:

https://github.com/chisophugis/clang_plugin_example

Then just rebuild all of clang hooking the plugin in with CXXFLAGS (I
can be more specific if you need some more guidance).

--Sean Silva

On Mon, Aug 20, 2012 at 11:42 AM, don hinton <don.hinton at gmx.com> wrote:
> Hi Sean:
>
> Here's the script.  It's real simple, but should give you and idea.
> I can refine it later if you want.  I'd hoped to use it to do a topo
> sort to get the correct order to generate documentation -- the
> makefiles don't contain this info for libs.  However, the cycles plus
> additional include files not in any lib subdirectory, e.g., in llvm,
> make that impossible.
>
> Therefore, I'll hack the makefiles to generate docs on the include
> directories first, then use those tag files when generating the
> libs.  I can then go back and redo the include directory and include
> those tags to get everything wired up again -- sorta like multiple
> passes in a linker.
>
> take care...
> don
>
>
>> ----- Original Message -----
>> From: Sean Silva
>> Sent: 08/20/12 12:47 AM
>> To: don hinton
>> Subject: Re: [cfe-dev] clang library cycles
>>
>> Could you produce some sort of visualization? My suspicion is that
>> some of the cycles are unintended and a good visualization would
>> pinpoint some problematic dependencies.
>>
>> --Sean Silva
>>
>> On Sun, Aug 19, 2012 at 8:12 PM, don hinton <don.hinton at gmx.com> wrote:
>> > Hi:
>> >
>> > I'd planned to document each clang library separately and include tag files for libraries each depends on, but have found cycles between several of the libs. Based on the #includes, cycles exist between AST, Basic, Sema, Parse, and Serialization.
>> >
>> > At this point, I'll probably just do them all as one big lib, but am open to suggestion.
>> >
>> > thanks...
>> > don
>> > _______________________________________________
>> > cfe-dev mailing list
>> > cfe-dev at cs.uiuc.edu
>> > http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev
>



More information about the cfe-dev mailing list