[cfe-commits] [PATCH] loading external plugins with scan-build
Anna Zaks
ganna at apple.com
Thu May 24 09:48:43 PDT 2012
Thanks Thomas.
Did you test scan-build help?
+# create a list to load the plugins via the 'Xlang' command line
+# argument
+my @PluginLoadCommandline_xlang;
+foreach my $param ( @PluginsToLoad ) {
+ push ( @PluginLoadCommandline_xlang, "-Xlang" );
+ push ( @PluginLoadCommandline_xlang, $param );
+}
Shouldn't "Xlang" be "Xclang"?
Thanks,
Anna.
On May 24, 2012, at 6:43 AM, Thomas Hauth wrote:
> Hello,
> following the discussion on the clang list:
> http://lists.cs.uiuc.edu/pipermail/cfe-dev/2012-May/021491.html
>
> I prepared a patch to load custom plugins when running scan-build. This is useful when additional static analysis Checkers must be provided via clang's plugin interface.
>
> Loading additional plugins can now be done via the scan-build call:
> scan-build -load-plugin <plugin.so>
>
> Please review the attached patch.
>
> Thanks,
> Thomas Hauth
> <clang_patch_scan-build_plugins.diff>_______________________________________________
> cfe-commits mailing list
> cfe-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits
More information about the cfe-commits
mailing list