[cfe-users] How to use clang-apply-replacements with clang-tidy fixit file
Robert Ankeney via cfe-users
cfe-users at lists.llvm.org
Mon Apr 29 09:31:47 PDT 2019
I used the run-clang-tidy script to operate across a large compilation
database using:
run-clang-tidy.py -header-filter=.*
-checks=-*,-cppcoreguidelines-pro-type-member-init -export-fixes=ctinit.yaml
This generated a large YAML fixit file. I've since edited the file to
remove and/or change some of the fixits. I'm now writing a program to split
the results into a set of file by file fixits with duplicates removed so I
can apply the results in stages.
Robert
On Fri, Apr 26, 2019 at 2:11 PM Christian Gagneraud <chgans at gmail.com>
wrote:
> On Sat, 27 Apr 2019 at 09:01, Robert Ankeney <rrankene at gmail.com> wrote:
> >
> > Hi Chris,
> >
> > Thanks for the fast response! As it turns out, I was doing that, but
> found that there must be some edit in my .yaml file it doesn't like, as it
> simply returned without doing anything. Making a short subset of the file
> worked fine, so I'm looking at breaking it into pieces to see if I can
> narrow it down. On the first cut, it at least did warn me about some
> duplicate replacements and exited.
> >
>
> Feel free to submit bug report and/or suggestion:
> https://llvm.org/docs/HowToSubmitABug.html
>
> What program do you use to generate the replacement files?
>
> Chris
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-users/attachments/20190429/bd68b9a0/attachment.html>
More information about the cfe-users
mailing list