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

moc does not extract namespaced parameter type correctly

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P2: Important P2: Important
    • None
    • 5.15.0
    • Build tools: moc
    • None

      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

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

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

              Created:
              Updated:

                There are no open Gerrit changes