Skip to main content
assistive.skiplink.to.breadcrumbs
assistive.skiplink.to.header.menu
assistive.skiplink.to.action.menu
assistive.skiplink.to.quick.search
Log in
Confluence
Spaces
Hit enter to search
Help
Online Help
Keyboard Shortcuts
Feed Builder
What’s new
Available Gadgets
About Confluence
Log in
SEI CERT C++ Coding Standard
Pages
Boards
Space shortcuts
Dashboard
Secure Coding Home
Android
C
C++
Java
Perl
Page tree
Browse pages
Configure
Space tools
View Page
A
t
tachments (0)
Page History
Page Information
View in Hierarchy
View Source
Export to PDF
Export to Word
Pages
…
SEI CERT C++ Coding Standard
2 Rules
Rule 02. Expressions (EXP)
Page Information
Title:
Rule 02. Expressions (EXP)
Author:
Aaron Ballman
Sep 30, 2014
Last Changed by:
David Svoboda
Mar 15, 2022
Tiny Link:
(useful for email)
https://wiki.sei.cmu.edu/confluence/x/-3o-BQ
Export As:
Word
·
PDF
Hierarchy
Parent Page
Page:
2 Rules
Children (14)
Page:
EXP50-CPP. Do not depend on the order of evaluation for side effects
Page:
EXP51-CPP. Do not delete an array through a pointer of the incorrect type
Page:
EXP52-CPP. Do not rely on side effects in unevaluated operands
Page:
EXP53-CPP. Do not read uninitialized memory
Page:
EXP54-CPP. Do not access an object outside of its lifetime
Page:
EXP55-CPP. Do not access a cv-qualified object through a cv-unqualified type
Page:
EXP56-CPP. Do not call a function with a mismatched language linkage
Page:
EXP57-CPP. Do not cast or delete pointers to incomplete classes
Page:
EXP58-CPP. Pass an object of the correct type to va_start
Page:
EXP59-CPP. Use offsetof() on valid types and members
Show all...
Page:
EXP60-CPP. Do not pass a nonstandard-layout type object across execution boundaries
Page:
EXP61-CPP. A lambda object must not outlive any of its reference captured objects
Page:
EXP62-CPP. Do not access the bits of an object representation that are not part of the object's value representation
Page:
EXP63-CPP. Do not rely on the value of a moved-from object
Hide...
Labels
Global Labels (4)
rule-list
rule
exp
section
Recent Changes
Time
Editor
Mar 15, 2022 09:45
David Svoboda
View Changes
Nov 14, 2019 15:08
Matthew Churilla
View Changes
Dec 03, 2018 15:24
Derek Leung
View Changes
Nov 16, 2017 14:42
Will Snavely
View Changes
Nov 16, 2017 14:22
Will Snavely
View Page History
Outgoing Links
External Links (3)
https://wiki.sei.cmu.edu/confluence/pages/viewpage.action?p…
https://wiki.sei.cmu.edu/confluence/pages/viewpage.action?p…
https://wiki.sei.cmu.edu/confluence/pages/viewpage.action?p…
SEI CERT C++ Coding Standard (2)
Page:
Rules from C
Home page:
SEI CERT C++ Coding Standard
Overview
Content Tools
{"serverDuration": 85, "requestCorrelationId": "848d6ea518903425"}