MCPcopy Create free account
hub / github.com/cppcheck-opensource/cppcheck / foo

Function foo

addons/test/misra/misra-test.c:138–159  ·  view source on GitHub ↗

5.2

Source from the content-addressed store, hash-verified

136static int misra_5_2_function_hides_var_31x;
137static void misra_5_2_function_hides_var_31y(void) {}//5.2
138static void foo(void)
139{
140 int i;
141 switch(misra_5_2_func1()) //16.4 16.6 17.3
142 {
143 case 1:
144 {
145 do
146 {
147 for(i = 0; i < 10; i++)
148 {
149 if(misra_5_2_func3()) //17.3
150 {
151 int misra_5_2_var_hides_var_1____31x;
152 int misra_5_2_var_hides_var_1____31y;//5.2
153 }
154 }
155 } while(misra_5_2_func2()); //17.3
156 }
157 break;
158 }
159}
160
161union misra_5_2_field_hides_field__63x { //19.2
162int misra_5_2_field_hides_field__31x;

Callers 2

misra_12_3Function · 0.70
misra_15_3Function · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected