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
3 Recommendations
Rec. 02. Declarations and Initialization (DCL)
DCL19-C. Minimize the scope of variables and functions
Page Information
Title:
DCL19-C. Minimize the scope of variables and functions
Author:
Andrew Gidwani
Apr 01, 2009
Last Changed by:
Jill Britton
Apr 20, 2023
Tiny Link:
(useful for email)
https://wiki.sei.cmu.edu/confluence/x/z9YxBQ
Export As:
Word
·
PDF
Incoming Links
SEI CERT C Coding Standard (1)
Page:
DCL02-C. Use visually distinct identifiers
Hierarchy
Parent Page
Page:
Rec. 02. Declarations and Initialization (DCL)
Labels
Global Labels (4)
rose-possible
android-applicable
recommendation
dcl
Recent Changes
Time
Editor
Apr 20, 2023 05:53
Jill Britton
View Changes
Apr 27, 2022 08:33
Jill Britton
View Changes
Dec 09, 2021 10:04
Jill Britton
View Changes
Jun 24, 2021 10:32
Svyatoslav Razmyslov
View Changes
Apr 23, 2021 12:05
Jill Britton
View Page History
Outgoing Links
External Links (10)
https://wiki.sei.cmu.edu/confluence/pages/viewpage.action?p…
https://wiki.sei.cmu.edu/confluence/display/c/Polyspace+Bug…
https://www.mathworks.com/help/bugfinder/ref/certcrec.dcl19…
https://www.kb.cert.org/vulnotes/bymetric?searchview&query=…
https://pvs-studio.com/en/docs/warnings/v821/
https://www.securecoding.cert.org/confluence/display/seccod…
https://wiki.sei.cmu.edu/confluence/pages/viewpage.action?p…
https://wiki.sei.cmu.edu/confluence/pages/viewpage.action?p…
https://www.securecoding.cert.org/confluence/display/cplusp…
https://wiki.sei.cmu.edu/confluence/display/cplusplus/PVS-S…
SEI CERT C Coding Standard (25)
Page:
CodeSonar
Page:
Helix QAC
Page:
Parasoft_V
Page:
Helix QAC_V
Page:
PC-lint Plus_V
Page:
Polyspace Bug Finder_V
Page:
PC-lint Plus
Page:
Klocwork_V
Page:
Axivion Bauhaus Suite
Page:
Astrée_V
Page:
BB. Definitions
Page:
RuleChecker
Page:
CodeSonar_V
Page:
ECLAIR_V
Page:
Parasoft
Page:
DCL01-C. Do not reuse variable names in subscopes
Page:
DCL15-C. Declare file-scope objects or functions that do not need external linkage as static
Home page:
SEI CERT C Coding Standard
Page:
Astrée
Page:
RuleChecker_V
Page:
LDRA
Page:
PVS-Studio_V
Page:
Axivion Bauhaus Suite_V
Page:
LDRA_V
Page:
ECLAIR
SEI CERT C++ Coding Standard (2)
Page:
VOID DCL07-CPP. Minimize the scope of variables and methods
Home page:
SEI CERT C++ Coding Standard
Overview
Content Tools
{"serverDuration": 84, "requestCorrelationId": "99798b417a92a653"}