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

Wrong resolution for macro that expands to a variable

XMLWordPrintable

    • a450c13327124483ff36546a4c1f8488aa945c39

      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.

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

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes