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

Clang: Too many lines marked as errors

    XMLWordPrintable

Details

    Description

      Invalid code as the following might lead to this.

      Case 1

      case1.cpp
      void f()
      {
      }
      
      struct Foo {
          // The following line and everything above will be underlined in red.
          bla; 
      };
      

      Case 2

      case2.cpp
      template <typename T>
      struct QForeachContainer {
          QForeachContainer(const T&) {}
      };
      
      void f()
      {
          // The following line and everything above will be underlined in red.
          for (QForeachContainer<__typeof__(v.x)> container(v.x); true; )
              return;
      }
      

      Replacing the second v.x with e.g. v only underlines one line. Same if the "templateness" is removed of this example.

      Attachments

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

        Activity

          People

            kosjar Nikolai Kosjar
            kosjar Nikolai Kosjar
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes