Re: [ccache] Speeding up builds with clang-tidy, clang-analyzer and iwyu

2020-12-06 Thread Christian Ledergerber via ccache
mpiled if you change the clang-tidy configuration. But maybe this can be fixed somehow or we could live with this. Christian From: ccache on behalf of Steffen Dettmer via ccache Sent: Friday, December 4, 2020 17:00 To: ccache list Subject: Re: [ccache]

Re: [ccache] Speeding up builds with clang-tidy, clang-analyzer and iwyu

2020-12-04 Thread Steffen Dettmer via ccache
Hi, On Sun, Aug 2, 2020 at 6:55 PM Christian Ledergerber via ccache < ccache@lists.samba.org> wrote: > for our builds currently clang-tidy is currently the limiting factor in > terms of speed. > > There is one utility out there which tries to cache the output of > clang-tidy, however it seems to

Re: [ccache] Speeding up builds with clang-tidy, clang-analyzer and iwyu

2020-08-18 Thread Joel Rosdahl via ccache
On Mon, 17 Aug 2020 at 15:34, Christian Ledergerber wrote: > [...] The point is: I think this is not a coner-case, but people use this > configuration abundantly. I just wanted to stress the point that tools need to handle all configurations correctly, regardless of whether they are popular or

Re: [ccache] Speeding up builds with clang-tidy, clang-analyzer and iwyu

2020-08-17 Thread Christian Ledergerber via ccache
Hi Joel, 1. The solution will require a specific ccache version to work at all. True, a good implementation should warn about a too old ccache version and fail or fall back to running clang-tidy always. 2. The method of using ccache to probe whether clang-tidy should be run won't work for

Re: [ccache] Speeding up builds with clang-tidy, clang-analyzer and iwyu

2020-08-14 Thread Joel Rosdahl via ccache
On Fri, 14 Aug 2020 at 08:39, Christian Ledergerber wrote: > > I have created the following issue for cmake to launch the discussion: > https://gitlab.kitware.com/cmake/cmake/-/issues/21092 When you described your idea I didn't think you meant making changes for incorporation in the upstream

Re: [ccache] Speeding up builds with clang-tidy, clang-analyzer and iwyu

2020-08-14 Thread Christian Ledergerber via ccache
I have created the following issue for cmake to launch the discussion: https://gitlab.kitware.com/cmake/cmake/-/issues/21092 On 04.08.20 19:46, Joel Rosdahl wrote: On Sun, 2 Aug 2020 at 19:49, Christian Ledergerber via ccache wrote: In the mean-time I have been thinking some more and what I

Re: [ccache] Speeding up builds with clang-tidy, clang-analyzer and iwyu

2020-08-04 Thread Joel Rosdahl via ccache
On Sun, 2 Aug 2020 at 19:49, Christian Ledergerber via ccache wrote: > In the mean-time I have been thinking some more and what I am afraid of > is that the result will not be correct if the flags to clang-tidy change. > > A typical command run by make looks like this: > > cd

Re: [ccache] Speeding up builds with clang-tidy, clang-analyzer and iwyu

2020-08-02 Thread Christian Ledergerber via ccache
Thank you for your answer. In the mean-time I have been thinking some more and what I am afraid of is that the result will not be correct if the flags to clang-tidy change. A typical command run by make looks like this: cd /home/dev/erx-soft/cmake-build-debug/modules/utils && ccache

Re: [ccache] Speeding up builds with clang-tidy, clang-analyzer and iwyu

2020-08-02 Thread Joel Rosdahl via ccache
On Sun, 2 Aug 2020 at 18:55, Christian Ledergerber via ccache wrote: > [...] > To me it seems like the following should work: > > 1. try to use ccache > > 2. if no hit: > > - run clang-tidy > > - run clang > > For this I would need to know whether ccache generated a hit - lets say > as return