[cfe-dev] accessing command line options

Kihong Heo via cfe-dev cfe-dev at lists.llvm.org
Thu Apr 11 06:04:48 PDT 2019

Thanks a lot.

I want to keep some additional information and intermediate results during analysis and dump it in the given output directory. What would be the simplest way?


2019. 4. 11. 오전 8:59, Kristóf Umann <dkszelethus at gmail.com> 작성:

> Hi!
> 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 achieve?
> Cheers,
> Kristóf
>> On Thu, 11 Apr 2019 at 07:16, Kihong Heo via cfe-dev <cfe-dev at lists.llvm.org> wrote:
>> 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/0b2a0b0a/attachment.html>

More information about the cfe-dev mailing list