23.03.2017 Views

SEI CERT C++ Coding Standard

sei-cert-cpp-coding-standard-2016-v01

sei-cert-cpp-coding-standard-2016-v01

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Declarations and Initialization (DCL) - DCL52-CPP. Never qualify a reference type with const or volatile<br />

2.3.4 Risk Assessment<br />

A const or volatile reference type may result in undefined behavior instead of a fatal<br />

diagnostic, causing unexpected values to be stored and leading to possible data integrity<br />

violations.<br />

Rule Severity Likelihood Remediation Cost Priority Level<br />

DCL52-CPP Low Unlikely Low P3 L3<br />

2.3.5 Bibliography<br />

[Dewhurst 2002]<br />

[ISO/IEC 14882-2014]<br />

Gotcha #5, “Misunderstanding References”<br />

Subclause 8.3.2, “References”<br />

<strong>SEI</strong> <strong>CERT</strong> <strong>C++</strong> CODING STANDARD (2016 EDITION) | V01 30<br />

Software Engineering Institute | Carnegie Mellon University<br />

[DISTRIBUTION STATEMENT A] Approved for public release and unlimited distribution.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!