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

C++17 is enforced by Clang code model for generic projects

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Not Evaluated Not Evaluated
    • None
    • Qt Creator 4.6.0-rc1, Qt Creator 4.6.0
    • C/C++/Obj-C++ Support
    • None

      When working on a generic project and having Clang code model on, the C++ standard used to highlight errors seems to always be C++17, which causes problems with non-conformant code (i.e. code having throw specifications). For example, this code would be highlighted red:

      #include <exception>
      
      void foo() throw( std::exception ); // Not conformant to c++17

      There does not seem to be any way to change the C++ standard used by Clang code model.

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

            kosjar Nikolai Kosjar
            dragonroot Konstantin Isakov
            Votes:
            5 Vote for this issue
            Watchers:
            9 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes