[cfe-dev] scan-build error

Valeriy Savchenko via cfe-dev cfe-dev at lists.llvm.org
Mon Jun 15 03:35:00 PDT 2020


Essentially, scan-build is a fairly lightweight script.  Xcode is supported with a simple pattern matching of a command that is run via scan-build.
  if ($Cmd =~ /\bxcodebuild$/) {
    return RunXcodebuild($Args, $IgnoreErrors, $CCAnalyzer, $CXXAnalyzer, $EnvVars);
So, in your particular case, the only way to do it with a script is to call scan-build within this script as well.

> On 15 Jun 2020, at 11:26, 1789955632 via cfe-dev <cfe-dev at lists.llvm.org> wrote:
> hi,
> I'm using scan-build to build OC projects, when the command is "scan-build xcodebuild -target ... ", it works and bugs found. But "scan-build build.sh" (build.sh contents 'xcodebuild -target ...') throws error with <all-product-headers.yaml: error>.
> Is there any difference between those two build command? And how to build successfully with scan-build a build.sh?
> Thanks.
> _______________________________________________
> cfe-dev mailing list
> cfe-dev at lists.llvm.org
> https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20200615/d5e28c61/attachment.html>

More information about the cfe-dev mailing list