Giter Club home page Giter Club logo

Comments (5)

mclow avatar mclow commented on July 21, 2024

I'm not seeing any way to assign to m_Storage.m_dynSet w/o having use_fixed_storage(m_Size) be false. Are you?

This is not how I would write this code today, but I don't see a bug there.

from algorithm.

mathstuf avatar mathstuf commented on July 21, 2024

That may indeed be true. Maybe this is actually a clang-tidy bug. See this conflicting set of logic:

/root/misc/root/smtk-deps/include/boost/algorithm/string/detail/classification.hpp:114:21: note: Taking false branch
                    if(use_fixed_storage(m_Size))
                    ^

and then later, assuming the inverse of it:

/root/misc/root/smtk-deps/include/boost/algorithm/string/finder.hpp:219:55: note: Calling '~is_any_ofF'
/root/misc/root/smtk-deps/include/boost/algorithm/string/detail/classification.hpp:135:51: note: Left side of '&&' is false
                    if(!use_fixed_storage(m_Size) && m_Storage.m_dynSet!=0)
                                                  ^

It seems there are 2 report instances in the description; I'll trim it to just one.

from algorithm.

mclow avatar mclow commented on July 21, 2024

You could test out your theory by inverting the test at classification.hpp:114 (just change the test to if(!use_fixed_storage(m_Size)) and swap the if and else code blocks) and see if clang-tidy still complains.

from algorithm.

mathstuf avatar mathstuf commented on July 21, 2024

Filed upstream: https://bugs.llvm.org/show_bug.cgi?id=44247

from algorithm.

mclow avatar mclow commented on July 21, 2024

Closing this, since it's not our bug.

from algorithm.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.