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

Clang: Highlighting/Local references fails for parameter type in function with trailing return type

    XMLWordPrintable

Details

    Description

      struct Foo{};
      
      Foo foo1(Foo); // Fine
      
      auto foo2(Foo) { return 3; }; // Fine
      auto foo3(Foo) -> int { return 3; }; // Fine
      
      auto foo6(Foo) -> int; // Fine
      auto foo4(Foo) -> Foo { return Foo(); }; // Fine
      auto foo5(Foo) -> Foo; // Ops, "Foo" in parameter list is highlighted as Function, not Type
      

      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