Title: BB. Definitions  
Author: Justin Pincar Jul 24, 2008
Last Changed by: Robert Schiela Jan 05, 2017
Tiny Link: (useful for email) https://wiki.sei.cmu.edu/confluence/x/3Hs-BQ
Export As: Word · PDF  
Incoming Links
SEI CERT C++ Coding Standard (88)
    Page: EXP58-CPP. Pass an object of the correct type to va_start
    Page: ERR50-CPP. Do not abruptly terminate the program
    Page: DCL53-CPP. Do not write syntactically ambiguous declarations
    Page: FIO50-CPP. Do not alternately input and output from a file stream without an intervening positioning call
    Page: STR52-CPP. Use valid references, pointers, and iterators to reference elements of a basic_string
    Page: FIO51-CPP. Close files when they are no longer needed
    Page: CTR51-CPP. Use valid references, pointers, and iterators to reference elements of a container
    Page: EXP50-CPP. Do not depend on the order of evaluation for side effects
    Page: CON51-CPP. Ensure actively held locks are released on exceptional conditions
    Page: STR51-CPP. Do not attempt to create a std::string from a null pointer
    Page: OOP52-CPP. Do not delete a polymorphic object without a virtual destructor
    Page: ERR62-CPP. Detect errors when converting a string to a number
    Page: INT50-CPP. Do not cast to an out-of-range enumeration value
    Page: CON50-CPP. Do not destroy a mutex while it is locked
    Page: CTR54-CPP. Do not subtract iterators that do not refer to the same container
    Page: MSC52-CPP. Value-returning functions must return a value from all exit paths
    Page: MEM56-CPP. Do not store an already-owned pointer value in an unrelated smart pointer
    Page: OOP51-CPP. Do not slice derived objects
    Page: STR50-CPP. Guarantee that storage for strings has sufficient space for character data and the null terminator
    Page: DCL50-CPP. Do not define a C-style variadic function
    Page: CTR57-CPP. Provide a valid ordering predicate
    Page: ERR56-CPP. Guarantee exception safety
    Page: CON53-CPP. Avoid deadlock by locking in a predefined order
    Page: CTR50-CPP. Guarantee that container indices and iterators are within the valid range
    Page: ERR54-CPP. Catch handlers should order their parameter types from most derived to least derived
    Page: ERR57-CPP. Do not leak resources when handling exceptions
    Page: EXP59-CPP. Use offsetof() on valid types and members
    Page: CON55-CPP. Preserve thread safety and liveness when using condition variables
    Page: EXP62-CPP. Do not access the bits of an object representation that are not part of the object's value representation
    Page: ERR55-CPP. Honor exception specifications
    Page: MEM57-CPP. Avoid using default operator new for over-aligned types
    Page: DCL52-CPP. Never qualify a reference type with const or volatile
    Page: CON54-CPP. Wrap functions that can spuriously wake up in a loop
    Page: DCL56-CPP. Avoid cycles during initialization of static objects
    Page: ERR53-CPP. Do not reference base classes or class data members in a constructor or destructor function-try-block handler
    Page: EXP61-CPP. A lambda object must not outlive any of its reference captured objects
    Page: MEM51-CPP. Properly deallocate dynamically allocated resources
    Page: EXP53-CPP. Do not read uninitialized memory
    Page: OOP54-CPP. Gracefully handle self-copy assignment
    Page: DCL60-CPP. Obey the one-definition rule
    Page: OOP50-CPP. Do not invoke virtual functions from constructors or destructors
    Page: CTR52-CPP. Guarantee that library functions do not overflow
    Page: EXP56-CPP. Do not call a function with a mismatched language linkage
    Page: DCL57-CPP. Do not let exceptions escape from destructors or deallocation functions
    Page: MEM52-CPP. Detect and handle memory allocation errors
    Page: MEM55-CPP. Honor replacement dynamic storage management requirements
    Page: STR53-CPP. Range check element access
    Page: OOP56-CPP. Honor replacement handler requirements
    Page: System Qualities
    Page: EXP51-CPP. Do not delete an array through a pointer of the incorrect type
    Page: ERR58-CPP. Handle all exceptions thrown before main() begins executing
    Page: CON52-CPP. Prevent data races when accessing bit-fields from multiple threads
    Page: MSC54-CPP. A signal handler must be a plain old function
    Page: ERR60-CPP. Exception objects must be nothrow copy constructible
    Page: CON56-CPP. Do not speculatively lock a non-recursive mutex that is already owned by the calling thread
    Page: MEM54-CPP. Provide placement new with properly aligned pointers to sufficient storage capacity
    Page: MSC50-CPP. Do not use std::rand() for generating pseudorandom numbers
    Page: DCL58-CPP. Do not modify the standard namespaces
    Page: EXP52-CPP. Do not rely on side effects in unevaluated operands
    Page: MEM53-CPP. Explicitly construct and destruct objects when manually managing object lifetime
    Page: ERR61-CPP. Catch exceptions by lvalue reference
    Page: DCL55-CPP. Avoid information leakage when passing a class object across a trust boundary
    Page: EXP54-CPP. Do not access an object outside of its lifetime
    Page: CTR56-CPP. Do not use pointer arithmetic on polymorphic objects
    Page: ERR59-CPP. Do not throw an exception across execution boundaries
    Page: CTR53-CPP. Use valid iterator ranges
    Page: EXP57-CPP. Do not cast or delete pointers to incomplete classes
    Page: DCL51-CPP. Do not declare or define a reserved identifier
    Page: DCL54-CPP. Overload allocation and deallocation functions as a pair in the same scope
    Page: EXP55-CPP. Do not access a cv-qualified object through a cv-unqualified type
    Page: MSC51-CPP. Ensure your random number generator is properly seeded
    Page: MEM50-CPP. Do not access freed memory
    Page: EXP60-CPP. Do not pass a nonstandard-layout type object across execution boundaries
    Page: ERR51-CPP. Handle all exceptions
    Page: CTR55-CPP. Do not use an additive operator on an iterator if the result would overflow
    Page: OOP53-CPP. Write constructor member initializers in the canonical order
    Page: OOP58-CPP. Copy operations must not mutate the source object
    Page: Scope
    Page: OOP55-CPP. Do not use pointer-to-member operators to access nonexistent members
    Page: Conformance Testing
    Page: DCL59-CPP. Do not define an unnamed namespace in a header file
    Page: EXP63-CPP. Do not rely on the value of a moved-from object
    Page: CTR58-CPP. Predicate function objects should not be mutable
    Page: OOP57-CPP. Prefer special member functions and overloaded operators to C Standard Library functions
    Page: MSC53-CPP. Do not return from a function declared [[noreturn]]
    Page: Rules Versus Recommendations
    Page: ERR52-CPP. Do not use setjmp() or longjmp()
    Page: How this Coding Standard Is Organized
Hierarchy
Parent Page
    Page: 3 Back Matter
Labels
Global Labels (4)
Time Editor  
Jan 05, 2017 15:13 Robert Schiela View Changes
Remove Nav buttons in footer.
Dec 16, 2016 13:59 Barbara White View Changes
misc editorial changes resulting from compare
Dec 16, 2016 11:42 Sandy Shrum View Changes
editorial changes
Dec 16, 2016 11:22 Sandy Shrum View Changes
editorial changes
Dec 16, 2016 08:39 Barbara White  
updated anchor for denial-of-service to remove leading space, which was causing links to this glossary item to break