Menu

MISRA C 2012 coverage is complete. Including amendments.

2021-08-22
2025-06-29
  • Daniel Marjamäki

    I have implemented the final MISRA C 2012 rules now and we have full coverage.

    The rules from the amendments were implemented recently.

     
  • Richard Smith

    Richard Smith - 2021-08-27

    This is awesome news. Unfortunately it generates and exception on our code base.

    Traceback (most recent call last):
    File "/home/rsmith/miniconda3/envs/hvdcpp2/cppcheck2/share/Cppcheck/addons/runaddon.py", line 8, in <module>
    runpy.run_path(addon, run_name='main')
    File "/home/rsmith/miniconda3/envs/hvdcpp2/lib/python3.7/runpy.py", line 263, in run_path
    pkg_name=pkg_name, script_name=fname)
    File "/home/rsmith/miniconda3/envs/hvdcpp2/lib/python3.7/runpy.py", line 96, in _run_module_code
    mod_name, mod_spec, pkg_name, script_name)
    File "/home/rsmith/miniconda3/envs/hvdcpp2/lib/python3.7/runpy.py", line 85, in _run_code
    exec(code, run_globals)
    File "/home/rsmith/miniconda3/envs/hvdcpp2/cppcheck2/share/Cppcheck/addons/misra.py", line 4583, in <module>
    main()
    File "/home/rsmith/miniconda3/envs/hvdcpp2/cppcheck2/share/Cppcheck/addons/misra.py", line 4525, in main
    checker.parseDump(item)
    File "/home/rsmith/miniconda3/envs/hvdcpp2/cppcheck2/share/Cppcheck/addons/misra.py", line 4201, in parseDump
    self.executeCheck(1001, self.misra_10_1, cfg)
    File "/home/rsmith/miniconda3/envs/hvdcpp2/cppcheck2/share/Cppcheck/addons/misra.py", line 4110, in executeCheck
    check_function(*args)
    File "/home/rsmith/miniconda3/envs/hvdcpp2/cppcheck2/share/Cppcheck/addons/misra.py", line 2077, in misra_10_1
    e1_et = getEssentialType(token.astOperand1).split(' ')[-1]
    AttributeError: 'NoneType' object has no attribute 'split'</module></module>

     
  • Alexander Möhring

    Does this full implementation of the MISRA C 2012 rules also apply to the free version?

     

    Last edit: Alexander Möhring 2025-06-29

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.