From 99b5c3917de22cbcfbf6d13ea78d6931c981ef32 Mon Sep 17 00:00:00 2001 From: bloodstalker Date: Wed, 30 Nov 2016 12:56:18 +0330 Subject: output samples for the misra rule checker --- samples/misrareport.xml | 286 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 286 insertions(+) create mode 100644 samples/misrareport.xml (limited to 'samples/misrareport.xml') diff --git a/samples/misrareport.xml b/samples/misrareport.xml new file mode 100644 index 0000000..793eebb --- /dev/null +++ b/samples/misrareport.xml @@ -0,0 +1,286 @@ + + Union declared: + FunctionDecl parameter names are not the same as function definition parameter names: + "If" statement has no braces {}: + "If" statement has no braces {}: + "If" statement has no braces {}: + "If" statement has no braces {}: + ContinueStmt used: + GotoStmt used: + More than one ReturnStmt used in the body of FunctionDecl: + "FunctionDecl" is recursive: + RHS and/or LHS operands are not effectively-boolean values : + RHS and/or LHS operands are not effectively-boolean values : + RHS and/or LHS operands are not effectively-boolean values : + RHS and/or LHS operands are not effectively-boolean values : + RHS and/or LHS operands are not effectively-boolean values : + RHS and/or LHS operands are not effectively-boolean values : + RHS and/or LHS operands are not primary expressions : + RHS and/or LHS operands are not primary expressions : + RHS and/or LHS operands are not primary expressions : + RHS and/or LHS operands are not primary expressions : + RHS and/or LHS operands are not effectively-boolean values : + RHS and/or LHS operands are not effectively-boolean values : + RHS and/or LHS operands are not effectively-boolean values : + RHS and/or LHS operands are not primary expressions : + RHS and/or LHS operands are not effectively-boolean values : + staic local variable does not have initialization : + staic local variable does not have initialization : + staic local variable does not have initialization : + staic local variable does not have initialization : + ForStmt does not have a child CompoundStmt: + WhileStmt does not have a child CompoundStmt: + "If" statement has no braces {}: + "If" statement has no braces {}: + "If" statement has no braces {}: + "If" statement has no braces {}: + "If-Else If" statement has no ending Else: + "If" statement has no braces {}: + "If" statement has no braces {}: + staic local variable does not have initialization : + staic local variable does not have initialization : + "Else" statement has no braces {}: + "If-Else If" statement has no ending Else: + "If-Else If" statement has no ending Else: + "If" statement has no braces {}: + "If" statement has no braces {}: + "If" statement has no braces {}: + "Else" statement has no braces {}: + "If-Else If" statement has no ending Else: + "SwitchStmt" has a caseStmt that's missing a breakStmt: + "SwitchStmt" does not have a defaultStmt: + "CaseStmt" has a CompoundStmt ancestor that is not the child of the SwitchStmt: + "SwitchStmt" has a caseStmt that's missing a breakStmt: + "SwitchStmt" does not have a defaultStmt: + "SwitchStmt" does not have a CaseStmt: + Function does not return anything but is missing the void keyword for the return type : + Function does not take any parameters but is not using the void keyword : + staic local variable does not have initialization : + staic local variable does not have initialization : + Implicit test of an expr against zero which is not known to return a boolean result: + FunctionToPointerDecay: + staic local variable does not have initialization : + The only allowed form of pointer arithmetic is array indexing : + staic local variable does not have initialization : + staic local variable does not have initialization : + staic local variable does not have initialization : + staic local variable does not have initialization : + staic local variable does not have initialization : + staic local variable does not have initialization : + The only allowed form of pointer arithmetic is array indexing : + The only allowed form of pointer arithmetic is array indexing : + The only allowed form of pointer arithmetic is array indexing : + "If-Else If" statement has no ending Else: + The only allowed form of pointer arithmetic is array indexing : + The only allowed form of pointer arithmetic is array indexing : + The only allowed form of pointer arithmetic is array indexing : + The only allowed form of pointer arithmetic is array indexing : + The only allowed form of pointer arithmetic is array indexing : + The only allowed form of pointer arithmetic is array indexing : + The only allowed form of pointer arithmetic is array indexing : + The only allowed form of pointer arithmetic is array indexing : + Pointer arithmatic for non-array pointers : + Pointer arithmatic for non-array pointers : + Pointer arithmatic for non-array pointers : + Pointer arithmatic for non-array pointers : + Pointer arithmatic for non-array pointers : + Pointer arithmatic for non-array pointers : + Pointer arithmatic for non-array pointers : + Pointer arithmatic for non-array pointers : + Pointer-type operands to BinaryOperator dont point to the same array : + Pointer arithmatic for non-array pointers : + Pointer arithmatic for non-array pointers : + The only allowed form of pointer arithmetic is array indexing : + staic local variable does not have initialization : + staic local variable does not have initialization : + BitField of type signed integer has a length of less than 2 in bits : + staic local variable does not have initialization : + staic local variable does not have initialization : + staic local variable does not have initialization : + staic local variable does not have initialization : + first enumeration has integerliteral initialization but not all enumerations do : + first enumeration does not have integerliteral initialization but at least one other enumeration does : + staic local variable does not have initialization : + staic local variable does not have initialization : + staic local variable does not have initialization : + sizeof working on an expr with a side-effect : + staic local variable does not have initialization : + staic local variable does not have initialization : + staic local variable does not have initialization : + staic local variable does not have initialization : + Righ-hand expr has side-effect + RHS and/or LHS operands are not effectively-boolean values : + RHS and/or LHS operands are not effectively-boolean values : + RHS and/or LHS operands are not effectively-boolean values : + RHS and/or LHS operands are not effectively-boolean values : + RHS and/or LHS operands are not effectively-boolean values : + RHS and/or LHS operands are not effectively-boolean values : + RHS and/or LHS operands are not effectively-boolean values : + assignment operator used in an expr that is known to return boolean: + Righ-hand expr has side-effect + RHS and/or LHS operands are not effectively-boolean values : + RHS and/or LHS operands are not effectively-boolean values : + staic local variable does not have initialization : + staic local variable does not have initialization : + RHS and/or LHS operands are not effectively-boolean values : + RHS and/or LHS operands are not effectively-boolean values : + RHS and/or LHS operands are not primary expressions : + RHS and/or LHS operands are not effectively-boolean values : + RHS and/or LHS operands are not effectively-boolean values : + RHS and/or LHS operands are not effectively-boolean values : + RHS and/or LHS operands are not primary expressions : + RHS and/or LHS operands are not effectively-boolean values : + EffectivelyBooleanExpr's result is known at compile-time: + EffectivelyBooleanExpr's result is known at compile-time: + RHS and/or LHS operands are not effectively-boolean values : + EffectivelyBooleanExpr's result is known at compile-time: + EffectivelyBooleanExpr's result is known at compile-time: + RHS and/or LHS operands are not primary expressions : + RHS and/or LHS operands are not effectively-boolean values : + staic local variable does not have initialization : + staic local variable does not have initialization : + staic local variable does not have initialization : + staic local variable does not have initialization : + staic local variable does not have initialization : + staic local variable does not have initialization : + Bitwise operator has signed RHS and/or LHS operands: + Bitwise operator has signed RHS and/or LHS operands: + Bitwise operator has signed RHS and/or LHS operands: + staic local variable does not have initialization : + staic local variable does not have initialization : + staic local variable does not have initialization : + staic local variable does not have initialization : + staic local variable does not have initialization : + UnaryOperator - has an expr with an unsigned underlying type: + UnaryOperator - has an expr with an unsigned underlying type: + staic local variable does not have initialization : + staic local variable does not have initialization : + staic local variable does not have initialization : + Comma used: + staic local variable does not have initialization : + staic local variable does not have initialization : + staic local variable does not have initialization : + Unary ++ or -- have been used in an expr with other operators: + Unary ++ or -- have been used in an expr with other operators: + Unary ++ or -- have been used in an expr with other operators: + staic local variable does not have initialization : + staic local variable does not have initialization : + staic local variable does not have initialization : + Implicit test of an expr against zero which is not known to return a boolean result: + staic local variable does not have initialization : + staic local variable does not have initialization : + staic local variable does not have initialization : + staic local variable does not have initialization : + Float type expression checked for equality/inequality: + Float type expression checked for equality/inequality: + Float type expression checked for equality/inequality: + assignment operator used in an expr that is known to return boolean: + Float type expression checked for equality/inequality: + staic local variable does not have initialization : + Float type used in the controlling expression of a forstmt: + Float type expression checked for equality/inequality: + staic local variable does not have initialization : + staic local variable does not have initialization : + staic local variable does not have initialization : + ForStmt controlling variable modified in the body of the loop: + ForStmt controlling variable modified in the body of the loop: + ForStmt controlling variable modified in the body of the loop: + ForStmt controlling variable modified in the body of the loop: + Comma used: + Comma used: + Comma used: + Unary ++ or -- have been used in an expr with other operators: + Unary ++ or -- have been used in an expr with other operators: + ForStmt controlling variable modified in the body of the loop: + Comma used: + Comma used: + Comma used: + Unary ++ or -- have been used in an expr with other operators: + Unary ++ or -- have been used in an expr with other operators: + GotoStmt used: + staic local variable does not have initialization : + staic local variable does not have initialization : + staic local variable does not have initialization : + ForStmt controlling variable modified in the body of the loop: + "If" statement has no braces {}: + "If" statement has no braces {}: + More than one BreakStmt used in the loop counter: + ForStmt controlling variable modified in the body of the loop: + "If" statement has no braces {}: + "If" statement has no braces {}: + "If" statement has no braces {}: + More than one BreakStmt used in the loop counter: + "If" statement has no braces {}: + "If" statement has no braces {}: + More than one BreakStmt used in the loop counter: + "If" statement has no braces {}: + "If" statement has no braces {}: + "If" statement has no braces {}: + "If" statement has no braces {}: + "If" statement has no braces {}: + staic local variable does not have initialization : + "If" statement has no braces {}: + "Else" statement has no braces {}: + "If" statement has no braces {}: + More than one ReturnStmt used in the body of FunctionDecl: + staic local variable does not have initialization : + "SwitchStmt" has a caseStmt that's missing a breakStmt: + "SwitchStmt" does not have a defaultStmt: + Switch expression is effectively boolean: + staic local variable does not have initialization : + staic local variable does not have initialization : + staic local variable does not have initialization : + staic local variable does not have initialization : + staic local variable does not have initialization : + Union declared: + Function does not return anything but is missing the void keyword for the return type : + Function does not take any parameters but is not using the void keyword : + staic local variable does not have initialization : + staic local variable does not have initialization : + staic local variable does not have initialization : + staic local variable does not have initialization : + staic local variable does not have initialization : + staic local variable does not have initialization : + staic local variable does not have initialization : + staic local variable does not have initialization : + staic local variable does not have initialization : + staic local variable does not have initialization : + staic local variable does not have initialization : + staic local variable does not have initialization : + External array type is incomplete and has no initialization : + Function does not take any parameters but is not using the void keyword : + Function does not return anything but is missing the void keyword for the return type : + staic local variable does not have initialization : + staic local variable does not have initialization : + staic local variable does not have initialization : + staic local variable does not have initialization : + Function does not return anything but is missing the void keyword for the return type : + staic local variable does not have initialization : + staic local variable does not have initialization : + staic local variable does not have initialization : + Function does not take any parameters but is not using the void keyword : + staic local variable does not have initialization : + staic local variable does not have initialization : + staic local variable does not have initialization : + Function does not return anything but is missing the void keyword for the return type : + staic local variable does not have initialization : + staic local variable does not have initialization : + Function does not return anything but is missing the void keyword for the return type : + staic local variable does not have initialization : + staic local variable does not have initialization : + Function does not return anything but is missing the void keyword for the return type : + staic local variable does not have initialization : + staic local variable does not have initialization : + staic local variable does not have initialization : + staic local variable does not have initialization : + staic local variable does not have initialization : + staic local variable does not have initialization : + staic local variable does not have initialization : + staic local variable does not have initialization : + The only allowed form of pointer arithmetic is array indexing : + Pointer arithmatic for non-array pointers : + The only allowed form of pointer arithmetic is array indexing : + The only allowed form of pointer arithmetic is array indexing : + Pointer arithmatic for non-array pointers : + The only allowed form of pointer arithmetic is array indexing : + -- cgit v1.2.3