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

moc does not extract namespaced parameter type correctly

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 5.15.0
    • Build tools: moc
    • 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

            fabiankosmale Fabian Kosmale
            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