Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-6175

Wrong resolution for macro that expands to a variable

    XMLWordPrintable

Details

    • a450c13327124483ff36546a4c1f8488aa945c39

    Description

      int foo;
      #define bar foo
      
      int func()
      {
      	int var = foo;
      }
      

      Find Usages on bar shows 'C++ Usages' for foo instead of 'C++ Macro Usages' for bar.

      Moreover, placing the caret on bar highlights all references to foo.

      Attachments

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

        Activity

          People

            erikv Erik Verbruggen
            orgads Orgad Shaneh
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes