Giter VIP home page Giter VIP logo

Comments (7)

BenjamenMeyer avatar BenjamenMeyer commented on June 20, 2024

In this case, the two rules are addressing different aspects. F rules are specifically about functions while Con rules are specifically about constants. The two compliment each other - with Con.3 being the general case and F.17 being a specific case of Con.3 within the function context.

from cppcoreguidelines.

pauljansen42 avatar pauljansen42 commented on June 20, 2024

Thanks for your answer Benjamen. As far as I can determine, F.17 is a full subset of Con.3. So every time F.17 fires, Con.3 will fire as well. In such a situation, the question is what the added value is of F.17 and from a coding standard point of view, F.17 should be removed. If F.17 is not a full subset of some other rule, it is important to extract its unique part and remove the overlap.

Is this something that can be done?

These questions/this issue might sound a bit pedantic, but we are dealing with customers using our implementation of your C++ core guidelines (we are talking about 50,000+ software engineers) that don't understand why a situation is flagged twice by different rules and I think they are right.

from cppcoreguidelines.

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.