[cfe-dev] accessing command line options

Kristóf Umann via cfe-dev cfe-dev at lists.llvm.org
Thu Apr 11 05:59:54 PDT 2019


You may use the AnalyzerOptions class to retrieve analyzer specific command
line options, and you can get one easily from CheckerContext. For the
output directory, FrontendOptions should be used, but I don't think you can
get your hands on it from a checker callback. What would you like to


On Thu, 11 Apr 2019 at 07:16, Kihong Heo via cfe-dev <cfe-dev at lists.llvm.org>

> Hi list,
> How can I get command line options, especially “-o” of scan-build (output
> directory), in a checker function such as “checkEndAnalysis”?
> Thanks,
> Kihong
> _______________________________________________
> 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/20190411/c166c21a/attachment.html>

More information about the cfe-dev mailing list