home

My NixOS systems configurations.
Log | Files | Refs | LICENSE

misra (596B)


      1 #name : MISRA-C:2004 rule implementation
      2 # --
      3 /*** START TI ADD ***/
      4 #if MISRA_C_2004_VALIDATION
      5          if (check_misra_c_2004)
      6          {
      7             /*----------------------------------------------------------------*/
      8             /* MISRA-C:2004 - Rule ${1:Rule} (${2:required})                            */
      9             /* ${3:Description} $0*/
     10             /*----------------------------------------------------------------*/
     11             diagnostic(misra_${2:required}_severity, ec_misra_c_2004_$1);
     12          }              /* if */
     13 #endif /* MISRA_C_2004_VALIDATION */
     14 /*** END TI ADD ***/