[cfe-dev] [analyzer] Applying fixes automatically in CSA as it done in Clang Tidy

Kristóf Umann via cfe-dev cfe-dev at lists.llvm.org
Mon Apr 15 07:55:23 PDT 2019


Hi!

As far as I know, the analyzer currently doesn't support FixIts in any of
the output types, unfortunately. I guess it wouldn't be too hard to add it
to BugReport, and let diagnostic consumers implement it on their own.

Cheers,
Kristóf

On Sun, 14 Apr 2019 at 16:40, Alexander Zaitsev via cfe-dev <
cfe-dev at lists.llvm.org> wrote:

> Hello.
>
> In Clang Tidy there is an option to apply fixes automatically if a
> checker can suggest something. But I can't find similar functionality in
> Clang Static Analyzer (CSA).
>
> My check is too complex to be part of Clang Tidy but I can provide to
> user an option to fix some places automatically. Is there any option to
> do it with CSA?
>
> Thank you.
>
> --
> Best regards,
> Alexander Zaitsev
>
>
> _______________________________________________
> 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/20190415/e68e2a03/attachment.html>


More information about the cfe-dev mailing list