Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
Kea
Kea
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 427
    • Issues 427
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Merge Requests 69
    • Merge Requests 69
  • Operations
    • Operations
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Analytics
    • Analytics
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
  • ISC Open Source Projects
  • KeaKea
  • Wiki
    • Processes
  • coding guidelines

coding guidelines · Changes

Page history
Update coding guidelines authored Nov 09, 2020 by Andrei Pavel's avatar Andrei Pavel
Hide whitespace changes
Inline Side-by-side
Showing with 1 addition and 0 deletions
+1 -0
  • Processes/coding-guidelines.md Processes/coding-guidelines.md +1 -0
  • No files found.
Processes/coding-guidelines.md
View page @ 2bd41a24
......@@ -542,6 +542,7 @@ statement to ensure they will produce safe values at runtime:
- If the argument invokes any fuctions, are they exception safe?
- If it involves indirection, does this always resolve into a usable value?
- If it raises an exception, is the exception caught? This includes double errors, i.e., log statements in an exception handler.
- Does it have the intended data type? For example, it is a common oversight that 8-bit integers are displayed as their ASCII character counterpart. To solve this, prepending a unary plus is the recommended solution ([cppreference.com](https://en.cppreference.com/w/cpp/language/operator_arithmetic#Unary_arithmetic_operators): `1. unary plus (promotion). [...] Integral promotion is performed on the operand if it has integral or unscoped enumeration type and determines the type of the result.`).
Log statements are less than helpful if they cause the program to segfault or throw.
......
Clone repository
  • Home
  • Hooks available
  • Processes
    • coding guidelines
    • gitlab howto
    • release process
    • smaller edits on gitlab
  • Release Notes
  • Simplified Flow Diagram
  • community developed tools
  • designs
    • Backend Assisted Lease Selection design
    • Basic LeaseQuery Design
    • Design documents
    • HA connection with MT support
    • HA split brain issues
    • Run external script hook
View All Pages