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

lupdate finds tr() too aggressively

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4: Low P4: Low
    • 6.10.0 FF
    • 4.3.0
    • Tools: Linguist
    • None
    • 6f3adbb0d (dev)

      lupdate has a parsing issue with variables called tr even in non-QObject classes.

      $ cat main.cpp 
      struct Bar {
          bool tr;
      };
      int main()
      {
          Bar *b = new Bar;
          b->tr = true;
          return 0;
      }
      
      $ lupdate main.cpp 
      /tmp/lupdatebug/main.cpp:7: Cannot invoke tr() like this
      

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

            masoud.jami Masoud Jami
            rve Anders Bakken
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes