Re: [RFC] Clang plugin for catching suspicious typedef casting - Mailing list pgsql-hackers

From Dmitry Dolgov
Subject Re: [RFC] Clang plugin for catching suspicious typedef casting
Date
Msg-id 20230804104738.hg7dk4xhmv2vy7b7@ddolgov.remote.csb
Whole thread Raw
In response to Re: [RFC] Clang plugin for catching suspicious typedef casting  ("Tristan Partin" <tristan@neon.tech>)
Responses Re: [RFC] Clang plugin for catching suspicious typedef casting
List pgsql-hackers
> On Thu, Aug 03, 2023 at 12:23:52PM -0500, Tristan Partin wrote:
>
> This is the first I am learning about clang plugins. Interesting concept.
> Did you give any thought to using libclang instead of a compiler plugin? I
> am kind of doing similar work, but I went with libclang instead of a plugin.

Nope, never thought about trying libclang. From the clang documentation
it seems a plugin is a suitable interface if one wants to:

    special lint-style warnings or errors for your project

Which is what I was trying to achieve. Are there any advantages of
libclang that you see?



pgsql-hackers by date:

Previous
From: Richard Guo
Date:
Subject: Check volatile functions in ppi_clauses for memoize node
Next
From: Amit Kapila
Date:
Subject: Re: [PoC] pg_upgrade: allow to upgrade publisher node