Giter VIP home page Giter VIP logo

Comments (4)

AndrewPardoe avatar AndrewPardoe commented on May 29, 2024

Aunk, the guidelines are meant to be adopted as a whole, but developers are free to opt out of any individual guidelines as they see fit. If you need to have a meta engine or variable buffer sizes in your code, you should opt out of the array subscript guidelines for those sections of your code.

C++ is a powerful programming language. We want to preserve your ability to write powerful code. However, the requirements of any particular program don't influence the guidance. For those programs, just opt out.

from cppcoreguidelines.

 avatar commented on May 29, 2024

How do i opt out?

from cppcoreguidelines.

AndrewPardoe avatar AndrewPardoe commented on May 29, 2024

The guidelines are meant to be enforced by your compiler or static analysis tools. Opting out globally is equivalent to not apply that particular guideline to your code. Opting out for a specific section of your code should be possible by adding a #pragma(suppress, xxxx) or [suppress: xxxx] attribute that references the particular guideline enforcement to suppress.

Microsoft’s version of the enforcement tooling will support both these mechanisms to opt out.

From: Anthony David Pulse, Jr. [mailto:[email protected]]
Sent: Sunday, September 20, 2015 10:24 AM
To: isocpp/CppCoreGuidelines [email protected]
Cc: Andrew Pardoe [email protected]
Subject: Re: [CppCoreGuidelines] Req: array subscript rules be taken out. (#24)

How do i opt out?


Reply to this email directly or view it on GitHubhttps://na01.safelinks.protection.outlook.com/?url=https%3a%2f%2fgithub.com%2fisocpp%2fCppCoreGuidelines%2fissues%2f24%23issuecomment-141812177&data=01%7c01%7cAndrew.Pardoe%40microsoft.com%7cf2ed3244d98b4f00f93308d2c1e04c69%7c72f988bf86f141af91ab2d7cd011db47%7c1&sdata=qTQKf7h139hdruhySd5EChZxR%2bJDa7%2f2pR%2f3Y330dpM%3d.

from cppcoreguidelines.

 avatar commented on May 29, 2024

Btw, would you look at github.com/aunk/press and tell me if it works? Not one coder will give me a straight eye for it. I just want to know if it works. And i don't have a pc to do it on. It's in C++. Thanks.

Sent from my ASUS Pad

Andrew Pardoe [email protected] wrote:

The guidelines are meant to be enforced by your compiler or static analysis tools. Opting out globally is equivalent to not apply that particular guideline to your code. Opting out for a specific section of your code should be possible by adding a #pragma(suppress, xxxx) or [suppress: xxxx] attribute that references the particular guideline enforcement to suppress.

Microsoft’s version of the enforcement tooling will support both these mechanisms to opt out.

From: Anthony David Pulse, Jr. [mailto:[email protected]]
Sent: Sunday, September 20, 2015 10:24 AM
To: isocpp/CppCoreGuidelines [email protected]
Cc: Andrew Pardoe [email protected]
Subject: Re: [CppCoreGuidelines] Req: array subscript rules be taken out. (#24)

How do i opt out?


Reply to this email directly or view it on GitHubhttps://na01.safelinks.protection.outlook.com/?url=https%3a%2f%2fgithub.com%2fisocpp%2fCppCoreGuidelines%2fissues%2f24%23issuecomment-141812177&data=01%7c01%7cAndrew.Pardoe%40microsoft.com%7cf2ed3244d98b4f00f93308d2c1e04c69%7c72f988bf86f141af91ab2d7cd011db47%7c1&sdata=qTQKf7h139hdruhySd5EChZxR%2bJDa7%2f2pR%2f3Y330dpM%3d.


Reply to this email directly or view it on GitHub.

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.