VSS Package Index Abraxas VSS Home Table of Contents
CodeCheck Voting System Standards Test Suite - v427b.c
v427b.c(1): /*
427 b. Descriptive comments shall be provided to identify objects and data types.
All variables shall have comments at the point of declaration clearly
explaining their use. Where multiple variables that share the same meaning
are required, the variables may share the same comment;
v427b.c(6): */
v427b.c(7):
// first foo is bad at line 9, no comment associated
v427b.c(9):
v427b.c(10):
v427b.c(11): int foo;
v427b.c(12):
v427b.c(13):
v427b.c(14): int fuu; /* ok */
v427b.c(15):
// good
v427b.c(17): int foam;
v427b.c(18):
v427b.c(19): int fubar; //good
v427b.c(20):
Function Name: v6()
v427b.c(21): v6() { // next foo is bad, no comment
v427b.c(22):
v427b.c(23): int foo;
v427b.c(24):
v427b.c(25):
v427b.c(26): int fubar; //good
v427b.c(27):
v427b.c(28): }
v427b.c(29):
//O.K. Does this one also take into account - YES
/* good */
good */ v427b.c(32): int foo = 0;
VSS Package Index Abraxas VSS Home Table of Contents
CodeCheck Copyright (c) 1988-2006 by Abraxas Software Inc. (R). All rights reserved.