Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-85230

moc does not extract namespaced parameter type correctly

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: P2: Important
    • Resolution: Unresolved
    • Affects Version/s: 5.15.0
    • Fix Version/s: None
    • Component/s: Build tools: moc
    • Labels:
      None

      Description

      If you define a slot with the following signature

      void test(const ::foo::A &value)
      

      moc extracts the type as 'const::foo::A&' instead of '::foo::A'.

      Since 'const' is a keyword, it makes no sense to assume that it is part of the namespace of the parameter type declaration.

      Small test case is attached

        Attachments

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

          Activity

            People

            Assignee:
            fabiankosmale Fabian Kosmale
            Reporter:
            tokoe.kdab Tobias Koenig
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:

                Gerrit Reviews

                There are no open Gerrit changes