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

lupdate parser fumbles with inline namespaces

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P3: Somewhat important
    • None
    • 6.4.0
    • Tools: Linguist
    • None

    Description

      The following code produces

       Class '__pstl::v1::_Tp::ExtensionSystem::Internal::QtPrivate::ExtensionSystem' lacks Q_OBJECT macro
      

      This is a cut-down version of a somewhat bigger translation unit. The problem is the accumulation of namespace, not the lack of the macro [which is present in the original code]

      // {
      
      namespace __pstl {
      
      inline namespace v1 {
      
      template <class _Tp>
      struct is_execution_policy 
      {
      };
      
      template <class _Tp>
      constexpr bool is_execution_policy_v = __pstl::is_execution_policy<_Tp>::value;
      
      }
      }
      
      class QString {};
      
      
      namespace ExtensionSystem {
      namespace Internal {
      
      class PluginSpecPrivate {
      
          QString tr(const char *);
          bool readMetaData();
      
      };
      
      }
      }
      
      
      namespace QtPrivate { }
      
      
      
      using namespace ExtensionSystem::Internal;
      
      namespace ExtensionSystem {
      
      
      bool PluginSpecPrivate::readMetaData()
      {
      
          tr("Plugin meta data not found");
      
          return true;
      }
      
      } // ExtensionSystem
      
      //}
      

      Attachments

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

        Activity

          People

            kkohne Kai Köhne
            hjk hjk
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes