[cfe-dev] preventing clang tool working on same file multiple times
Stephen Kelly via cfe-dev
cfe-dev at lists.llvm.org
Mon Sep 17 14:21:35 PDT 2018
On 17/09/18 13:04, Miklos Vajna via cfe-dev wrote:
> Hi,
>
> On Sun, Sep 16, 2018 at 04:45:22PM +0800, spsaxena via cfe-dev <cfe-dev at lists.llvm.org> wrote:
>> So I wish to know if there is some way I can prevent the tool working on
>> same file multiple times else I will need to write a script to read the
>> compilation db and then run the tool on all files in db.
>
> Did you consider emitting replacements from your tool, then using
> clang-apply-replacements to apply them? That way the second step deals
> with de-duplication for you.
FYI, that is currently broken. We're discussing it here:
https://bugs.llvm.org/show_bug.cgi?id=38910
Thanks,
Stephen.
More information about the cfe-dev
mailing list