[cfe-dev] Using Clang plugins with release version of clang on OS X

Jevin Sweval jevinsweval at gmail.com
Thu Jul 3 14:30:53 PDT 2014


On Mon, Jun 30, 2014 at 2:51 AM, Jonathan 'Rynn' Sauer
<jonathan.sauer at gmx.de> wrote:
> Hello,
>
>>> On 30 Jun 2014, at 04:04, Alp Toker <alp at nuanti.com> wrote:
>>>
>>> clang plugins will in fact only load and run properly in the exact same build configuration and source tree version (SVN revision+patches) of LLVM and clang. The compiler used to build either also needs to match, so that's unlikely to ever work.
>>
>> Thanks for this information, it would have saved me hours if I knew it earlier. Could this limitation be mentioned on the Clang Tooling page so that people know that plugins aren't suitable for use cases like mine?
>>
>> I'll look into other options. Thanks again.
>
> One of those options might be to replace Xcode's clang. For me the following works (after making a backup
> of the original files of course ;-):
>
> *snip*
>
> HTH,
> Jonathan

Also, https://github.com/Jean-Daniel/clang-xcode might be able to
help. It lets you select the "Clang Nightly" compiler from the Xcode
drop-down list. I'm not sure if it can also hook into the "Analyze"
action in Xcode.

Cheers,
Jevin



More information about the cfe-dev mailing list