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

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P3: Somewhat important P3: Somewhat important
    • None
    • Qt Creator 11.0.3
    • Analyzer: CppCheck
    • Windows

      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

       

       

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

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

              Created:
              Updated:

                There are no open Gerrit changes