Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-29621

CppCheck plugin does not work well with code that uses preprocessor macros

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Not Evaluated
    • None
    • Qt Creator 11.0.3
    • Analyzer: CppCheck
    • None
    • Windows

    Description

      CppCheck plugin does not work well with code that uses preprocessor macros. For example, I'm using a macro to throw an exception which automatically inserts the

      __FILE__
      

      and

      __LINE__
      

      macros into the message. But when analysed by CppCheck, it does not understand that the macro does throw an exception and prints invalid warnings. CppCheck should analyse the code after all preprocessor stuff has been evaluated

       

       

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            gres Sergey
            stoeckerb Bernhard Stöcker
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes