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
4 Back Matter
EE. Analyzers
SonarQube C/C++ Plugin_V
Page Information
Title:
SonarQube C/C++ Plugin_V
Author:
Robert Seacord (Manager)
Aug 15, 2014
Last Changed by:
G. Ann Campbell
Apr 15, 2016
Tiny Link:
(useful for email)
https://wiki.sei.cmu.edu/confluence/x/SdUxBQ
Export As:
Word
·
PDF
Incoming Links
SEI CERT C Coding Standard (46)
Page:
DCL37-C. Do not declare or define a reserved identifier
Page:
EXP45-C. Do not perform assignments in selection statements
Page:
INT36-C. Converting a pointer to integer or integer to pointer
Page:
ERR34-C. Detect errors when converting a string to a number
Page:
MSC00-C. Compile cleanly at high warning levels
Page:
MSC37-C. Ensure that control never reaches the end of a non-void function
Page:
DCL31-C. Declare identifiers before using them
Page:
STR00-C. Represent characters using an appropriate type
Page:
MEM31-C. Free dynamically allocated memory when no longer needed
Page:
MSC07-C. Detect and remove dead code
Page:
DCL20-C. Explicitly specify void when a function accepts no arguments
Page:
DCL23-C. Guarantee that mutually visible identifiers are unique
Page:
EXP30-C. Do not depend on the order of evaluation for side effects
Page:
MSC22-C. Use the setjmp(), longjmp() facility securely
Page:
FLP30-C. Do not use floating-point variables as loop counters
Page:
MSC20-C. Do not use a switch statement to transfer control into a complex block
Page:
STR07-C. Use the bounds-checking interfaces for string manipulation
Page:
MSC01-C. Strive for logical completeness
Page:
STR04-C. Use plain char for characters in the basic character set
Page:
INT12-C. Do not make assumptions about the type of a plain int bit-field when used in an expression
Page:
DCL04-C. Do not declare more than one variable per declaration
Page:
EXP34-C. Do not dereference null pointers
Page:
EXP37-C. Call functions with the correct number and type of arguments
Page:
FIO46-C. Do not access a closed file
Page:
EXP15-C. Do not place a semicolon on the same line as an if, for, or while statement
Page:
MSC17-C. Finish every set of statements associated with a case label with a break statement
Page:
PRE00-C. Prefer inline or static functions to function-like macros
Page:
SonarQube C/C++ Plugin
Page:
ARR02-C. Explicitly specify array bounds, even if implicitly defined by an initializer
Page:
FIO42-C. Close files when they are no longer needed
Page:
PRE07-C. Avoid using repeated question marks
Page:
ENV33-C. Do not call system()
Page:
DCL16-C. Use "L," not "l," to indicate a long value
Page:
STR10-C. Do not concatenate different type of string literals
Page:
EXP02-C. Be aware of the short-circuit behavior of the logical AND and OR operators
Page:
MSC09-C. Character encoding: Use subset of ASCII for safety
Page:
INT07-C. Use only explicitly signed or unsigned char type for numeric values
Page:
EXP19-C. Use braces for the body of an if, for, or while statement
Page:
MSC13-C. Detect and remove unused values
Page:
DCL18-C. Do not begin integer constants with 0 when specifying a decimal value
Page:
EXP00-C. Use parentheses for precedence of operation
Page:
INT33-C. Ensure that division and remainder operations do not result in divide-by-zero errors
Page:
DCL07-C. Include the appropriate type information in function declarators
Page:
MSC12-C. Detect and remove code that has no effect or is never executed
Page:
EXP43-C. Avoid undefined behavior when using restrict-qualified pointers
Page:
INT13-C. Use bitwise operators only on unsigned operands
Hierarchy
Parent Page
Page:
EE. Analyzers
Labels
There are no labels assigned to this page.
Recent Changes
Time
Editor
Apr 15, 2016 11:40
G. Ann Campbell
View Changes
Mar 02, 2016 14:52
G. Ann Campbell
View Changes
Aug 19, 2014 12:01
Robert Seacord
View Changes
changed to version number of plugin
Aug 19, 2014 11:24
Robert Seacord
View Changes
changed name for consistency
Aug 15, 2014 10:08
Robert Seacord (Manager)
View Page History
Overview
Content Tools
{"serverDuration": 92, "requestCorrelationId": "9663a6fac0e61212"}