Boost logo

Boost :

From: Ivan Matek (libbooze_at_[hidden])
Date: 2025-05-21 11:54:16


On Tue, May 20, 2025 at 2:09 AM Steven Watanabe via Boost <
boost_at_[hidden]> wrote:

> AMDG
>
> On 5/19/25 1:01 PM, Ivan Matek via Boost wrote:
> > On Mon, May 19, 2025 at 8:27 PM Joaquin M López Muñoz via Boost <
> > boost_at_[hidden]> wrote:
> >
> >>> It is IDE clang-tidy warning, not sure compiler matters.
> >>>
> >>
> https://clang.llvm.org/extra/clang-tidy/checks/readability/redundant-inline-specifier.html
> >>>
> >>
> >>
> >> Could you please check if adding this comment to the offending lines
> >>
> >> /* NOLINT(readability-redundant-inline-specifier) */
> >>
> >> makes the warnings go away? If so, I'd happily accept a PR with
> >> that change. Thank you!
> >>
> >
> > I am now a bit confused :)
> > I believe warning is correct, why not change the code instead of
> > suppressing the warning?
>
> What do you mean by correct?

Warning is not false positive.

> The warning does not indicate a problem in
> the code, and whether it is more or less readable is very subjective. It
> seems like a pretty pointless warning to me. Even if you care about such
> things, you really shouldn't be applying it to any code other than your
> own.
>

Well as I said it is not a problem since inline is just redundant.
As for if it should be removed: I believe so because people read boost
sources sometimes, especially in libraries like Bloom that are readable
compared to for example some older libraries that do heroics with macros.
And to be clear: IIRC my CLion clang-tidy setting are default, so I did
nothing to enable this lint warning, meaning that every CLion user that
reads Bloom source will get same grayed out code.


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk