Cppcheck plugin shall display verbose information

XMLWordPrintable

    • Type: Improvement
    • Resolution: Fixed
    • Priority: Major
    • Component/s: cppcheck-plugin
    • None
    • Environment:
      1.16

      The plugin doesn't work with verbose information present in the report file produced by cppcheck, it uses only msg attribute. It should be stored and displayed to the user too.

      <error
          id="arrayIndexThenCheck"
          severity="style"
          msg="Array index 'index' is used before limits check."
          verbose="Defensive programming: The variable 'index' is used
              as an array index before it is check that is within limits.
              This can mean that the array might be accessed out of bounds.
              Reorder conditions such as '(a[i] &amp;&amp; i &lt; 10)' to
              '(i &lt; 10 &amp;&amp; a[i])'. That way the array will not
              be accessed if the index is out of limits.">
      </error>
      

        1. all_violations.png
          52 kB
          Michal Turek
        2. source_tooltip.png
          39 kB
          Michal Turek

            Assignee:
            Michal Turek
            Reporter:
            Michal Turek
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: